]>
Commit | Line | Data |
---|---|---|
eeefcb9d | 1 | /** @file\r |
3db51098 | 2 | Option Rom Support for PCI Bus Driver\r |
ead42efc | 3 | \r |
4 | Copyright (c) 2006, Intel Corporation \r | |
5 | All rights reserved. This program and the accompanying materials \r | |
6 | are licensed and made available under the terms and conditions of the BSD License \r | |
7 | which accompanies this distribution. The full text of the license may be found at \r | |
8 | http://opensource.org/licenses/bsd-license.php \r | |
9 | \r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r | |
12 | \r | |
3db51098 | 13 | **/\r |
ead42efc | 14 | \r |
eeefcb9d | 15 | #ifndef _EFI_PCI_ROM_TABLE_H_\r |
16 | #define _EFI_PCI_ROM_TABLE_H_\r | |
ead42efc | 17 | \r |
57076f45 | 18 | /**\r |
eeefcb9d | 19 | Add the Rom Image to internal database for later PCI light enumeration.\r |
57076f45 | 20 | \r |
eeefcb9d | 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 | |
57076f45 | 27 | @param RomLength Length of rom image.\r |
28 | **/\r | |
ead42efc | 29 | VOID\r |
30 | PciRomAddImageMapping (\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 | |
ed66e1bc | 38 | );\r |
bcd70414 | 39 | /**\r |
57076f45 | 40 | Load all option rom image to PCI driver list.\r |
41 | \r | |
eeefcb9d | 42 | @param This Pointer to protocol instance EFI_DRIVER_BINDING_PROTOCOL.\r |
43 | @param PciRootBridgeIo Root bridge Io instance.\r | |
44 | @param PciIoDevice device instance.\r | |
bcd70414 | 45 | **/\r |
ead42efc | 46 | EFI_STATUS\r |
47 | PciRomGetRomResourceFromPciOptionRomTable (\r | |
48 | IN EFI_DRIVER_BINDING_PROTOCOL *This,\r | |
49 | IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *PciRootBridgeIo,\r | |
50 | PCI_IO_DEVICE *PciIoDevice\r | |
ed66e1bc | 51 | );\r |
ead42efc | 52 | \r |
57076f45 | 53 | /**\r |
54 | Get Option rom driver's mapping for PCI device.\r | |
55 | \r | |
56 | @param PciIoDevice Device instance.\r | |
ead42efc | 57 | \r |
bcd70414 | 58 | **/\r |
ead42efc | 59 | EFI_STATUS\r |
60 | PciRomGetImageMapping (\r | |
61 | PCI_IO_DEVICE *PciIoDevice\r | |
ed66e1bc | 62 | );\r |
ead42efc | 63 | \r |
64 | #endif\r |