DynamicTablesPkg[all]
1.0
|
Functions | |
EFI_STATUS EFIAPI | BuildSsdtSerialPortTable (IN CONST CM_STD_OBJ_ACPI_TABLE_INFO *AcpiTableInfo, IN CONST CM_ARM_SERIAL_PORT_INFO *SerialPortInfo, IN CONST CHAR8 *Name, IN CONST UINT64 Uid, OUT EFI_ACPI_DESCRIPTION_HEADER **Table) |
EFI_STATUS EFIAPI | FreeSsdtSerialPortTable (IN EFI_ACPI_DESCRIPTION_HEADER *Table) |
EFI_STATUS EFIAPI | ValidateSerialPortInfo (IN CONST CM_ARM_SERIAL_PORT_INFO *SerialPortInfoTable, IN UINT32 SerialPortCount) |
Ssdt Serial Port Fixup Library
Copyright (c) 2020, Arm Limited. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
EFI_STATUS EFIAPI BuildSsdtSerialPortTable | ( | IN CONST CM_STD_OBJ_ACPI_TABLE_INFO * | AcpiTableInfo, |
IN CONST CM_ARM_SERIAL_PORT_INFO * | SerialPortInfo, | ||
IN CONST CHAR8 * | Name, | ||
IN CONST UINT64 | Uid, | ||
OUT EFI_ACPI_DESCRIPTION_HEADER ** | Table | ||
) |
Build a SSDT table describing the input serial port.
The table created by this function must be freed by FreeSsdtSerialTable.
[in] | AcpiTableInfo | Pointer to the ACPI table information. |
[in] | SerialPortInfo | Serial port to describe in the SSDT table. |
[in] | Name | The Name to give to the Device. Must be a NULL-terminated ASL NameString e.g.: "DEV0", "DV15.DEV0", etc. |
[in] | Uid | UID for the Serial Port. |
[out] | Table | If success, pointer to the created SSDT table. |
EFI_SUCCESS | Table generated successfully. |
EFI_INVALID_PARAMETER | A parameter is invalid. |
EFI_NOT_FOUND | Could not find information. |
EFI_OUT_OF_RESOURCES | Could not allocate memory. |
EFI_STATUS EFIAPI FreeSsdtSerialPortTable | ( | IN EFI_ACPI_DESCRIPTION_HEADER * | Table | ) |
Free an SSDT table previously created by the BuildSsdtSerialTable function.
[in] | Table | Pointer to a SSDT table allocated by the BuildSsdtSerialTable function. |
EFI_SUCCESS | Success. |
EFI_STATUS EFIAPI ValidateSerialPortInfo | ( | IN CONST CM_ARM_SERIAL_PORT_INFO * | SerialPortInfoTable, |
IN UINT32 | SerialPortCount | ||
) |
Validate the Serial Port Information.
[in] | SerialPortInfoTable | Table of CM_ARM_SERIAL_PORT_INFO. |
[in] | SerialPortCount | Count of SerialPort in the table. |
EFI_SUCCESS | Success. |
EFI_INVALID_PARAMETER | Invalid parameter. |