summaryrefslogtreecommitdiff
path: root/src/ast_vgatool.h
diff options
context:
space:
mode:
authorY.C. Chen <yc_chen@aspeedtech.com>2009-06-04 14:24:31 +0800
committerY.C. Chen <yc_chen@aspeedtech.com>2009-06-04 14:24:31 +0800
commit2eb00170bfb9defe99a10dbfd4039952670fd099 (patch)
tree5a843f4db10474ff5f9d43254a720c1e5ae71a0d /src/ast_vgatool.h
parente7e38d2ba0fcd6c1debbfd1062663a18f25f6266 (diff)
xf86-video-ast-v.0.89.8
Diffstat (limited to 'src/ast_vgatool.h')
-rw-r--r--src/ast_vgatool.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/ast_vgatool.h b/src/ast_vgatool.h
index 9ce00fb..42c866a 100644
--- a/src/ast_vgatool.h
+++ b/src/ast_vgatool.h
@@ -27,6 +27,11 @@
#define VIDEOMEM_SIZE_64M 0x04000000
#define VIDEOMEM_SIZE_128M 0x08000000
+#define DRAMTYPE_512Mx16 0
+#define DRAMTYPE_1Gx16 1
+#define DRAMTYPE_512Mx32 2
+#define DRAMTYPE_1Gx32 3
+
#define AR_PORT_WRITE (pAST->RelocateIO + 0x40)
#define MISC_PORT_WRITE (pAST->RelocateIO + 0x42)
#define SEQ_PORT (pAST->RelocateIO + 0x44)
@@ -44,9 +49,8 @@
val = inb(base+1); \
} while (0)
#define SetIndexReg(base,index, val) do { \
- outb(base,index); \
- outb(base+1,val); \
- } while (0)
+ outw(base, ((USHORT)(val) << 8) | index); \
+ } while (0)
#define GetIndexRegMask(base,index, and, val) do { \
outb(base,index); \
val = (inb(base+1) & and); \