]> git.proxmox.com Git - mirror_edk2.git/blame - IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciRomTable.h
Update prototype of DxeLoadCore().
[mirror_edk2.git] / IntelFrameworkModulePkg / Bus / Pci / PciBusDxe / PciRomTable.h
CommitLineData
3db51098 1/**@file\r
2 Option Rom Support for PCI Bus Driver\r
ead42efc 3\r
4Copyright (c) 2006, Intel Corporation \r
5All rights reserved. This program and the accompanying materials \r
6are licensed and made available under the terms and conditions of the BSD License \r
7which accompanies this distribution. The full text of the license may be found at \r
8http://opensource.org/licenses/bsd-license.php \r
9 \r
10THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
11WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
12\r
3db51098 13**/\r
ead42efc 14\r
15#ifndef _EFI_PCI_ROM_TABLE_H\r
16#define _EFI_PCI_ROM_TABLE_H\r
17\r
57076f45 18/**\r
19 Add the Rom Image to internal database for later PCI light enumeration\r
20 \r
21 @param ImageHandle Option Rom image handle\r
22 @param Seg Segment of PCI space\r
23 @param Bus Bus NO of PCI space\r
24 @param Dev Dev NO of PCI space\r
25 @param Func Func NO of PCI space\r
26 @param RomAddress Base address of OptionRom\r
27 @param RomLength Length of rom image.\r
28**/\r
ead42efc 29VOID\r
30PciRomAddImageMapping (\r
31 IN EFI_HANDLE ImageHandle,\r
32 IN UINTN Seg,\r
33 IN UINT8 Bus,\r
34 IN UINT8 Dev,\r
35 IN UINT8 Func,\r
36 IN UINT64 RomAddress,\r
37 IN UINT64 RomLength\r
38 )\r
57076f45 39;\r
bcd70414 40/**\r
57076f45 41 Load all option rom image to PCI driver list.\r
42 \r
43 @param This Pointer to protocol instance EFI_DRIVER_BINDING_PROTOCOL\r
44 @param PciRootBridgeIo Root bridge Io instance\r
45 @param PciIoDevice device instance\r
bcd70414 46**/\r
ead42efc 47EFI_STATUS\r
48PciRomGetRomResourceFromPciOptionRomTable (\r
49 IN EFI_DRIVER_BINDING_PROTOCOL *This,\r
50 IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *PciRootBridgeIo,\r
51 PCI_IO_DEVICE *PciIoDevice\r
52 )\r
57076f45 53;\r
ead42efc 54\r
57076f45 55/**\r
56 Get Option rom driver's mapping for PCI device.\r
57 \r
58 @param PciIoDevice Device instance.\r
ead42efc 59\r
bcd70414 60**/\r
ead42efc 61EFI_STATUS\r
62PciRomGetImageMapping (\r
63 PCI_IO_DEVICE *PciIoDevice\r
64 )\r
ead42efc 65;\r
66\r
67#endif\r