TianoCore EDK2 master
Loading...
Searching...
No Matches
ConsolePrefDxe.c File Reference

Go to the source code of this file.

Data Structures

struct  HII_VENDOR_DEVICE_PATH
 

Macros

#define SPCR_SIG   EFI_ACPI_2_0_SERIAL_PORT_CONSOLE_REDIRECTION_TABLE_SIGNATURE
 

Functions

STATIC EFI_STATUS InstallHiiPages (VOID)
 
STATIC VOID RemoveDtStdoutPath (VOID)
 
STATIC VOID RemoveSpcrTable (VOID)
 
STATIC VOID EFIAPI OnReadyToBoot (IN EFI_EVENT Event, IN VOID *Context)
 
EFI_STATUS EFIAPI ConsolePrefDxeEntryPoint (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 

Variables

UINT8 ConsolePrefHiiBin []
 
UINT8 ConsolePrefDxeStrings []
 
STATIC HII_VENDOR_DEVICE_PATH mConsolePrefDxeVendorDevicePath
 
STATIC EFI_EVENT mReadyToBootEvent
 

Detailed Description

Copyright (c) 2017, Linaro, Ltd. All rights reserved.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file ConsolePrefDxe.c.

Macro Definition Documentation

◆ SPCR_SIG

Definition at line 28 of file ConsolePrefDxe.c.

Function Documentation

◆ ConsolePrefDxeEntryPoint()

EFI_STATUS EFIAPI ConsolePrefDxeEntryPoint ( IN EFI_HANDLE  ImageHandle,
IN EFI_SYSTEM_TABLE SystemTable 
)

The entry point for ConsolePrefDxe driver.

Parameters
[in]ImageHandleThe image handle of the driver.
[in]SystemTableThe system table.
Return values
EFI_ALREADY_STARTEDThe driver already exists in system.
EFI_OUT_OF_RESOURCESFail to execute entry point due to lack of resources.
EFI_SUCCESSAll the related protocols are installed on the driver.

Definition at line 276 of file ConsolePrefDxe.c.

◆ InstallHiiPages()

STATIC EFI_STATUS InstallHiiPages ( VOID  )

Definition at line 64 of file ConsolePrefDxe.c.

◆ OnReadyToBoot()

STATIC VOID EFIAPI OnReadyToBoot ( IN EFI_EVENT  Event,
IN VOID *  Context 
)

Definition at line 206 of file ConsolePrefDxe.c.

◆ RemoveDtStdoutPath()

STATIC VOID RemoveDtStdoutPath ( VOID  )

Definition at line 106 of file ConsolePrefDxe.c.

◆ RemoveSpcrTable()

STATIC VOID RemoveSpcrTable ( VOID  )

Definition at line 144 of file ConsolePrefDxe.c.

Variable Documentation

◆ mConsolePrefDxeVendorDevicePath

STATIC HII_VENDOR_DEVICE_PATH mConsolePrefDxeVendorDevicePath
Initial value:
= {
{
{
{
(UINT8)(sizeof (VENDOR_DEVICE_PATH)),
(UINT8)((sizeof (VENDOR_DEVICE_PATH)) >> 8)
}
},
CONSOLE_PREF_FORMSET_GUID
},
{
END_DEVICE_PATH_TYPE,
END_ENTIRE_DEVICE_PATH_SUBTYPE,
{
(UINT8)(END_DEVICE_PATH_LENGTH),
(UINT8)((END_DEVICE_PATH_LENGTH) >> 8)
}
}
}
#define HARDWARE_DEVICE_PATH
Definition: DevicePath.h:68
#define HW_VENDOR_DP
Definition: DevicePath.h:133

Definition at line 38 of file ConsolePrefDxe.c.

◆ mReadyToBootEvent

STATIC EFI_EVENT mReadyToBootEvent

Definition at line 60 of file ConsolePrefDxe.c.