Build pci with w32api
Modified: trunk/reactos/drivers/bus/pci/makefile
Modified: trunk/reactos/drivers/bus/pci/pci.c
Modified: trunk/reactos/drivers/bus/pci/pdo.c
Modified: trunk/reactos/w32api/include/ddk/winddk.h

Modified: trunk/reactos/drivers/bus/pci/makefile
--- trunk/reactos/drivers/bus/pci/makefile	2005-05-28 00:12:41 UTC (rev 15555)
+++ trunk/reactos/drivers/bus/pci/makefile	2005-05-28 00:24:46 UTC (rev 15556)
@@ -6,7 +6,7 @@
 
 TARGET_NAME = pci
 
-TARGET_CFLAGS = -Wall -Werror
+TARGET_CFLAGS = -Wall -Werror -D__USE_W32API
 
 TARGET_OBJECTS = fdo.o pci.o pdo.o
 

Modified: trunk/reactos/drivers/bus/pci/pci.c
--- trunk/reactos/drivers/bus/pci/pci.c	2005-05-28 00:12:41 UTC (rev 15555)
+++ trunk/reactos/drivers/bus/pci/pci.c	2005-05-28 00:24:46 UTC (rev 15556)
@@ -9,6 +9,7 @@
  */
 
 #include <ddk/ntddk.h>
+#include <stdio.h>
 
 #include "pcidef.h"
 #include "pci.h"

Modified: trunk/reactos/drivers/bus/pci/pdo.c
--- trunk/reactos/drivers/bus/pci/pdo.c	2005-05-28 00:12:41 UTC (rev 15555)
+++ trunk/reactos/drivers/bus/pci/pdo.c	2005-05-28 00:24:46 UTC (rev 15556)
@@ -9,15 +9,14 @@
  */
 
 #include <ddk/ntddk.h>
-
+#include <initguid.h>
+#include <ddk/wdmguid.h>
 #include "pcidef.h"
 #include "pci.h"
 
 #define NDEBUG
 #include <debug.h>
 
-DEFINE_GUID(GUID_BUS_TYPE_PCI, 0xc8ebdfb0L, 0xb510, 0x11d0, 0x80, 0xe5, 0x00, 0xa0, 0xc9, 0x25, 0x42, 0xe3);
-
 /*** PRIVATE *****************************************************************/
 
 static NTSTATUS

Modified: trunk/reactos/w32api/include/ddk/winddk.h
--- trunk/reactos/w32api/include/ddk/winddk.h	2005-05-28 00:12:41 UTC (rev 15555)
+++ trunk/reactos/w32api/include/ddk/winddk.h	2005-05-28 00:24:46 UTC (rev 15556)
@@ -3231,6 +3231,17 @@
 #define PCI_INVALID_VENDORID   0xFFFF
 #define PCI_COMMON_HDR_LENGTH (FIELD_OFFSET(PCI_COMMON_CONFIG, DeviceSpecific))
 
+#define PCI_ADDRESS_IO_SPACE                0x01
+#define PCI_ADDRESS_MEMORY_TYPE_MASK        0x06
+#define PCI_ADDRESS_MEMORY_PREFETCHABLE     0x08
+#define PCI_ADDRESS_IO_ADDRESS_MASK         0xfffffffc
+#define PCI_ADDRESS_MEMORY_ADDRESS_MASK     0xfffffff0
+#define PCI_ADDRESS_ROM_ADDRESS_MASK        0xfffff800
+
+#define PCI_TYPE_32BIT 0
+#define PCI_TYPE_20BIT 2
+#define PCI_TYPE_64BIT 4
+
 typedef struct _PCI_SLOT_NUMBER {
   union {
     struct {