X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Kernel%2Finclude%2Fdrv_pci.h;h=33c4a3ecfc41c6901416d5b4b00ebaaceb8f4a24;hb=9e5fa402ca899be7d2b49980d6a45340c9bece55;hp=9697df0a122789ef39ff698e1be5c87c2077fac5;hpb=d7451f7fa5cf4ab0eef51d9620140b41d13fa0ba;p=tpg%2Facess2.git diff --git a/Kernel/include/drv_pci.h b/Kernel/include/drv_pci.h index 9697df0a..33c4a3ec 100644 --- a/Kernel/include/drv_pci.h +++ b/Kernel/include/drv_pci.h @@ -29,8 +29,8 @@ enum ePCIClasses enum ePCIOverClasses { - PCI_OC_PCIBRIDGE = 0x0604, - PCI_OC_SCSI = 0x0100 + PCI_OC_PCIBRIDGE = 0x060400, + PCI_OC_SCSI = 0x010000 }; typedef int tPCIDev; @@ -42,10 +42,13 @@ typedef int tPCIDev; */ extern int PCI_CountDevices(Uint16 VendorID, Uint16 DeviceID); extern tPCIDev PCI_GetDevice(Uint16 VendorID, Uint16 DeviceID, int index); -extern tPCIDev PCI_GetDeviceByClass(Uint16 ClassCode, Uint16 Mask, tPCIDev prev); +/** + * \param ClassCode (Class:SubClass:PI) + */ +extern tPCIDev PCI_GetDeviceByClass(Uint32 ClassCode, Uint32 Mask, tPCIDev prev); -extern int PCI_GetDeviceInfo(tPCIDev id, Uint16 *Vendor, Uint16 *Device, Uint16 *Class); -extern int PCI_GetDeviceVersion(tPCIDev id, Uint8 *Revision, Uint8 *ProgIF); +extern int PCI_GetDeviceInfo(tPCIDev id, Uint16 *Vendor, Uint16 *Device, Uint32 *Class); +extern int PCI_GetDeviceVersion(tPCIDev id, Uint8 *Revision); extern int PCI_GetDeviceSubsys(tPCIDev id, Uint16 *SubsystemVendor, Uint16 *SubsystemID); extern Uint32 PCI_ConfigRead(tPCIDev id, int Offset, int Size);