From 4c91cd6fd9edea2be411e460ec37ed75eed5a1c3 Mon Sep 17 00:00:00 2001
From: aaron <aaron@6dbc8c32-bb84-406f-8558-d1cf31a0ab0c>
Date: Mon, 22 May 2017 15:20:15 +0000
Subject: [PATCH] git-svn-id: https://spexeah.com:8443/svn/Asuro@189
 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c

---
 src/driver/PCI.pas | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/driver/PCI.pas b/src/driver/PCI.pas
index 481316e7..cce60004 100644
--- a/src/driver/PCI.pas
+++ b/src/driver/PCI.pas
@@ -276,13 +276,13 @@ end;
 function read8(bus : uint8; slot : uint8; func : uint8; offset : uint8; part : uint8) : uint8;
 begin
     loadConfig(bus, slot, func, offset);
-    read8 := (inb($CFC) shr (part * 8)) and $FF;
+    read8 := (inl($CFC) shr (part * 8)) and $FF;
 end;
 
 function read16(bus : uint8; slot : uint8; func : uint8; offset : uint8; part : uint8) : uint16;
 begin
     loadConfig(bus, slot, func, offset);
-    read16 := (inw($CFC) shr (part * 16)) and $FFFF;
+    read16 := (inl($CFC) shr (part * 16)) and $FFFF;
 end;
 
 function read32(bus : uint8; slot : uint8; func : uint8; offset : uint8) : uint32;