+++ /dev/null
-/**\r
- * \file drv_pci.h\r
- * \brief PCI Bus Driver\r
- * \author John Hodge (thePowersGang)\r
- */\r
-#ifndef _DRV_PCI_H\r
-#define _DRV_PCI_H\r
-\r
-/**\r
- * \brief PCI Class Codes\r
- */\r
-enum ePCIClasses\r
-{\r
- PCI_CLASS_PRE20 = 0x00,\r
- PCI_CLASS_STORAGE,\r
- PCI_CLASS_NETWORK,\r
- PCI_CLASS_DISPLAY,\r
- PCI_CLASS_MULTIMEDIA,\r
- PCI_CLASS_MEMORY,\r
- PCI_CLASS_BRIDGE,\r
- PCI_CLASS_COMM,\r
- PCI_CLASS_PREPH,\r
- PCI_CLASS_INPUT,\r
- PCI_CLASS_DOCKING,\r
- PCI_CLASS_PROCESSORS,\r
- PCI_CLASS_SERIALBUS,\r
- PCI_CLASS_MISC = 0xFF\r
-};\r
-\r
-enum ePCIOverClasses\r
-{\r
- PCI_OC_PCIBRIDGE = 0x0604,\r
- PCI_OC_SCSI = 0x0100\r
-};\r
-\r
-typedef int tPCIDev;\r
-\r
-/**\r
- * \brief Count PCI Devices\r
- * \r
- * Counts the number of devices with specified Vendor and Device IDs\r
- */\r
-extern int PCI_CountDevices(Uint16 VendorID, Uint16 DeviceID);\r
-extern tPCIDev PCI_GetDevice(Uint16 VendorID, Uint16 DeviceID, int index);\r
-extern tPCIDev PCI_GetDeviceByClass(Uint16 ClassCode, Uint16 Mask, tPCIDev prev);\r
-\r
-extern int PCI_GetDeviceInfo(tPCIDev id, Uint16 *Vendor, Uint16 *Device, Uint16 *Class);\r
-extern int PCI_GetDeviceVersion(tPCIDev id, Uint8 *Revision, Uint8 *ProgIF);\r
-extern int PCI_GetDeviceSubsys(tPCIDev id, Uint16 *SubsystemVendor, Uint16 *SubsystemID);\r
-\r
-extern Uint32 PCI_ConfigRead(tPCIDev id, int Offset, int Size);\r
-extern void PCI_ConfigWrite(tPCIDev id, int Offset, int Size, Uint32 Value);\r
-\r
-extern Uint8 PCI_GetIRQ(tPCIDev id);\r
-extern Uint32 PCI_GetBAR(tPCIDev id, int BAR);\r
-//extern Uint16 PCI_AssignPort(tPCIDev id, int bar, int count);\r
-\r
-#endif\r