summaryrefslogtreecommitdiff
path: root/src/atiprint.c
diff options
context:
space:
mode:
authorGeorge Sapountzis <gsap7@yahoo.gr>2007-03-18 16:15:20 +0200
committerGeorge Sapountzis <gsap7@yahoo.gr>2007-03-21 20:18:54 +0200
commit321db6d87c9110654ab386e5ec270116eca1e04f (patch)
treecc8b1e8ba11d0bef543567c448754de3076d1e38 /src/atiprint.c
parentdfd07b6e99020d1db43d7ce0cae4423d8c6b1f05 (diff)
[mach64] Add macros for pci-rework source-code compatibilty.
Diffstat (limited to 'src/atiprint.c')
-rw-r--r--src/atiprint.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/atiprint.c b/src/atiprint.c
index d435e21..60d9c21 100644
--- a/src/atiprint.c
+++ b/src/atiprint.c
@@ -355,8 +355,6 @@ ATIPrintRegisters
ATIPtr pATI
)
{
- pciVideoPtr pVideo = pATI->PCIInfo;
- pciConfigPtr pPCI = pVideo->thisCard;
int Index;
CARD32 lcd_index, tv_out_index, lcd_gen_ctrl;
CARD8 dac_read, dac_mask, dac_write;
@@ -642,10 +640,14 @@ ATIPrintRegisters
xf86ErrorFVerb(4, "\n\n PCI configuration register values:");
for (Index = 0; Index < 256; Index+= 4)
{
+ pciVideoPtr pVideo = pATI->PCIInfo;
+ uint32_t data;
+
+ PCI_READ_LONG(pVideo, &data, Index);
+
if (!(Index & 15))
xf86ErrorFVerb(4, "\n 0x%02X: ", Index);
- xf86ErrorFVerb(4, " 0x%08lX",
- (unsigned long)pciReadLong(pPCI->tag, Index));
+ xf86ErrorFVerb(4, " 0x%08X", data);
}
}