diff options
author | George Sapountzis <gsap7@yahoo.gr> | 2007-03-18 15:35:25 +0200 |
---|---|---|
committer | George Sapountzis <gsap7@yahoo.gr> | 2007-03-21 20:18:49 +0200 |
commit | e7969de8ec572d8801806f9525a9a081a58a03f1 (patch) | |
tree | 48f39803ef42a20cfcd3c0a26100d4fb01c7c2eb | |
parent | 2d2fb54ba370c1df9ef5102e83c17a7ff5c55403 (diff) |
[mach64] Drop poking the VGA MMIO aperture.
We will not be able to handle this when we do mappings for PCI BARs only and
it should be handled with a CPIO driver anyway.
-rw-r--r-- | src/atipreinit.c | 12 | ||||
-rw-r--r-- | src/atiprobe.c | 16 |
2 files changed, 11 insertions, 17 deletions
diff --git a/src/atipreinit.c b/src/atipreinit.c index 8f808244..2e5903d1 100644 --- a/src/atipreinit.c +++ b/src/atipreinit.c @@ -423,7 +423,9 @@ ATIPreInit /* Finish probing the adapter */ { + /* I/O bases might no longer be valid after BIOS initialisation */ + /* Set CPIO address from PCI configuration space, for block I/O */ if (pATI->CPIODecoding == BLOCK_IO) pATI->CPIOBase = pVideo->ioBase[1]; @@ -459,9 +461,6 @@ ATIPreInit if (pATI->pBlock[0]) break; } - - /* Check VGA MMIO aperture */ - pATI->Block0Base = 0x000BFC00U; } ATIMach64Map(pScreenInfo->scrnIndex, pATI); @@ -1807,8 +1806,7 @@ ATIPreInit if (pATI->LinearBase && pATI->LinearSize) { - int AcceleratorVideoRAM = pATI->LinearSize >> 10; - int ServerVideoRAM = pATI->VideoRAM; + int AcceleratorVideoRAM = 0, ServerVideoRAM; /* * Unless specified in PCI configuration space, set MMIO @@ -1821,6 +1819,8 @@ ATIPreInit pATI->MMIOInLinear = TRUE; } + AcceleratorVideoRAM = pATI->LinearSize >> 10; + /* * Account for MMIO area at the tail end of the linear * aperture, if it is needed or if it cannot be disabled. @@ -1828,6 +1828,8 @@ ATIPreInit if (pATI->MMIOInLinear || (pATI->Chip < ATI_CHIP_264VTB)) AcceleratorVideoRAM -= 2; + ServerVideoRAM = pATI->VideoRAM; + if (pATI->Cursor > ATI_CURSOR_SOFTWARE) { /* diff --git a/src/atiprobe.c b/src/atiprobe.c index 4a70f81e..01c5763e 100644 --- a/src/atiprobe.c +++ b/src/atiprobe.c @@ -227,7 +227,10 @@ ATIMach64Probe (pATI->Block0Base < (CARD32)(-1 << pVideo->size[2]))) { pATI->Block0Base += 0x00000400U; - goto LastProbe; + if (ATIMach64Detect(pATI, ChipType, Chip)) + return pATI; + + return NULL; } /* @@ -246,17 +249,6 @@ ATIMach64Probe return pATI; } - /* - * A last, perhaps desparate, probe attempt. Note that if this succeeds, - * there's a VGA in the system and it's likely the PIO version of the - * driver should be used instead (barring OS issues). - */ - pATI->Block0Base = 0x000BFC00U; - -LastProbe: - if (ATIMach64Detect(pATI, ChipType, Chip)) - return pATI; - return NULL; } |