[PCI]
[reactos.git] / drivers / bus / pci / pci.h
index 3810e21..605be08 100644 (file)
@@ -1,18 +1,9 @@
-#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
 {
@@ -26,8 +17,12 @@ 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;
 
 
@@ -177,9 +172,7 @@ PdoPowerControl(
   PIRP Irp);
 
 NTSTATUS
-STDCALL
+NTAPI
 DriverEntry(
   IN PDRIVER_OBJECT DriverObject,
   IN PUNICODE_STRING RegistryPath);
-
-#endif  /*  __PCI_H  */