]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Bus/Pci/PciBusDxe/PciRomTable.h
1. Impl PI 1.2 PCI part. Major changes include:
[mirror_edk2.git] / MdeModulePkg / Bus / Pci / PciBusDxe / PciRomTable.h
diff --git a/MdeModulePkg/Bus/Pci/PciBusDxe/PciRomTable.h b/MdeModulePkg/Bus/Pci/PciBusDxe/PciRomTable.h
new file mode 100644 (file)
index 0000000..e1b41a7
--- /dev/null
@@ -0,0 +1,55 @@
+/** @file\r
+  Set up ROM Table for PCI Bus module.\r
+\r
+Copyright (c) 2006 - 2009, Intel Corporation\r
+All rights reserved. This program and the accompanying materials\r
+are 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
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+**/\r
+\r
+#ifndef _EFI_PCI_ROM_TABLE_H_\r
+#define _EFI_PCI_ROM_TABLE_H_\r
+\r
+/**\r
+  Add the Rom Image to internal database for later PCI light enumeration.\r
+\r
+  @param ImageHandle    Option Rom image handle.\r
+  @param Seg            Segment of PCI space.\r
+  @param Bus            Bus NO of PCI space.\r
+  @param Dev            Dev NO of PCI space.\r
+  @param Func           Func NO of PCI space.\r
+  @param RomAddress     Base address of OptionRom.\r
+  @param RomLength      Length of rom image.\r
+\r
+**/\r
+VOID\r
+PciRomAddImageMapping (\r
+  IN  EFI_HANDLE  ImageHandle,\r
+  IN  UINTN       Seg,\r
+  IN  UINT8       Bus,\r
+  IN  UINT8       Dev,\r
+  IN  UINT8       Func,\r
+  IN  UINT64      RomAddress,\r
+  IN  UINT64      RomLength\r
+  );\r
+\r
+/**\r
+  Get Option rom driver's mapping for PCI device.\r
+\r
+  @param PciIoDevice Device instance.\r
+\r
+  @retval TRUE   Found Image mapping.\r
+  @retval FALSE  Cannot found image mapping.\r
+\r
+**/\r
+BOOLEAN\r
+PciRomGetImageMapping (\r
+  IN  PCI_IO_DEVICE                       *PciIoDevice\r
+  );\r
+\r
+#endif\r