ArmPkg: Add Universal/Smbios/SmbiosMiscDxe
SmbiosMiscDxe provides SMBIOS tables 0, 1, 2, 3, 13, and 32. Signed-off-by: Rebecca Cran <rebecca@nuviainc.com> Reviewed-by: Leif Lindholm <leif@nuviainc.com> Reviewed-by: Samer El-Haj-Mahmoud <Samer.El-Haj-Mahmoud@arm.com>
This commit is contained in:
committed by
mergify[bot]
parent
660d4faa29
commit
ecc267fec5
62
ArmPkg/Universal/Smbios/SmbiosMiscDxe/SmbiosMiscDataTable.c
Normal file
62
ArmPkg/Universal/Smbios/SmbiosMiscDxe/SmbiosMiscDataTable.c
Normal file
@@ -0,0 +1,62 @@
|
||||
/** @file
|
||||
This file provides SMBIOS Misc Type.
|
||||
|
||||
Based on files under Nt32Pkg/MiscSubClassPlatformDxe/
|
||||
|
||||
Copyright (c) 2021, NUVIA Inc. All rights reserved.<BR>
|
||||
Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2015, Hisilicon Limited. All rights reserved.<BR>
|
||||
Copyright (c) 2015, Linaro Limited. All rights reserved.<BR>
|
||||
SPDX-License-Identifier: BSD-2-Clause-Patent\
|
||||
|
||||
**/
|
||||
|
||||
#include "SmbiosMisc.h"
|
||||
|
||||
SMBIOS_MISC_TABLE_EXTERNS (SMBIOS_TABLE_TYPE0,
|
||||
MiscBiosVendor,
|
||||
MiscBiosVendor)
|
||||
SMBIOS_MISC_TABLE_EXTERNS (SMBIOS_TABLE_TYPE1,
|
||||
MiscSystemManufacturer,
|
||||
MiscSystemManufacturer)
|
||||
SMBIOS_MISC_TABLE_EXTERNS (SMBIOS_TABLE_TYPE3,
|
||||
MiscChassisManufacturer,
|
||||
MiscChassisManufacturer)
|
||||
SMBIOS_MISC_TABLE_EXTERNS (SMBIOS_TABLE_TYPE2,
|
||||
MiscBaseBoardManufacturer,
|
||||
MiscBaseBoardManufacturer)
|
||||
SMBIOS_MISC_TABLE_EXTERNS (SMBIOS_TABLE_TYPE13,
|
||||
MiscNumberOfInstallableLanguages,
|
||||
MiscNumberOfInstallableLanguages)
|
||||
SMBIOS_MISC_TABLE_EXTERNS (SMBIOS_TABLE_TYPE32,
|
||||
MiscBootInformation,
|
||||
MiscBootInformation)
|
||||
|
||||
|
||||
SMBIOS_MISC_DATA_TABLE mSmbiosMiscDataTable[] = {
|
||||
// Type0
|
||||
SMBIOS_MISC_TABLE_ENTRY_DATA_AND_FUNCTION (MiscBiosVendor,
|
||||
MiscBiosVendor),
|
||||
// Type1
|
||||
SMBIOS_MISC_TABLE_ENTRY_DATA_AND_FUNCTION (MiscSystemManufacturer,
|
||||
MiscSystemManufacturer),
|
||||
// Type3
|
||||
SMBIOS_MISC_TABLE_ENTRY_DATA_AND_FUNCTION (MiscChassisManufacturer,
|
||||
MiscChassisManufacturer),
|
||||
// Type2
|
||||
SMBIOS_MISC_TABLE_ENTRY_DATA_AND_FUNCTION (MiscBaseBoardManufacturer,
|
||||
MiscBaseBoardManufacturer),
|
||||
// Type13
|
||||
SMBIOS_MISC_TABLE_ENTRY_DATA_AND_FUNCTION (MiscNumberOfInstallableLanguages,
|
||||
MiscNumberOfInstallableLanguages),
|
||||
// Type32
|
||||
SMBIOS_MISC_TABLE_ENTRY_DATA_AND_FUNCTION (MiscBootInformation,
|
||||
MiscBootInformation),
|
||||
};
|
||||
|
||||
|
||||
//
|
||||
// Number of Data Table entries.
|
||||
//
|
||||
UINTN mSmbiosMiscDataTableEntries =
|
||||
(sizeof (mSmbiosMiscDataTable)) / sizeof (SMBIOS_MISC_DATA_TABLE);
|
Reference in New Issue
Block a user