]>
Commit | Line | Data |
---|---|---|
eeefcb9d | 1 | /** @file\r |
ead42efc | 2 | \r |
3 | Copyright (c) 2006, Intel Corporation \r | |
4 | All rights reserved. This program and the accompanying materials \r | |
5 | are licensed and made available under the terms and conditions of the BSD License \r | |
6 | which accompanies this distribution. The full text of the license may be found at \r | |
7 | http://opensource.org/licenses/bsd-license.php \r | |
8 | \r | |
9 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
10 | WITHOUT 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 | 25 | EFI_STATUS\r |
26 | GetOpRomInfo (\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 | 39 | EFI_STATUS\r |
40 | LoadOpRomImage (\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 | 56 | EFI_STATUS\r |
57 | RomDecode (\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 | 69 | EFI_STATUS\r |
70 | ProcessOpRomImage (\r | |
71 | PCI_IO_DEVICE *PciDevice\r | |
ed66e1bc | 72 | );\r |
ead42efc | 73 | \r |
74 | #endif\r |