Initial commit of kernel only
[tpg/acess2.git] / Kernel / include / drv_pci.h
1 /*\r
2  * Acess 2\r
3  * PCI Bus Driver\r
4  * drv_pci.h\r
5  */\r
6 #ifndef _DRV_PCI_H\r
7 #define _DRV_PCI_H\r
8 \r
9 enum e_PciClasses {\r
10         PCI_CLASS_PRE20 = 0x00,\r
11         PCI_CLASS_STORAGE,\r
12         PCI_CLASS_NETWORK,\r
13         PCI_CLASS_DISPLAY,\r
14         PCI_CLASS_MULTIMEDIA,\r
15         PCI_CLASS_MEMORY,\r
16         PCI_CLASS_BRIDGE,\r
17         PCI_CLASS_COMM,\r
18         PCI_CLASS_PREPH,\r
19         PCI_CLASS_INPUT,\r
20         PCI_CLASS_DOCKING,\r
21         PCI_CLASS_PROCESSORS,\r
22         PCI_CLASS_SERIALBUS,\r
23         PCI_CLASS_MISC = 0xFF\r
24 };\r
25 enum e_PciOverClasses {\r
26         PCI_OC_PCIBRIDGE = 0x0604,\r
27         PCI_OC_SCSI = 0x0100\r
28 };\r
29 \r
30 \r
31 extern int      PCI_CountDevices(Uint16 vendor, Uint16 device, Uint16 fcn);\r
32 extern int      PCI_GetDevice(Uint16 vendor, Uint16 device, Uint16 fcn, int idx);\r
33 extern int      PCI_GetDeviceByClass(Uint16 class, Uint16 mask, int prev);\r
34 extern Uint8    PCI_GetIRQ(int id);\r
35 extern Uint32   PCI_GetBAR0(int id);\r
36 extern Uint32   PCI_GetBAR1(int id);\r
37 extern Uint32   PCI_GetBAR3(int id);\r
38 extern Uint32   PCI_GetBAR4(int id);\r
39 extern Uint32   PCI_GetBAR5(int id);\r
40 \r
41 #endif\r

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