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