diff options
author | George Sapountzis <gsap7@yahoo.gr> | 2007-03-18 16:15:20 +0200 |
---|---|---|
committer | George Sapountzis <gsap7@yahoo.gr> | 2007-03-21 20:18:54 +0200 |
commit | 321db6d87c9110654ab386e5ec270116eca1e04f (patch) | |
tree | cc8b1e8ba11d0bef543567c448754de3076d1e38 /src/atipreinit.c | |
parent | dfd07b6e99020d1db43d7ce0cae4423d8c6b1f05 (diff) |
[mach64] Add macros for pci-rework source-code compatibilty.
Diffstat (limited to 'src/atipreinit.c')
-rw-r--r-- | src/atipreinit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/atipreinit.c b/src/atipreinit.c index f5cf6b38..62fd660a 100644 --- a/src/atipreinit.c +++ b/src/atipreinit.c @@ -427,12 +427,12 @@ ATIPreInit /* Set CPIO address from PCI configuration space, for block I/O */ if (pATI->CPIODecoding == BLOCK_IO) - pATI->CPIOBase = pVideo->ioBase[1]; + pATI->CPIOBase = PCI_REGION_BASE(pVideo, 1, REGION_IO); pATI->MMIOInLinear = FALSE; /* Set MMIO address from PCI configuration space, if available */ - if ((pATI->Block0Base = pVideo->memBase[2])) + if ((pATI->Block0Base = PCI_REGION_BASE(pVideo, 2, REGION_MEM))) { pATI->Block0Base += 0x0400U; } @@ -448,7 +448,7 @@ ATIPreInit if (!pATI->Block0Base) { /* Check tail end of linear (8MB or 4MB) aperture */ - if ((pATI->Block0Base = pVideo->memBase[0])) + if ((pATI->Block0Base = PCI_REGION_BASE(pVideo, 0, REGION_MEM))) { pATI->MMIOInLinear = TRUE; |