From e3a2003995ac1b9d52a597e2bcb453ae46598f95 Mon Sep 17 00:00:00 2001 From: jief666 Date: Tue, 2 Jan 2024 19:55:44 +0100 Subject: [PATCH] Add dummy GetSerialRegisterBase() in BaseSerialPortLibNull.c. --- .../BaseSerialPortLibNull.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.c b/MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.c index 4f70827f1..51ed98c77 100644 --- a/MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.c +++ b/MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.c @@ -189,3 +189,21 @@ SerialPortSetAttributes ( return RETURN_UNSUPPORTED; } + +/** + Retrieve the I/O or MMIO base address register for the PCI UART device. + + This function assumes Root Bus Numer is Zero, and enables I/O and MMIO in PCI UART + Device if they are not already enabled. + + @return The base address register of the UART device. + +**/ +UINTN +GetSerialRegisterBase ( + VOID + ) +{ + return 0; +} +