diff options
author | George Sapountzis <gsap7@yahoo.gr> | 2006-12-27 21:16:18 +0200 |
---|---|---|
committer | George Sapountzis <gsap7@yahoo.gr> | 2007-01-21 19:42:08 +0200 |
commit | 55423b33f01fd7123aaa5b3c8054d17c63a3bf02 (patch) | |
tree | 17a7e4c4ad3b62a6d8461ff1a187a37754970d54 /src/atiwonder.c | |
parent | a1a5881191f04bd6c4e24f08b61a70ab4e54d91f (diff) |
Keep PCI mach64 only, drop:
- Chip < ATI_CHIP_88800GXC
- Chipset != ATI_CHIPSET_ATI
- Adapter != ATI_ADAPTER_MACH64
- depth < 8
Diffstat (limited to 'src/atiwonder.c')
-rw-r--r-- | src/atiwonder.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/src/atiwonder.c b/src/atiwonder.c index 6822872f..371e251a 100644 --- a/src/atiwonder.c +++ b/src/atiwonder.c @@ -74,21 +74,12 @@ ATIVGAWonderPreInit ) { pATIHW->b3 = ATIGetExtReg(0xB3U) & 0x20U; - if (pATI->depth <= 4) - pATIHW->b6 = 0x40U; - else pATIHW->b6 = 0x04U; - if (pATI->Chip <= ATI_CHIP_18800) - pATIHW->ba = 0x08U; - else if (pATI->Chip >= ATI_CHIP_28800_2) - { - if (pATI->VideoRAM > 256) - pATIHW->b6 |= 0x01U; + pATIHW->b6 |= 0x01U; pATIHW->bf = ATIGetExtReg(0xBFU) & 0x5FU; pATIHW->a3 = ATIGetExtReg(0xA3U) & 0x67U; pATIHW->ab = ATIGetExtReg(0xABU) & 0xE7U; pATIHW->ae = ATIGetExtReg(0xAEU) & 0xE0U; - } } /* @@ -114,10 +105,8 @@ ATIVGAWonderSave pATIHW->b9 = ATIGetExtReg(0xB9U); pATIHW->ba = ATIGetExtReg(0xBAU); pATIHW->bd = ATIGetExtReg(0xBDU); - if (pATI->Chip > ATI_CHIP_18800) { pATIHW->be = ATIGetExtReg(0xBEU); - if (pATI->Chip >= ATI_CHIP_28800_2) { pATIHW->bf = ATIGetExtReg(0xBFU); pATIHW->a3 = ATIGetExtReg(0xA3U); @@ -143,12 +132,8 @@ ATIVGAWonderSet ATIHWPtr pATIHW ) { - if (pATI->Chip <= ATI_CHIP_18800) - ATIModifyExtReg(pATI, 0xB2U, -1, 0x00U, pATIHW->b2); - else { ATIModifyExtReg(pATI, 0xBEU, -1, 0x00U, pATIHW->be); - if (pATI->Chip >= ATI_CHIP_28800_2) { ATIModifyExtReg(pATI, 0xBFU, -1, 0x00U, pATIHW->bf); ATIModifyExtReg(pATI, 0xA3U, -1, 0x00U, pATIHW->a3); |