summaryrefslogtreecommitdiff
path: root/src/savage_regs.h
diff options
context:
space:
mode:
authorAlex Deucher <agd5f@yahoo.com>2004-09-30 04:59:37 +0000
committerAlex Deucher <agd5f@yahoo.com>2004-09-30 04:59:37 +0000
commita1ef17bb2cc069511baaefcbe04298c087533d35 (patch)
treef80afeaa07e86672a705fc42eec3a7d5f4c04864 /src/savage_regs.h
parentcc1882207d72ce67b650b69bb490ba809dec53f5 (diff)
Add Dualhead Support to Mobile savages (MX, IX, Supersavages) Thanks to
Austin Yuan for his help on this.
Diffstat (limited to 'src/savage_regs.h')
-rw-r--r--src/savage_regs.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/savage_regs.h b/src/savage_regs.h
index 9d80e94..4a6cb99 100644
--- a/src/savage_regs.h
+++ b/src/savage_regs.h
@@ -159,9 +159,21 @@ enum S3CHIPTAGS {
#define S3_SEC_BD_LOW 0X8178
#define S3_SEC_BD_HIGH 0X817c
+/* duoview */
+
#define SELECT_IGA1 0x4026
#define SELECT_IGA2_READS_WRITES 0x4f26
+#define SelectIGA1() \
+do { \
+ OUTREG16(SEQ_ADDRESS_REG,SELECT_IGA1); \
+} while (0)
+
+#define SelectIGA2() \
+do { \
+ OUTREG16(SEQ_ADDRESS_REG,SELECT_IGA2_READS_WRITES); \
+} while (0)
+
#define MEM_PS1 0x10 /*CRCA_4 :Primary stream 1*/
#define MEM_PS2 0x20 /*CRCA_5 :Primary stream 2*/
#define MEM_SS1 0x40 /*CRCA_6 :Secondary stream 1*/