summaryrefslogtreecommitdiff
path: root/src/clientlx.c
diff options
context:
space:
mode:
authorIan Romanick <idr@umwelt.(none)>2006-07-26 11:46:52 -0700
committerIan Romanick <idr@umwelt.(none)>2006-07-26 11:46:52 -0700
commit95e0722ff2e8878cdd6bb0e349eecab042b879db (patch)
tree03b801974e76f5feb3df4755f434952cb1faf6a8 /src/clientlx.c
parent78c12368fa1c1985f41ce856ff453a967429870a (diff)
Current state of MGA driver modified to work with the xserver
pci-rework branch.
Diffstat (limited to 'src/clientlx.c')
-rw-r--r--src/clientlx.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/clientlx.c b/src/clientlx.c
index 306d3ed..6b754aa 100644
--- a/src/clientlx.c
+++ b/src/clientlx.c
@@ -67,7 +67,7 @@ ULONG ClientReadConfigSpaceByte(LPBOARDHANDLE pBoard, ULONG ulOffset,
ASSERT_HANDLER(pBoard);
- *pucByte = pciReadByte(pMga->PciTag,ulOffset);
+ pci_device_cfg_read_u8(pMga->PciInfo, pucByte, ulOffset);
return 0;
}
@@ -95,7 +95,7 @@ ULONG ClientReadConfigSpaceDword(LPBOARDHANDLE pBoard, ULONG ulOffset,
ASSERT_HANDLER(pBoard);
- *pulDword = pciReadLong(pMga->PciTag,ulOffset);
+ pci_device_cfg_read_u32(pMga->PciInfo, (uint32_t *) pulDword, ulOffset);
return 0;
}
@@ -123,7 +123,7 @@ ULONG ClientWriteConfigSpaceByte(LPBOARDHANDLE pBoard, ULONG ulOffset,
ASSERT_HANDLER(pBoard);
- pciWriteByte(pMga->PciTag,ulOffset, ucByte);
+ pci_device_cfg_write_u8(pMga->PciInfo, & ucByte, ulOffset);
return 0;
}
@@ -151,7 +151,7 @@ ULONG ClientWriteConfigSpaceDword(LPBOARDHANDLE pBoard, ULONG ulOffset,
ASSERT_HANDLER(pBoard);
- pciWriteLong(pMga->PciTag,ulOffset, ulDword);
+ pci_device_cfg_write_u32(pMga->PciInfo, (uint32_t *) & ulDword, ulOffset);
return 0;
}