summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authoralbeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-03-09 23:42:01 +0000
committeralbeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-03-09 23:42:01 +0000
commit5aa58789dd0c0623f59abd12cac3be856e2ff7c4 (patch)
tree743d228524d7c6ce7d9925df3e517908b8989b4a /drivers
parent1ae88453c7f041ac1beae5a521a7704d9a8396c5 (diff)
downloadmpv-5aa58789dd0c0623f59abd12cac3be856e2ff7c4.tar.bz2
mpv-5aa58789dd0c0623f59abd12cac3be856e2ff7c4.tar.xz
I forgot to commit this file
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9558 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'drivers')
-rw-r--r--drivers/3dfx.h42
1 files changed, 40 insertions, 2 deletions
diff --git a/drivers/3dfx.h b/drivers/3dfx.h
index 1eb54f6d82..9a865ddf6c 100644
--- a/drivers/3dfx.h
+++ b/drivers/3dfx.h
@@ -227,6 +227,11 @@ typedef struct voodoo_yuv_fb_t voodoo_yuv_fb;
#define CLIP0MAX (0x00100000 + 0x0c)
#define DSTBASE (0x00100000 + 0x10)
#define DSTFORMAT (0x00100000 + 0x14)
+#define SRCCOLORKEYMIN (0x00100000 + 0x18)
+#define SRCCOLORKEYMAX (0x00100000 + 0x1c)
+#define DSTCOLORKEYMIN (0x00100000 + 0x20)
+#define DSTCOLORKEYMAX (0x00100000 + 0x24)
+#define ROP123 (0x00100000 + 0x30)
#define SRCBASE (0x00100000 + 0x34)
#define COMMANDEXTRA_2D (0x00100000 + 0x38)
#define CLIP1MIN (0x00100000 + 0x4c)
@@ -255,9 +260,15 @@ typedef struct voodoo_yuv_fb_t voodoo_yuv_fb;
#define AUTOINC_DSTX BIT(10)
#define AUTOINC_DSTY BIT(11)
-#define COMMAND_2D_FILLRECT 0x05
+
+
#define COMMAND_2D_S2S_BITBLT 0x01 // screen to screen
-#define COMMAND_2D_H2S_BITBLT 0x03 // host to screen
+#define COMMAND_2D_S2S_STRECH_BLT 0x02 // BLT + Strech
+#define COMMAND_2D_H2S_BITBLT 0x03 // host to screen
+#define COMMAND_2D_FILLRECT 0x05
+
+#define COMMAND_2D_DO_IMMED BIT(8) // Do it immediatly
+
#define COMMAND_3D_NOP 0x00
@@ -290,6 +301,30 @@ typedef struct voodoo_yuv_fb_t voodoo_yuv_fb;
#define VIDCFG_PIXFMT_SHIFT 18
#define DACMODE_2X BIT(0)
+/* AGP registers */
+#define AGPREQSIZE (0x0080000 + 0x00)
+#define AGPHOSTADDRESSLOW (0x0080000 + 0x04)
+#define AGPHOSTADDRESSHIGH (0x0080000 + 0x08)
+#define AGPGRAPHICSADDRESS (0x0080000 + 0x0C)
+#define AGPGRAPHICSSTRIDE (0x0080000 + 0x10)
+#define AGPMOVECMD (0x0080000 + 0x14)
+
+/* FIFO registers */
+#define CMDBASEADDR0 (0x0080000 + 0x20)
+#define CMDBASESIZE0 (0x0080000 + 0x24)
+#define CMDBUMP0 (0x0080000 + 0x28)
+#define CMDRDPTRL0 (0x0080000 + 0x2C)
+#define CMDRDPTRH0 (0x0080000 + 0x30)
+#define CMDAMIN0 (0x0080000 + 0x34)
+#define CMDAMAX0 (0x0080000 + 0x38)
+#define CMDFIFODEPTH0 (0x0080000 + 0x44)
+#define CMDHOLECNT0 (0x0080000 + 0x48)
+
+
+/* YUV reisters */
+#define YUVBASEADDRESS (0x0080000 + 0x100)
+#define YUVSTRIDE (0x0080000 + 0x104)
+
/* VGA rubbish, need to change this for multihead support */
#define MISC_W 0x3c2
#define MISC_R 0x3cc
@@ -298,6 +333,9 @@ typedef struct voodoo_yuv_fb_t voodoo_yuv_fb;
#define CRT_I 0x3d4
#define CRT_D 0x3d5
#define ATT_IW 0x3c0
+#define RAMDAC_R 0x3c7
+#define RAMDAC_W 0x3c8
+#define RAMDAC_D 0x3c9
#define IS1_R 0x3da
#define GRA_I 0x3ce
#define GRA_D 0x3cf