TianoCore EDK2 master
Loading...
Searching...
No Matches
PciRomTable.h File Reference

Go to the source code of this file.

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)
 

Detailed Description

Set up ROM Table for PCI Bus module.

Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file PciRomTable.h.

Function Documentation

◆ PciRomAddImageMapping()

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.

Parameters
ImageHandleOption Rom image handle.
SegSegment of PCI space.
BusBus NO of PCI space.
DevDev NO of PCI space.
FuncFunc NO of PCI space.
RomImageOption Rom buffer.
RomSizeSize of Option Rom buffer.

Definition at line 40 of file PciRomTable.c.

◆ PciRomGetImageMapping()

BOOLEAN PciRomGetImageMapping ( IN PCI_IO_DEVICE PciIoDevice)

Get Option rom driver's mapping for PCI device.

Parameters
PciIoDeviceDevice instance.
Return values
TRUEFound Image mapping.
FALSECannot found image mapping.

Definition at line 111 of file PciRomTable.c.