diff options
author | rsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-06-18 09:21:47 +0000 |
---|---|---|
committer | rsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-06-18 09:21:47 +0000 |
commit | cac2ab9556d7cb0d658098a9df0b657d862a55d5 (patch) | |
tree | f1689e05231cc0eee32eea04054fe6e40965950c /PcAtChipsetPkg/PciHostBridgeDxe/PciHostBridge.h | |
parent | 46f0e2a9eeb384eeff020b69a95b9277ee7c5a16 (diff) |
Update PcAtChipsetPkg PciRootBridgeIo to consume IoLib&PciLib.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10591 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'PcAtChipsetPkg/PciHostBridgeDxe/PciHostBridge.h')
-rw-r--r-- | PcAtChipsetPkg/PciHostBridgeDxe/PciHostBridge.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/PcAtChipsetPkg/PciHostBridgeDxe/PciHostBridge.h b/PcAtChipsetPkg/PciHostBridgeDxe/PciHostBridge.h index 8c0acc610..42a3d591c 100644 --- a/PcAtChipsetPkg/PciHostBridgeDxe/PciHostBridge.h +++ b/PcAtChipsetPkg/PciHostBridgeDxe/PciHostBridge.h @@ -1,7 +1,7 @@ /** @file
The Header file of the Pci Host Bridge Driver
- Copyright (c) 2008 - 2009, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2008 - 2010, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials are
licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -22,7 +22,6 @@ #include <Protocol/PciHostBridgeResourceAllocation.h>
#include <Protocol/PciRootBridgeIo.h>
-#include <Protocol/CpuIo2.h>
#include <Protocol/Metronome.h>
#include <Protocol/DevicePath.h>
@@ -35,6 +34,8 @@ #include <Library/UefiBootServicesTableLib.h>
#include <Library/DxeServicesTableLib.h>
#include <Library/DevicePathLib.h>
+#include <Library/IoLib.h>
+#include <Library/PciLib.h>
//
// Hard code the host bridge number in the platform.
@@ -42,6 +43,16 @@ //
#define HOST_BRIDGE_NUMBER 1
+#define MAX_PCI_DEVICE_NUMBER 31
+#define MAX_PCI_FUNCTION_NUMBER 7
+#define MAX_PCI_REG_ADDRESS 0xFF
+
+typedef enum {
+ IoOperation,
+ MemOperation,
+ PciOperation
+} OPERATION_TYPE;
+
#define PCI_HOST_BRIDGE_SIGNATURE SIGNATURE_32('e', 'h', 's', 't')
typedef struct {
UINTN Signature;
@@ -219,7 +230,6 @@ typedef struct { UINT64 MemLimit;
UINT64 IoLimit;
- EFI_LOCK PciLock;
UINTN PciAddress;
UINTN PciData;
|