]> git.proxmox.com Git - mirror_edk2.git/blobdiff - PcAtChipsetPkg/PciHostBridgeDxe/PciHostBridge.h
Update PcAtChipsetPkg PciRootBridgeIo to consume IoLib&PciLib.
[mirror_edk2.git] / PcAtChipsetPkg / PciHostBridgeDxe / PciHostBridge.h
index 8c0acc6103325451805e08f033427d51a8e80ae5..42a3d591c00b53c43d7240eefb0b5d8e916e5594 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   The Header file of the Pci Host Bridge Driver \r
 \r
-  Copyright (c) 2008 - 2009, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2008 - 2010, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials are\r
   licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -22,7 +22,6 @@
 \r
 #include <Protocol/PciHostBridgeResourceAllocation.h>\r
 #include <Protocol/PciRootBridgeIo.h>\r
-#include <Protocol/CpuIo2.h>\r
 #include <Protocol/Metronome.h>\r
 #include <Protocol/DevicePath.h>\r
 \r
@@ -35,6 +34,8 @@
 #include <Library/UefiBootServicesTableLib.h>\r
 #include <Library/DxeServicesTableLib.h>\r
 #include <Library/DevicePathLib.h>\r
+#include <Library/IoLib.h>\r
+#include <Library/PciLib.h>\r
 \r
 //\r
 // Hard code the host bridge number in the platform.\r
 //\r
 #define HOST_BRIDGE_NUMBER  1\r
 \r
+#define MAX_PCI_DEVICE_NUMBER      31\r
+#define MAX_PCI_FUNCTION_NUMBER    7\r
+#define MAX_PCI_REG_ADDRESS        0xFF\r
+\r
+typedef enum {\r
+  IoOperation,\r
+  MemOperation,\r
+  PciOperation\r
+} OPERATION_TYPE;\r
+\r
 #define PCI_HOST_BRIDGE_SIGNATURE  SIGNATURE_32('e', 'h', 's', 't')\r
 typedef struct {\r
   UINTN                                             Signature;\r
@@ -219,7 +230,6 @@ typedef struct {
   UINT64                 MemLimit;    \r
   UINT64                 IoLimit;     \r
 \r
-  EFI_LOCK               PciLock;\r
   UINTN                  PciAddress;\r
   UINTN                  PciData;\r
   \r