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