summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Bus/Pci/PciBusDxe/PciBus.h
diff options
context:
space:
mode:
authorniruiyu <niruiyu@6f19259b-4bc3-4df7-8a09-765794883524>2012-09-07 03:15:25 +0000
committerniruiyu <niruiyu@6f19259b-4bc3-4df7-8a09-765794883524>2012-09-07 03:15:25 +0000
commit7d921075b454dcd4af7b8b2dc705bff83edb2275 (patch)
treef999a0f94457d6e908fe31c63b7e0ef13cfa84bf /MdeModulePkg/Bus/Pci/PciBusDxe/PciBus.h
parentf480fdc0f93d1c20f6e1460d0301fa1386359cde (diff)
downloadedk2-7d921075b454dcd4af7b8b2dc705bff83edb2275.tar.gz
edk2-7d921075b454dcd4af7b8b2dc705bff83edb2275.tar.bz2
edk2-7d921075b454dcd4af7b8b2dc705bff83edb2275.zip
Cache the state whether the ROM image contains EFI Option ROM when loading the ROM content from PCI device to memory to avoid re-parsing the ROM image to check the EFI Option ROM.
Signed-off-by: Ruiyu Ni<ruiyu.ni@intel.com> Reviewed-by: Elvin Li<elvin.li@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13707 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Bus/Pci/PciBusDxe/PciBus.h')
-rw-r--r--MdeModulePkg/Bus/Pci/PciBusDxe/PciBus.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/MdeModulePkg/Bus/Pci/PciBusDxe/PciBus.h b/MdeModulePkg/Bus/Pci/PciBusDxe/PciBus.h
index d591f0a2c1..348ce392e6 100644
--- a/MdeModulePkg/Bus/Pci/PciBusDxe/PciBus.h
+++ b/MdeModulePkg/Bus/Pci/PciBusDxe/PciBus.h
@@ -1,7 +1,7 @@
/** @file
Header files and data structures needed by PCI Bus module.
-Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2006 - 2012, 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
@@ -251,6 +251,11 @@ struct _PCI_IO_DEVICE {
BOOLEAN AllOpRomProcessed;
//
+ // TRUE if the ROM image contains EFI OpROM
+ //
+ BOOLEAN HasEfiOpRom;
+
+ //
// TRUE if there is any EFI driver in the OptionRom
//
BOOLEAN BusOverride;