]>
Commit | Line | Data |
---|---|---|
eeefcb9d | 1 | /** @file\r |
3db51098 | 2 | Option Rom Support for PCI Bus Driver\r |
ead42efc | 3 | \r |
8e6b0dcb | 4 | Copyright (c) 2006 - 2009, Intel Corporation \r |
ead42efc | 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 |
ead42efc | 39 | \r |
57076f45 | 40 | /**\r |
41 | Get Option rom driver's mapping for PCI device.\r | |
42 | \r | |
43 | @param PciIoDevice Device instance.\r | |
ead42efc | 44 | \r |
8e6b0dcb | 45 | @retval TRUE Found Image mapping.\r |
46 | @retval FALSE\r | |
47 | \r | |
bcd70414 | 48 | **/\r |
8e6b0dcb | 49 | BOOLEAN\r |
ead42efc | 50 | PciRomGetImageMapping (\r |
51 | PCI_IO_DEVICE *PciIoDevice\r | |
ed66e1bc | 52 | );\r |
ead42efc | 53 | \r |
54 | #endif\r |