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 74ad25d5d9..445c560545 100644
--- a/DynamicTablesPkg/Include/ConfigurationManagerObject.h
+++ b/DynamicTablesPkg/Include/ConfigurationManagerObject.h
@@ -14,6 +14,7 @@
 
 #include <ArmNameSpaceObjects.h>
 #include <StandardNameSpaceObjects.h>
+#include <SmbiosNameSpaceObjects.h>
 
 #pragma pack(1)
 
@@ -107,7 +108,8 @@ typedef UINT32 CM_OBJECT_ID;
 typedef enum ObjectNameSpaceID {
   EObjNameSpaceStandard,      ///< Standard Objects Namespace
   EObjNameSpaceArm,           ///< ARM Objects Namespace
-  EObjNameSpaceOem = 0x8,     ///< OEM Objects Namespace
+  EObjNameSpaceOem    = 0x8,  ///< OEM Objects Namespace
+  EObjNameSpaceSmbios = 0xA,  ///< SMBIOS Objects Namespace
   EObjNameSpaceMax
 } EOBJECT_NAMESPACE_ID;
 
@@ -192,4 +194,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..836c902e40
--- /dev/null
+++ b/DynamicTablesPkg/Include/SmbiosNameSpaceObjects.h
@@ -0,0 +1,42 @@
+/** @file
+
+  Copyright (c) 2023 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.17.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#107258): https://edk2.groups.io/g/devel/message/107258
Mute This Topic: https://groups.io/mt/100361562/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to