OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
BdsPlatform.c File Reference
#include "BdsPlatform.h"
#include <PiDxe.h>
#include <Guid/Acpi.h>
#include <Guid/LdrMemoryDescriptor.h>
#include <Guid/SmBios.h>
#include <IndustryStandard/Pci.h>
#include <IndustryStandard/SmBios.h>
#include <Library/BaseLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/DebugLib.h>
#include <Library/DevicePathLib.h>
#include <Library/DxeServicesTableLib.h>
#include <Library/HobLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Protocol/PciIo.h>

Go to the source code of this file.

Functions

STATIC EFI_STATUS ConvertAcpiTable (IN UINTN TableLen, IN OUT VOID **Table)
 
STATIC EFI_STATUS ConvertSmbiosTable (IN OUT VOID **Table)
 
STATIC EFI_STATUS ConvertSystemTable (IN EFI_GUID *TableGuid, IN OUT VOID **Table)
 
STATIC VOID GetSystemTablesFromHob (VOID)
 
STATIC VOID UpdateMemoryMap (VOID)
 
STATIC EFI_STATUS ConnectRootBridge (VOID)
 
STATIC EFI_STATUS PrepareLpcBridgeDevicePath (IN EFI_HANDLE DeviceHandle)
 
STATIC EFI_STATUS GetGopDevicePath (IN EFI_DEVICE_PATH_PROTOCOL *PciDevicePath, OUT EFI_DEVICE_PATH_PROTOCOL **GopDevicePath)
 
STATIC EFI_STATUS PreparePciVgaDevicePath (IN EFI_HANDLE DeviceHandle)
 
STATIC EFI_STATUS DetectAndPreparePlatformPciDevicePath (BOOLEAN DetectVgaOnly)
 
VOID EFIAPI PlatformBdsInit (VOID)
 
EFI_STATUS BdsConnectConsole (IN BDS_CONSOLE_CONNECT_ENTRY *PlatformConsole)
 
VOID EFIAPI PlatformBdsPolicyBehavior (VOID)
 

Variables

EFI_GUID * gTableGuidArray []
 

Function Documentation

◆ BdsConnectConsole()

EFI_STATUS BdsConnectConsole ( IN BDS_CONSOLE_CONNECT_ENTRY * PlatformConsole)

Definition at line 923 of file BdsPlatform.c.

◆ ConnectRootBridge()

STATIC EFI_STATUS ConnectRootBridge ( VOID )

Definition at line 552 of file BdsPlatform.c.

◆ ConvertAcpiTable()

STATIC EFI_STATUS ConvertAcpiTable ( IN UINTN TableLen,
IN OUT VOID ** Table )

Definition at line 56 of file BdsPlatform.c.

◆ ConvertSmbiosTable()

STATIC EFI_STATUS ConvertSmbiosTable ( IN OUT VOID ** Table)

Definition at line 112 of file BdsPlatform.c.

◆ ConvertSystemTable()

STATIC EFI_STATUS ConvertSystemTable ( IN EFI_GUID * TableGuid,
IN OUT VOID ** Table )

Definition at line 209 of file BdsPlatform.c.

◆ DetectAndPreparePlatformPciDevicePath()

STATIC EFI_STATUS DetectAndPreparePlatformPciDevicePath ( BOOLEAN DetectVgaOnly)

Definition at line 788 of file BdsPlatform.c.

◆ GetGopDevicePath()

STATIC EFI_STATUS GetGopDevicePath ( IN EFI_DEVICE_PATH_PROTOCOL * PciDevicePath,
OUT EFI_DEVICE_PATH_PROTOCOL ** GopDevicePath )

Definition at line 649 of file BdsPlatform.c.

◆ GetSystemTablesFromHob()

STATIC VOID GetSystemTablesFromHob ( VOID )

Definition at line 279 of file BdsPlatform.c.

◆ PlatformBdsInit()

VOID EFIAPI PlatformBdsInit ( VOID )

Platform Bds initialization. Includes the platform firmware vendor, revision and so crc check.

Definition at line 889 of file BdsPlatform.c.

◆ PlatformBdsPolicyBehavior()

VOID EFIAPI PlatformBdsPolicyBehavior ( VOID )

The function will execute with as the platform policy, current policy is driven by boot mode. IBV/OEM can customize this code for their specific policy action.

Definition at line 1015 of file BdsPlatform.c.

◆ PrepareLpcBridgeDevicePath()

STATIC EFI_STATUS PrepareLpcBridgeDevicePath ( IN EFI_HANDLE DeviceHandle)

Definition at line 601 of file BdsPlatform.c.

◆ PreparePciVgaDevicePath()

STATIC EFI_STATUS PreparePciVgaDevicePath ( IN EFI_HANDLE DeviceHandle)

Definition at line 742 of file BdsPlatform.c.

◆ UpdateMemoryMap()

STATIC VOID UpdateMemoryMap ( VOID )

Definition at line 327 of file BdsPlatform.c.

Variable Documentation

◆ gTableGuidArray

EFI_GUID* gTableGuidArray[]
Initial value:
= {
&gEfiAcpi10TableGuid,
&gEfiAcpiTableGuid,
}
EFI_GUID gEfiSmbios3TableGuid
EFI_GUID gEfiSmbiosTableGuid

Definition at line 43 of file BdsPlatform.c.