TianoCore EDK2 master
|
#include "PciBus.h"
Go to the source code of this file.
Data Structures | |
struct | PCI_ROM_IMAGE |
Functions | |
VOID | PciRomAddImageMapping (IN EFI_HANDLE ImageHandle, IN UINTN Seg, IN UINT8 Bus, IN UINT8 Dev, IN UINT8 Func, IN VOID *RomImage, IN UINT64 RomSize) |
BOOLEAN | PciRomGetImageMapping (IN PCI_IO_DEVICE *PciIoDevice) |
Variables | |
UINTN | mNumberOfPciRomImages = 0 |
UINTN | mMaxNumberOfPciRomImages = 0 |
PCI_ROM_IMAGE * | mRomImageTable = NULL |
Set up ROM Table for PCI Bus module.
Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file PciRomTable.c.
VOID PciRomAddImageMapping | ( | IN EFI_HANDLE | ImageHandle, |
IN UINTN | Seg, | ||
IN UINT8 | Bus, | ||
IN UINT8 | Dev, | ||
IN UINT8 | Func, | ||
IN VOID * | RomImage, | ||
IN UINT64 | RomSize | ||
) |
Add the Rom Image to internal database for later PCI light enumeration.
ImageHandle | Option Rom image handle. |
Seg | Segment of PCI space. |
Bus | Bus NO of PCI space. |
Dev | Dev NO of PCI space. |
Func | Func NO of PCI space. |
RomImage | Option Rom buffer. |
RomSize | Size of Option Rom buffer. |
Definition at line 40 of file PciRomTable.c.
BOOLEAN PciRomGetImageMapping | ( | IN PCI_IO_DEVICE * | PciIoDevice | ) |
Get Option rom driver's mapping for PCI device.
PciIoDevice | Device instance. |
TRUE | Found Image mapping. |
FALSE | Cannot found image mapping. |
Definition at line 111 of file PciRomTable.c.
UINTN mMaxNumberOfPciRomImages = 0 |
Definition at line 25 of file PciRomTable.c.
UINTN mNumberOfPciRomImages = 0 |
Definition at line 24 of file PciRomTable.c.
PCI_ROM_IMAGE* mRomImageTable = NULL |
Definition at line 26 of file PciRomTable.c.