3 * - By John Hodge (thePowersGang)
6 * - Virtual PCI bus definitions
8 #ifndef _VIRTUAL_PCI_H_
9 #define _VIRTUAL_PCI_H_
12 typedef struct sVPCI_Device tVPCI_Device;
18 // Vendor/Device is defined at runtime as 0x0ACE:0x[ARCH][ARCH][IDX][IDX]
21 // Class code (Class, Subclass, Programming Interface, Revision)
28 * \param Ptr Value in sVPCI_Device.Ptr
29 * \param Data Data to write to the specified address
31 void (*Write)(void *Ptr, Uint8 DWord, Uint32 Data);
32 Uint32 (*Read)(void *Ptr, Uint8 DWord);
35 extern int giVPCI_DeviceCount;
36 extern tVPCI_Device gaVPCI_Devices[];
38 extern Uint32 VPCI_Read(tVPCI_Device *Dev, Uint8 Offset, Uint8 Size);
39 extern void VPCI_Write(tVPCI_Device *Dev, Uint8 Offset, Uint8 Size, Uint32 Data);