summaryrefslogtreecommitdiff
path: root/src/atipreinit.c
diff options
context:
space:
mode:
authorGeorge Sapountzis <gsap7@yahoo.gr>2007-03-18 15:35:25 +0200
committerGeorge Sapountzis <gsap7@yahoo.gr>2007-03-21 20:18:49 +0200
commite7969de8ec572d8801806f9525a9a081a58a03f1 (patch)
tree48f39803ef42a20cfcd3c0a26100d4fb01c7c2eb /src/atipreinit.c
parent2d2fb54ba370c1df9ef5102e83c17a7ff5c55403 (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.
Diffstat (limited to 'src/atipreinit.c')
-rw-r--r--src/atipreinit.c12
1 files changed, 7 insertions, 5 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)
{
/*