TianoCore EDK2 master
|
#include <PiPei.h>
#include <IndustryStandard/Pci22.h>
#include <Library/BaseLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/DebugLib.h>
#include <Library/HobLib.h>
#include <Library/PcdLib.h>
#include <Library/IoLib.h>
#include <Library/PrintLib.h>
#include <Library/FdtLib.h>
#include <Library/PciLib.h>
#include <Library/PeiServicesLib.h>
#include <UniversalPayload/UniversalPayload.h>
#include <UniversalPayload/AcpiTable.h>
#include <UniversalPayload/SerialPortInfo.h>
#include <UniversalPayload/SmbiosTable.h>
#include <UniversalPayload/PciRootBridges.h>
#include <Guid/GraphicsInfoHob.h>
#include <Guid/UniversalPayloadSerialPortDeviceParentInfo.h>
#include <Guid/UniversalPayloadBase.h>
#include <Protocol/PciRootBridgeIo.h>
#include <Ppi/PciDevice.h>
Go to the source code of this file.
Macros | |
#define | IGD_BUS_NUM 0x00 |
#define | IGD_DEV_NUM 0x02 |
#define | IGD_FUN_NUM 0x00 |
Functions | |
EFI_STATUS EFIAPI | LocatePciDevicePpi (VOID) |
EFI_STATUS | BuildFdtForMemory (IN VOID *FdtBase) |
EFI_STATUS | BuildFdtForMemAlloc (IN VOID *FdtBase) |
EFI_STATUS | BuildFdtForSerial (IN INT32 ISANode, IN VOID *FdtBase) |
EFI_STATUS | BuildFdtForSerialLpss (IN INT32 ISANode, IN VOID *FdtBase) |
EFI_STATUS | BuildFdtForPciRootBridge (IN VOID *FdtBase) |
EFI_STATUS | BuildFdtForFrameBuffer (IN VOID *FdtBase) |
EFI_STATUS | BuildFdtForUplRequired (IN VOID *FdtBase) |
EFI_STATUS | BuildFdtForUPL (IN VOID *FdtBase) |
Variables | |
EDKII_PCI_DEVICE_PPI * | mPciDevicePpi |
BOOLEAN | mResourceAssigned |
CHAR8 * | mMemoryAllocType [] |
Copyright (c) 2024, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file X86_BuildFdtLib.c.
#define IGD_BUS_NUM 0x00 |
Definition at line 30 of file X86_BuildFdtLib.c.
#define IGD_DEV_NUM 0x02 |
Definition at line 31 of file X86_BuildFdtLib.c.
#define IGD_FUN_NUM 0x00 |
Definition at line 32 of file X86_BuildFdtLib.c.
EFI_STATUS BuildFdtForFrameBuffer | ( | IN VOID * | FdtBase | ) |
It will build FDT based on FrameBuffer.
[in] | FdtBase | Address of the Fdt data. |
EFI_SUCCESS | If it completed successfully. |
Others | If it failed to build required FDT. |
Definition at line 792 of file X86_BuildFdtLib.c.
EFI_STATUS BuildFdtForMemAlloc | ( | IN VOID * | FdtBase | ) |
It will build FDT based on memory allocation information from Hobs.
[in] | FdtBase | Address of the Fdt data. |
EFI_SUCCESS | If it completed successfully. |
Others | If it failed to build required FDT. |
Definition at line 142 of file X86_BuildFdtLib.c.
EFI_STATUS BuildFdtForMemory | ( | IN VOID * | FdtBase | ) |
It will build FDT based on memory information from Hobs.
[in] | FdtBase | Address of the Fdt data. |
EFI_SUCCESS | If it completed successfully. |
Others | If it failed to build required FDT. |
Definition at line 91 of file X86_BuildFdtLib.c.
EFI_STATUS BuildFdtForPciRootBridge | ( | IN VOID * | FdtBase | ) |
It will build FDT based on BuildFdtForPciRootBridge information.
[in] | FdtBase | Address of the Fdt data. |
EFI_SUCCESS | If it completed successfully. |
Others | If it failed to build required FDT. |
Definition at line 436 of file X86_BuildFdtLib.c.
EFI_STATUS BuildFdtForSerial | ( | IN INT32 | ISANode, |
IN VOID * | FdtBase | ||
) |
It will build FDT based on serial information.
[in] | ISANode | ISANode. |
[in] | FdtBase | Address of the Fdt data. |
EFI_SUCCESS | If it completed successfully. |
Others | If it failed to build required FDT. |
Definition at line 307 of file X86_BuildFdtLib.c.
EFI_STATUS BuildFdtForSerialLpss | ( | IN INT32 | ISANode, |
IN VOID * | FdtBase | ||
) |
It will build FDT based on serial information.
[in] | ISANode | ISANode. |
[in] | FdtBase | Address of the Fdt data. |
EFI_SUCCESS | If it completed successfully. |
Others | If it failed to build required FDT. |
Definition at line 369 of file X86_BuildFdtLib.c.
EFI_STATUS BuildFdtForUPL | ( | IN VOID * | FdtBase | ) |
It will build FDT for UPL consumed.
[in] | FdtBase | Address of the Fdt data. |
EFI_SUCCESS | If it completed successfully. |
Others | If it failed to build required FDT. |
Definition at line 974 of file X86_BuildFdtLib.c.
EFI_STATUS BuildFdtForUplRequired | ( | IN VOID * | FdtBase | ) |
It will build FDT for UPL required data.
[in] | FdtBase | Address of the Fdt data. |
EFI_SUCCESS | If it completed successfully. |
Others | If it failed to build required FDT. |
Definition at line 873 of file X86_BuildFdtLib.c.
EFI_STATUS EFIAPI LocatePciDevicePpi | ( | VOID | ) |
The wrapper function of PeiServicesLocatePpi() for gEdkiiPeiPciDevicePpiGuid and Save the PPI to mPciDevicePpi.
EFI_SUCCESS | If it locate gEdkiiPeiPciDevicePpiGuid successfully. |
EFI_NOT_FOUND | If it can't find gEdkiiPeiPciDevicePpiGuid. |
Definition at line 63 of file X86_BuildFdtLib.c.
CHAR8* mMemoryAllocType[] |
Definition at line 37 of file X86_BuildFdtLib.c.
EDKII_PCI_DEVICE_PPI* mPciDevicePpi |
Definition at line 34 of file X86_BuildFdtLib.c.
BOOLEAN mResourceAssigned |
Definition at line 35 of file X86_BuildFdtLib.c.