-#ifndef __PCI_H
-#define __PCI_H
-
#include <ntifs.h>
#include <wdmguid.h>
#include <stdio.h>
#include <ntddk.h>
-#ifdef _MSC_VER
- #define STDCALL
- #define DDKAPI
-#endif
-
-#define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24))
-#define TAG_PCI TAG('P', 'C', 'I', '0')
+#define TAG_PCI '0ICP'
typedef struct _PCI_DEVICE
{
PCI_SLOT_NUMBER SlotNumber;
// PCI configuration data
PCI_COMMON_CONFIG PciConfig;
- // Flag used during enumeration to locate removed devices
- BOOLEAN RemovePending;
+ // Enable memory space
+ BOOLEAN EnableMemorySpace;
+ // Enable I/O space
+ BOOLEAN EnableIoSpace;
+ // Enable bus master
+ BOOLEAN EnableBusMaster;
} PCI_DEVICE, *PPCI_DEVICE;
PIRP Irp);
NTSTATUS
-STDCALL
+NTAPI
DriverEntry(
IN PDRIVER_OBJECT DriverObject,
IN PUNICODE_STRING RegistryPath);
-
-#endif /* __PCI_H */