Introduce a new namespace for SMBIOS related CM Objects. Signed-off-by: Girish Mahadevan <gmahade...@nvidia.com> Reviewed-by: Nick Ramirez <nrami...@nvidia.com> Reviewed-by: Jeff Brasen <jbra...@nvidia.com> --- .../Include/ConfigurationManagerObject.h | 14 ++++++- .../Include/SmbiosNameSpaceObjects.h | 42 +++++++++++++++++++ 2 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 DynamicTablesPkg/Include/SmbiosNameSpaceObjects.h
diff --git a/DynamicTablesPkg/Include/ConfigurationManagerObject.h b/DynamicTablesPkg/Include/ConfigurationManagerObject.h index dd730ca677..841de989a5 100644 --- a/DynamicTablesPkg/Include/ConfigurationManagerObject.h +++ b/DynamicTablesPkg/Include/ConfigurationManagerObject.h @@ -15,6 +15,7 @@ #include <ArchCommonNameSpaceObjects.h> #include <ArmNameSpaceObjects.h> #include <StandardNameSpaceObjects.h> +#include <SmbiosNameSpaceObjects.h> #pragma pack(1) @@ -83,7 +84,8 @@ typedef enum ObjectNameSpaceID { EObjNameSpaceStandard, ///< Standard Objects Namespace EObjNameSpaceArchCommon, ///< Arch Common Objects Namespace EObjNameSpaceArm, ///< ARM Objects Namespace - EObjNameSpaceOem = 0xF, ///< OEM Objects Namespace + EObjNameSpaceOem = 0xF, ///< OEM Objects Namespace + EObjNameSpaceSmbios, ///< SMBIOS Objects Namespace EObjNameSpaceMax, } EOBJECT_NAMESPACE_ID; @@ -178,4 +180,14 @@ typedef struct CmObjDescriptor { #define CREATE_CM_OEM_OBJECT_ID(ObjectId) \ (CREATE_CM_OBJECT_ID (EObjNameSpaceOem, ObjectId)) +/** This macro returns a Configuration Manager Object ID + in the SMBIOS Object Namespace. + + @param [in] ObjectId The Object ID. + + @retval Returns an SMBIOS Configuration Manager Object ID. +**/ +#define CREATE_CM_SMBIOS_OBJECT_ID(ObjectId) \ + (CREATE_CM_OBJECT_ID (EObjNameSpaceSmbios, ObjectId)) + #endif // CONFIGURATION_MANAGER_OBJECT_H_ diff --git a/DynamicTablesPkg/Include/SmbiosNameSpaceObjects.h b/DynamicTablesPkg/Include/SmbiosNameSpaceObjects.h new file mode 100644 index 0000000000..eeeb94bbb2 --- /dev/null +++ b/DynamicTablesPkg/Include/SmbiosNameSpaceObjects.h @@ -0,0 +1,42 @@ +/** @file + + Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + + SPDX-License-Identifier: BSD-2-Clause-Patent + + @par Glossary: + - Cm or CM - Configuration Manager + - Obj or OBJ - Object + - Std or STD - Standard +**/ + +#ifndef SMBIOS_NAMESPACE_OBJECTS_H_ +#define SMBIOS_NAMESPACE_OBJECTS_H_ + +#pragma pack(1) + +typedef enum SmbiosObjectID { + ESmbiosObjReserved, ///< 0 - Reserved + ESmbiosObjBaseboardInfo, ///< 1 - Baseboard Information + ESmbiosObjSystemSlotInfo, ///< 2 - System Slot Information + ESmbiosObjSystemInfo, ///< 3 - System Information + ESmbiosObjTpmDeviceInfo, ///< 4 - TPM Device Info + ESmbiosObjOemStrings, ///< 5 - OEM Strings + ESmbiosObjPortConnectorInfo, ///< 6 - Port connector Information + ESmbiosObjBiosInfo, ///< 7 - Bios Information + ESmbiosObjOnboardDeviceExInfo, ///< 8 - Onboard Device Ex Information + ESmbiosObjGroupAssociations, ///< 9 - Group Associations + ESmbiosObjBiosLanguageInfo, ///< 10 - BIOS Language Information + ESmbiosObjEnclosureInfo, ///< 11 - Enclosure Information + ESmbiosObjMemoryDeviceInfo, ///< 12 - Memory Device Information + ESmbiosObjSystemBootInfo, ///< 13 - System Boot Info + ESmbiosObjPhysicalMemoryArray, ///< 14 - Physical Memory Array + ESmbiosObjMemoryArrayMappedAddress, ///< 15 - Memory Mapped Address + ESmbiosObjPowerSupplyInfo, ///< 16 - Power Supply Info + ESmbiosObjFirmwareInventoryInfo, ///< 17 - Firmware Inventory Info + ESmbiosObjMax +} ESMBIOS_OBJECT_ID; + +#pragma pack() + +#endif // SMBIOS_NAMESPACE_OBJECTS_H_ -- 2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#121092): https://edk2.groups.io/g/devel/message/121092 Mute This Topic: https://groups.io/mt/111022010/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-