]> git.proxmox.com Git - mirror_edk2.git/blob - IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciOptionRomSupport.h
Update prototype of DxeLoadCore().
[mirror_edk2.git] / IntelFrameworkModulePkg / Bus / Pci / PciBusDxe / PciOptionRomSupport.h
1 /**@file
2
3 Copyright (c) 2006, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
8
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
11
12 **/
13
14 #ifndef _EFI_PCI_OP_ROM_SUPPORT_H
15 #define _EFI_PCI_OP_ROM_SUPPORT_H
16
17 /**
18 Get Pci device's oprom infor bits.
19
20 @retval EFI_NOT_FOUND Pci device has not oprom
21 @retval EFI_SUCCESS Pci device has oprom
22 **/
23 EFI_STATUS
24 GetOpRomInfo (
25 IN PCI_IO_DEVICE *PciIoDevice
26 )
27 ;
28
29 /**
30 Load option rom image for specified PCI device
31
32 @param PciDevice Pci device instance
33 @param RomBase Base address of oprom.
34
35 @retval EFI_OUT_OF_RESOURCES not enough memory to hold image
36 @retval EFI_SUCESS Success
37 **/
38 EFI_STATUS
39 LoadOpRomImage (
40 IN PCI_IO_DEVICE *PciDevice,
41 IN UINT64 RomBase
42 )
43 ;
44
45 /**
46 enable/disable oprom decode
47
48 @param PciDevice pci device instance
49 @param RomBarIndex The BAR index of the standard PCI Configuration header to use as the
50 base address for resource range. The legal range for this field is 0..5.
51 @param RomBar Base address of rom
52 @param Enable Flag for enable/disable decode.
53
54 @retval EFI_SUCCESS Success
55 **/
56 EFI_STATUS
57 RomDecode (
58 IN PCI_IO_DEVICE *PciDevice,
59 IN UINT8 RomBarIndex,
60 IN UINT32 RomBar,
61 IN BOOLEAN Enable
62 )
63 ;
64
65 /**
66 Process the oprom image.
67
68 @param PciDevice Pci device instance
69 **/
70 EFI_STATUS
71 ProcessOpRomImage (
72 PCI_IO_DEVICE *PciDevice
73 )
74 ;
75
76 #endif