Kernel/VFS - Fixed missuse of strcmp that caused userland compilations to break
[tpg/acess2.git] / KernelLand / Kernel / arch / armv7 / pci.c
1 /*
2  *
3  */
4 #include <acess.h>
5 #include <drv_pci_int.h>
6
7 // Realview
8 //#define PCI_BASE      0x60000000
9
10 //#define PCI_BASE      0xF0400000      // VMM Mapping
11 #define PCI_BASE        0
12
13 // === CODE ===
14 void PCI_CfgWriteDWord(Uint32 Addr, Uint32 Data)
15 {
16         #if PCI_BASE
17         Uint32  address = PCI_BASE | Addr;
18         *(Uint32*)(address) = Data;
19         #else
20         #endif
21 }
22
23 Uint32 PCI_CfgReadDWord(Uint32 Addr)
24 {
25         #if PCI_BASE
26         Uint32  address = PCI_BASE | Addr;
27         return *(Uint32*)address;
28         #else
29         return 0xFFFFFFFF;
30         #endif
31 }
32

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