2018-12-15 13:02:25 +01:00
|
|
|
## @file
|
|
|
|
# Dsc include file for Dynamic Tables Framework.
|
|
|
|
#
|
2022-10-10 11:20:55 +02:00
|
|
|
# Copyright (c) 2017 - 2022, Arm Limited. All rights reserved.<BR>
|
2018-12-15 13:02:25 +01:00
|
|
|
#
|
2019-04-04 01:03:32 +02:00
|
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
2018-12-15 13:02:25 +01:00
|
|
|
#
|
|
|
|
##
|
|
|
|
|
|
|
|
[Defines]
|
|
|
|
|
2018-12-15 13:20:23 +01:00
|
|
|
[BuildOptions]
|
2020-07-27 13:50:49 +02:00
|
|
|
RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
|
2018-12-15 13:20:23 +01:00
|
|
|
|
2018-12-15 13:02:25 +01:00
|
|
|
[LibraryClasses.common]
|
2021-09-30 09:48:12 +02:00
|
|
|
AcpiHelperLib|DynamicTablesPkg/Library/Common/AcpiHelperLib/AcpiHelperLib.inf
|
2020-08-05 17:19:26 +02:00
|
|
|
AmlLib|DynamicTablesPkg/Library/Common/AmlLib/AmlLib.inf
|
2022-07-08 22:59:03 +02:00
|
|
|
SsdtPcieSupportLib|DynamicTablesPkg/Library/Common/SsdtPcieSupportLib/SsdtPcieSupportLib.inf
|
2020-08-06 09:04:50 +02:00
|
|
|
SsdtSerialPortFixupLib|DynamicTablesPkg/Library/Common/SsdtSerialPortFixupLib/SsdtSerialPortFixupLib.inf
|
2018-12-15 13:02:25 +01:00
|
|
|
TableHelperLib|DynamicTablesPkg/Library/Common/TableHelperLib/TableHelperLib.inf
|
DynamicTablesPkg: Add SMBIOS String table helper library
The Section 6.1.3, SMBIOS specification version 3.6.0 describes the
handling of test strings in SMBIOS tables.
Text strings are added at the end of the formatted portion of the SMBIOS
structure and are referenced by index in the SMBIOS structure.
Therefore, introduce a SmbiosStringTableLib to simplify the publishing
of the string set.
SmbiosStringTableLib introduces a concept of string table which records
the references to the SMBIOS strings as they are added and returns an
string reference which is then assigned to the string field in the
formatted portion of the SMBIOS structure. Once all strings are added,
the library provides an interface to get the required size for the string
set. This allows sufficient memory to be allocated for the SMBIOS table.
The library also provides an interface to publish the string set in
accordance with the SMBIOS specification.
Example:
EFI_STATUS
BuildSmbiosType17Table () {
STRING_TABLE StrTable;
UINT8 DevLocatorRef;
UINT8 BankLocatorRef;
SMBIOS_TABLE_TYPE17 *SmbiosRecord;
CHAR8 *StringSet;
...
// Initialize string table for 7 strings
StringTableInitialize (&StrTable, 7);
StringTableAddString (&StrTable, "SIMM 3", &DevLocatorRef);
StringTableAddString (&StrTable, "Bank 0", &BankLocatorRef);
...
SmbiosRecord = AllocateZeroPool (
sizeof (SMBIOS_TABLE_TYPE17) +
StringTableGetStringSetSize (&StrTable)
);
...
SmbiosRecord->DeviceLocator = DevLocatorRef;
SmbiosRecord->BankLocator = BankLocatorRef;
...
// get the string set area
StringSet = (CHAR8*)(SmbiosRecord + 1);
// publish the string set
StringTablePublishStringSet (
&StrTable,
StringSet,
StringTableGetStringSetSize (&StrTable)
);
// free string table
StringTableFree (&StrTable);
return EFI_SUCCESS;
}
Signed-off-by: Sami Mujawar <sami.mujawar@arm.com>
Reviewed-by: Pierre Gondois <pierre.gondois@arm.com>
Cc: Alexei Fedorov <Alexei.Fedorov@arm.com>
Cc: Pierre Gondois <pierre.gondois@arm.com>
Cc: Girish Mahadevan <gmahadevan@nvidia.com>
Cc: Jeff Brasen <jbrasen@nvidia.com>
Cc: Ashish Singhal <ashishsingha@nvidia.com>
Cc: Nick Ramirez <nramirez@nvidia.com>
Cc: William Watson <wwatson@nvidia.com>
Cc: Samer El-Haj-Mahmoud <Samer.El-Haj-Mahmoud@arm.com>
2022-09-08 19:35:50 +02:00
|
|
|
SmbiosStringTableLib|DynamicTablesPkg/Library/Common/SmbiosStringTableLib/SmbiosStringTableLib.inf
|
2018-12-15 13:02:25 +01:00
|
|
|
|
2018-12-15 13:17:06 +01:00
|
|
|
[Components.common]
|
2020-06-26 19:20:36 +02:00
|
|
|
#
|
|
|
|
# Generators
|
|
|
|
#
|
|
|
|
DynamicTablesPkg/Library/Acpi/Arm/AcpiDbg2LibArm/AcpiDbg2LibArm.inf
|
|
|
|
DynamicTablesPkg/Library/Acpi/Arm/AcpiFadtLibArm/AcpiFadtLibArm.inf
|
|
|
|
DynamicTablesPkg/Library/Acpi/Arm/AcpiGtdtLibArm/AcpiGtdtLibArm.inf
|
|
|
|
DynamicTablesPkg/Library/Acpi/Arm/AcpiIortLibArm/AcpiIortLibArm.inf
|
|
|
|
DynamicTablesPkg/Library/Acpi/Arm/AcpiMadtLibArm/AcpiMadtLibArm.inf
|
|
|
|
DynamicTablesPkg/Library/Acpi/Arm/AcpiMcfgLibArm/AcpiMcfgLibArm.inf
|
|
|
|
DynamicTablesPkg/Library/Acpi/Arm/AcpiPpttLibArm/AcpiPpttLibArm.inf
|
|
|
|
DynamicTablesPkg/Library/Acpi/Arm/AcpiRawLibArm/AcpiRawLibArm.inf
|
|
|
|
DynamicTablesPkg/Library/Acpi/Arm/AcpiSpcrLibArm/AcpiSpcrLibArm.inf
|
|
|
|
DynamicTablesPkg/Library/Acpi/Arm/AcpiSratLibArm/AcpiSratLibArm.inf
|
2022-10-10 11:20:55 +02:00
|
|
|
DynamicTablesPkg/Library/Acpi/Arm/AcpiPcctLibArm/AcpiPcctLibArm.inf
|
2020-06-26 19:20:36 +02:00
|
|
|
|
2020-08-06 10:20:18 +02:00
|
|
|
# AML Fixup
|
|
|
|
DynamicTablesPkg/Library/Acpi/Arm/AcpiSsdtSerialPortLibArm/SsdtSerialPortLibArm.inf
|
2020-08-06 15:59:32 +02:00
|
|
|
DynamicTablesPkg/Library/Acpi/Arm/AcpiSsdtCmn600LibArm/SsdtCmn600LibArm.inf
|
2020-08-06 10:20:18 +02:00
|
|
|
|
2021-10-08 16:46:32 +02:00
|
|
|
# AML Codegen
|
|
|
|
DynamicTablesPkg/Library/Acpi/Arm/AcpiSsdtCpuTopologyLibArm/SsdtCpuTopologyLibArm.inf
|
2021-12-09 10:25:04 +01:00
|
|
|
DynamicTablesPkg/Library/Acpi/Arm/AcpiSsdtPcieLibArm/SsdtPcieLibArm.inf
|
2021-10-08 16:46:32 +02:00
|
|
|
|
2018-12-15 13:17:06 +01:00
|
|
|
#
|
|
|
|
# Dynamic Table Factory Dxe
|
|
|
|
#
|
2018-12-15 13:20:23 +01:00
|
|
|
DynamicTablesPkg/Drivers/DynamicTableFactoryDxe/DynamicTableFactoryDxe.inf {
|
|
|
|
<LibraryClasses>
|
2018-12-15 13:28:23 +01:00
|
|
|
NULL|DynamicTablesPkg/Library/Acpi/Arm/AcpiDbg2LibArm/AcpiDbg2LibArm.inf
|
2018-12-15 13:22:45 +01:00
|
|
|
NULL|DynamicTablesPkg/Library/Acpi/Arm/AcpiFadtLibArm/AcpiFadtLibArm.inf
|
2018-12-15 13:25:52 +01:00
|
|
|
NULL|DynamicTablesPkg/Library/Acpi/Arm/AcpiGtdtLibArm/AcpiGtdtLibArm.inf
|
2018-12-15 13:31:47 +01:00
|
|
|
NULL|DynamicTablesPkg/Library/Acpi/Arm/AcpiIortLibArm/AcpiIortLibArm.inf
|
2018-12-15 13:23:59 +01:00
|
|
|
NULL|DynamicTablesPkg/Library/Acpi/Arm/AcpiMadtLibArm/AcpiMadtLibArm.inf
|
2018-12-15 13:29:49 +01:00
|
|
|
NULL|DynamicTablesPkg/Library/Acpi/Arm/AcpiMcfgLibArm/AcpiMcfgLibArm.inf
|
2019-02-22 18:42:27 +01:00
|
|
|
NULL|DynamicTablesPkg/Library/Acpi/Arm/AcpiPpttLibArm/AcpiPpttLibArm.inf
|
2018-12-15 13:20:23 +01:00
|
|
|
NULL|DynamicTablesPkg/Library/Acpi/Arm/AcpiRawLibArm/AcpiRawLibArm.inf
|
2018-12-15 13:27:03 +01:00
|
|
|
NULL|DynamicTablesPkg/Library/Acpi/Arm/AcpiSpcrLibArm/AcpiSpcrLibArm.inf
|
2019-10-18 11:49:20 +02:00
|
|
|
NULL|DynamicTablesPkg/Library/Acpi/Arm/AcpiSratLibArm/AcpiSratLibArm.inf
|
2022-10-10 11:20:55 +02:00
|
|
|
NULL|DynamicTablesPkg/Library/Acpi/Arm/AcpiPcctLibArm/AcpiPcctLibArm.inf
|
2020-08-06 10:20:18 +02:00
|
|
|
|
|
|
|
# AML Fixup
|
|
|
|
NULL|DynamicTablesPkg/Library/Acpi/Arm/AcpiSsdtSerialPortLibArm/SsdtSerialPortLibArm.inf
|
2020-08-06 15:59:32 +02:00
|
|
|
NULL|DynamicTablesPkg/Library/Acpi/Arm/AcpiSsdtCmn600LibArm/SsdtCmn600LibArm.inf
|
2021-10-08 16:46:32 +02:00
|
|
|
|
|
|
|
# AML Codegen
|
|
|
|
NULL|DynamicTablesPkg/Library/Acpi/Arm/AcpiSsdtCpuTopologyLibArm/SsdtCpuTopologyLibArm.inf
|
2021-12-09 10:25:04 +01:00
|
|
|
NULL|DynamicTablesPkg/Library/Acpi/Arm/AcpiSsdtPcieLibArm/SsdtPcieLibArm.inf
|
2018-12-15 13:20:23 +01:00
|
|
|
}
|
2018-12-15 13:17:06 +01:00
|
|
|
|
2018-12-15 13:18:52 +01:00
|
|
|
#
|
|
|
|
# Dynamic Tables Manager Dxe
|
|
|
|
#
|
|
|
|
DynamicTablesPkg/Drivers/DynamicTableManagerDxe/DynamicTableManagerDxe.inf
|
|
|
|
|