TianoCore EDK2 master
Loading...
Searching...
No Matches
PlatformHookLib.c File Reference
#include <Base.h>
#include <PiDxe.h>
#include <UniversalPayload/SerialPortInfo.h>
#include <Library/PlatformHookLib.h>
#include <Library/PcdLib.h>
#include <Library/HobLib.h>

Go to the source code of this file.

Functions

EFI_STATUS EFIAPI PlatformHookSerialPortConstructor (VOID)
 
RETURN_STATUS EFIAPI PlatformHookSerialPortInitialize (VOID)
 

Detailed Description

Platform Hook Library instance for UART device.

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

Definition in file PlatformHookLib.c.

Function Documentation

◆ PlatformHookSerialPortConstructor()

EFI_STATUS EFIAPI PlatformHookSerialPortConstructor ( VOID  )

Library Constructor

Return values
RETURN_SUCCESSSuccess.

Definition at line 22 of file PlatformHookLib.c.

◆ PlatformHookSerialPortInitialize()

RETURN_STATUS EFIAPI PlatformHookSerialPortInitialize ( VOID  )

Performs platform specific initialization required for the CPU to access the hardware associated with a SerialPortLib instance. This function does not initialize the serial port hardware itself. Instead, it initializes hardware devices that are required for the CPU to access the serial port hardware. This function may be called more than once.

Return values
RETURN_SUCCESSThe platform specific initialization succeeded.
RETURN_DEVICE_ERRORThe platform specific initialization could not be completed.

Definition at line 45 of file PlatformHookLib.c.