TianoCore EDK2 master
Loading...
Searching...
No Matches
DxeBaseSerialPortLibHob.c File Reference
#include <Uefi.h>

Go to the source code of this file.

Functions

STATIC VOID EFIAPI BaseSerialPortLibHobExitBootServicesEvent (IN EFI_EVENT Event, IN VOID *Context)
 
EFI_STATUS EFIAPI DxeBaseSerialPortLibHobConstructor (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 

Variables

BOOLEAN mBaseSerialPortLibHobAtRuntime
 

Detailed Description

UART Serial Port library functions.

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

Definition in file DxeBaseSerialPortLibHob.c.

Function Documentation

◆ BaseSerialPortLibHobExitBootServicesEvent()

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

Set mSerialIoUartLibAtRuntime flag as TRUE after ExitBootServices.

Parameters
[in]EventThe Event that is being processed.
[in]ContextThe Event Context.

Definition at line 22 of file DxeBaseSerialPortLibHob.c.

◆ DxeBaseSerialPortLibHobConstructor()

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

The constructor function registers a callback for the ExitBootServices event.

Parameters
[in]ImageHandleThe firmware allocated handle for the EFI image.
[in]SystemTableA pointer to the EFI System Table.
Return values
EFI_SUCCESSThe operation completed successfully.
otherEither the serial port failed to initialize or the ExitBootServices event callback registration failed.

Definition at line 42 of file DxeBaseSerialPortLibHob.c.

Variable Documentation

◆ mBaseSerialPortLibHobAtRuntime

BOOLEAN mBaseSerialPortLibHobAtRuntime
extern

Definition at line 56 of file BaseSerialPortLibHob.c.