3 * \brief PCI Bus Driver
\r
4 * \author John Hodge (thePowersGang)
\r
10 * \brief PCI Class Codes
\r
14 PCI_CLASS_PRE20 = 0x00,
\r
18 PCI_CLASS_MULTIMEDIA,
\r
25 PCI_CLASS_PROCESSORS,
\r
26 PCI_CLASS_SERIALBUS,
\r
27 PCI_CLASS_MISC = 0xFF
\r
30 enum ePCIOverClasses
\r
32 PCI_OC_PCIBRIDGE = 0x0604,
\r
33 PCI_OC_SCSI = 0x0100
\r
37 * \brief Count PCI Devices
\r
39 * Counts the number of devices with specified Vendor and Device IDs
\r
41 extern int PCI_CountDevices(Uint16 vendor, Uint16 device, Uint16 fcn);
\r
43 extern int PCI_GetDevice(Uint16 vendor, Uint16 device, Uint16 fcn, int idx);
\r
44 extern int PCI_GetDeviceByClass(Uint16 class, Uint16 mask, int prev);
\r
45 extern Uint8 PCI_GetIRQ(int id);
\r
46 extern Uint32 PCI_GetBAR0(int id);
\r
47 extern Uint32 PCI_GetBAR1(int id);
\r
48 extern Uint32 PCI_GetBAR3(int id);
\r
49 extern Uint32 PCI_GetBAR4(int id);
\r
50 extern Uint32 PCI_GetBAR5(int id);
\r
51 extern Uint16 PCI_AssignPort(int id, int bar, int count);
\r