From df93b0ff9ae1f4cdd9e7808ea9fcc9fc23d0874b Mon Sep 17 00:00:00 2001 From: mdkinney Date: Fri, 5 Jun 2009 21:32:38 +0000 Subject: [PATCH] Move gEfiPciOptionRomTableGuid from IntelFrameworkModulePkg to the DuetPkg git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8483 6f19259b-4bc3-4df7-8a09-765794883524 --- DuetPkg/DuetPkg.dec | 3 +- DuetPkg/Include/Guid/PciOptionRomTable.h | 41 +++++++++++++++++++ DuetPkg/PciBusNoEnumerationDxe/PciBus.h | 2 +- .../PciBusNoEnumeration.inf | 3 +- .../PciRootBridgeNoEnumeration.inf | 1 - 5 files changed, 45 insertions(+), 5 deletions(-) create mode 100644 DuetPkg/Include/Guid/PciOptionRomTable.h diff --git a/DuetPkg/DuetPkg.dec b/DuetPkg/DuetPkg.dec index dbd6238961..40e72b0474 100644 --- a/DuetPkg/DuetPkg.dec +++ b/DuetPkg/DuetPkg.dec @@ -30,4 +30,5 @@ gEfiAcpiDescriptionGuid = {0x3c699197, 0x093c, 0x4c69, {0xb0, 0x6b, 0x12, 0x8a, 0xe3, 0x48, 0x1d, 0xc9 }} gEfiFlashMapHobGuid = { 0xb091e7d2, 0x5a0, 0x4198, {0x94, 0xf0, 0x74, 0xb7, 0xb8, 0xc5, 0x54, 0x59 }} - \ No newline at end of file + ## Include/Guid/PciOptionRomTable.h + gEfiPciOptionRomTableGuid = { 0x7462660F, 0x1CBD, 0x48DA, { 0xAD, 0x11, 0x91, 0x71, 0x79, 0x13, 0x83, 0x1C }} diff --git a/DuetPkg/Include/Guid/PciOptionRomTable.h b/DuetPkg/Include/Guid/PciOptionRomTable.h new file mode 100644 index 0000000000..09e4faa06d --- /dev/null +++ b/DuetPkg/Include/Guid/PciOptionRomTable.h @@ -0,0 +1,41 @@ +/** @file + GUID and data structure used to describe the list of PCI Option ROMs present in a system. + +Copyright (c) 2006, Intel Corporation +All rights reserved. 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 +http://opensource.org/licenses/bsd-license.php + +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. + +**/ + +#ifndef __PCI_OPTION_ROM_TABLE_GUID_H_ +#define __PCI_OPTION_ROM_TABLE_GUID_H_ + +#define EFI_PCI_OPTION_ROM_TABLE_GUID \ + { 0x7462660f, 0x1cbd, 0x48da, {0xad, 0x11, 0x91, 0x71, 0x79, 0x13, 0x83, 0x1c } } + +extern EFI_GUID gEfiPciOptionRomTableGuid; + +typedef struct { + EFI_PHYSICAL_ADDRESS RomAddress; + EFI_MEMORY_TYPE MemoryType; + UINT32 RomLength; + UINT32 Seg; + UINT8 Bus; + UINT8 Dev; + UINT8 Func; + BOOLEAN ExecutedLegacyBiosImage; + BOOLEAN DontLoadEfiRom; +} EFI_PCI_OPTION_ROM_DESCRIPTOR; + +typedef struct { + UINT64 PciOptionRomCount; + EFI_PCI_OPTION_ROM_DESCRIPTOR *PciOptionRomDescriptors; +} EFI_PCI_OPTION_ROM_TABLE; + +#endif // __PCI_OPTION_ROM_TABLE_GUID_H_ + diff --git a/DuetPkg/PciBusNoEnumerationDxe/PciBus.h b/DuetPkg/PciBusNoEnumerationDxe/PciBus.h index e83f32d7bf..168108928f 100644 --- a/DuetPkg/PciBusNoEnumerationDxe/PciBus.h +++ b/DuetPkg/PciBusNoEnumerationDxe/PciBus.h @@ -24,7 +24,7 @@ Revision History #ifndef _EFI_PCI_BUS_H #define _EFI_PCI_BUS_H -#include +#include #include #include diff --git a/DuetPkg/PciBusNoEnumerationDxe/PciBusNoEnumeration.inf b/DuetPkg/PciBusNoEnumerationDxe/PciBusNoEnumeration.inf index 5ad324d3e3..0b7827aa83 100644 --- a/DuetPkg/PciBusNoEnumerationDxe/PciBusNoEnumeration.inf +++ b/DuetPkg/PciBusNoEnumerationDxe/PciBusNoEnumeration.inf @@ -27,8 +27,7 @@ [Packages] MdePkg/MdePkg.dec - IntelFrameworkPkg/IntelFrameworkPkg.dec - IntelFrameworkModulePkg/IntelFrameworkModulePkg.dec + DuetPkg/DuetPkg.dec [LibraryClasses] DebugLib diff --git a/DuetPkg/PciRootBridgeNoEnumerationDxe/PciRootBridgeNoEnumeration.inf b/DuetPkg/PciRootBridgeNoEnumerationDxe/PciRootBridgeNoEnumeration.inf index 3f9b43fd74..c85e4646c3 100644 --- a/DuetPkg/PciRootBridgeNoEnumerationDxe/PciRootBridgeNoEnumeration.inf +++ b/DuetPkg/PciRootBridgeNoEnumerationDxe/PciRootBridgeNoEnumeration.inf @@ -31,7 +31,6 @@ MdePkg/MdePkg.dec DuetPkg/DuetPkg.dec IntelFrameworkPkg/IntelFrameworkPkg.dec - IntelFrameworkModulePkg/IntelFrameworkModulePkg.dec [LibraryClasses] UefiDriverEntryPoint -- 2.39.2