mirror of
https://github.com/acidanthera/audk.git
synced 2025-09-02 23:48:09 +02:00
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4427 1. Since UART speed is slower than CPU, BIOS need to check the write buffer is empty, to avoid overwrite the buffer content. 2. LPSS UART might disable MMIO space for Windows debug usage during ExitBootServices event. BIOS need to avoid access the MMIO space after ExitBootServices. Cc: Guo Dong <guo.dong@intel.com> Cc: Ray Ni <ray.ni@intel.com> Cc: Sean Rhodes <sean@starlabs.systems> Cc: James Lu <james.lu@intel.com> Reviewed-by: Gua Guo <gua.guo@intel.com> Signed-off-by: PaytonX Hsieh <paytonx.hsieh@intel.com>
42 lines
1.2 KiB
INI
42 lines
1.2 KiB
INI
## @file
|
|
# SerialPortLib instance for UART information retrieved from bootloader.
|
|
#
|
|
# Copyright (c) 2023, Intel Corporation. All rights reserved.<BR>
|
|
#
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
#
|
|
##
|
|
|
|
[Defines]
|
|
INF_VERSION = 0x00010005
|
|
BASE_NAME = DxeBaseSerialPortLibHob
|
|
FILE_GUID = c8def0c5-48e7-45b8-8299-485ea2e63b2c
|
|
MODULE_TYPE = DXE_DRIVER
|
|
VERSION_STRING = 1.0
|
|
LIBRARY_CLASS = SerialPortLib|DXE_CORE DXE_DRIVER DXE_RUNTIME_DRIVER DXE_SMM_DRIVER UEFI_APPLICATION UEFI_DRIVER
|
|
CONSTRUCTOR = DxeBaseSerialPortLibHobConstructor
|
|
|
|
[Packages]
|
|
MdePkg/MdePkg.dec
|
|
MdeModulePkg/MdeModulePkg.dec
|
|
|
|
[LibraryClasses]
|
|
PcdLib
|
|
IoLib
|
|
HobLib
|
|
TimerLib
|
|
|
|
[Sources]
|
|
DxeBaseSerialPortLibHob.c
|
|
BaseSerialPortLibHob.c
|
|
|
|
[Pcd]
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdSerialLineControl
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdSerialFifoControl
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdSerialClockRate
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdSerialExtendedTxFifoSize
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdSerialUseHardwareFlowControl
|
|
|
|
[Guids]
|
|
gUniversalPayloadSerialPortInfoGuid
|