7a0a2c112207d7e83003c9af88904b99d66715d2
[tpg/acess2.git] / pci.c
1 /*\r
2  * Acess2\r
3  * arch/x86/pci.h - x86 PCI Bus Access\r
4  */\r
5 #define DEBUG   0\r
6 #include <acess.h>\r
7 #include <drv_pci_int.h>\r
8 \r
9 // === CODE ===\r
10 Uint32 PCI_CfgReadDWord(Uint32 Address)\r
11 {\r
12         Address |= 0x80000000;\r
13         outd(0xCF8, Address);\r
14         return ind(0xCFC);\r
15 }\r
16 \r
17 void PCI_CfgWriteDWord(Uint32 Address, Uint32 Data)\r
18 {\r
19         Address |= 0x80000000;\r
20         outd(0xCF8, Address);\r
21         outd(0xCFC, Data);\r
22 }\r

UCC git Repository :: git.ucc.asn.au