]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/PciHostBridgeDxe/PciHostBridge.h
BaseTools/Ecc: Fix a bug to report fake issue
[mirror_edk2.git] / OvmfPkg / PciHostBridgeDxe / PciHostBridge.h
index f475eb7e23eaed4798db072b38c2ae9001938d13..617c68e31847bab228a307bf56eb184984cb469b 100644 (file)
@@ -1,6 +1,7 @@
 /** @file\r
   The Header file of the Pci Host Bridge Driver\r
 \r
+  Copyright (C) 2015, Red Hat, Inc.\r
   Copyright (c) 2008 - 2010, Intel Corporation. All rights reserved.<BR>\r
 \r
   This program and the accompanying materials are licensed and made available\r
 #include <Library/IoLib.h>\r
 #include <Library/PciLib.h>\r
 \r
-//\r
-// Hard code the host bridge number in the platform.\r
-// In this chipset, there is only one host bridge.\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
@@ -57,7 +52,6 @@ typedef enum {
 typedef struct {\r
   UINTN                                             Signature;\r
   EFI_HANDLE                                        HostBridgeHandle;\r
-  UINTN                                             RootBridgeNumber;\r
   LIST_ENTRY                                        Head;\r
   BOOLEAN                                           ResourceSubmited;\r
   BOOLEAN                                           CanRestarted;\r
@@ -586,6 +580,13 @@ typedef struct {
   RES_STATUS        Status;\r
 } PCI_RES_NODE;\r
 \r
+#pragma pack(1)\r
+typedef struct {\r
+  EFI_ACPI_ADDRESS_SPACE_DESCRIPTOR SpaceDesc[TypeMax];\r
+  EFI_ACPI_END_TAG_DESCRIPTOR       EndDesc;\r
+} RESOURCE_CONFIGURATION;\r
+#pragma pack()\r
+\r
 #define PCI_ROOT_BRIDGE_SIGNATURE  SIGNATURE_32('e', '2', 'p', 'b')\r
 \r
 typedef struct {\r
@@ -611,9 +612,10 @@ typedef struct {
   UINT64                 MemLimit;\r
   UINT64                 IoLimit;\r
 \r
-  EFI_DEVICE_PATH_PROTOCOL                *DevicePath;\r
+  EFI_PCI_ROOT_BRIDGE_DEVICE_PATH         DevicePath;\r
   EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL         Io;\r
 \r
+  RESOURCE_CONFIGURATION                  ConfigBuffer;\r
 } PCI_ROOT_BRIDGE_INSTANCE;\r
 \r
 \r