X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=reactos%2Fdrivers%2Fbus%2Fpci%2Fpci.h;h=43230d0d1b3871d4f88ed58d415a20a31361f877;hp=d211bbcfcb196484add13092b3a527aba635f2c9;hb=b4c206def5740139608432a45d61d7d7e5730817;hpb=e6bbd8f24735ef37004c7befd82b557a21619c59;ds=sidebyside diff --git a/reactos/drivers/bus/pci/pci.h b/reactos/drivers/bus/pci/pci.h index d211bbcfcb1..43230d0d1b3 100644 --- a/reactos/drivers/bus/pci/pci.h +++ b/reactos/drivers/bus/pci/pci.h @@ -2,13 +2,6 @@ #define __PCI_H -typedef enum { - pbtUnknown = 0, - pbtType1, - pbtType2, -} PCI_BUS_TYPE; - - typedef struct _PCI_DEVICE { // Entry on device list @@ -77,6 +70,8 @@ typedef struct _FDO_DEVICE_EXTENSION { // Common device data COMMON_DEVICE_EXTENSION Common; + // Entry on device list + LIST_ENTRY ListEntry; // PCI bus number serviced by this FDO ULONG BusNumber; // Current state of the driver @@ -92,6 +87,21 @@ typedef struct _FDO_DEVICE_EXTENSION } FDO_DEVICE_EXTENSION, *PFDO_DEVICE_EXTENSION; +/* Driver extension associated with PCI driver */ +typedef struct _PCI_DRIVER_EXTENSION +{ + // + LIST_ENTRY BusListHead; + // Lock for namespace bus list + KSPIN_LOCK BusListLock; +} PCI_DRIVER_EXTENSION, *PPCI_DRIVER_EXTENSION; + + +/* We need a global variable to get the driver extension, + * because at least InterfacePciDevicePresent has no + * other way to get it... */ +extern PPCI_DRIVER_EXTENSION DriverExtension; + /* fdo.c */ NTSTATUS