diff options
| author | VarshitPandya <varshit.pandya@arm.com> | 2026-07-17 16:28:53 +0100 |
|---|---|---|
| committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2026-07-21 15:18:26 +0000 |
| commit | bcd168735f46b30525a59b782cad032b8de55e60 (patch) | |
| tree | 075cbb8170da6a024fa022afba58a396495dce13 /DynamicTablesPkg | |
| parent | 74caea295623fc7ec3f27a71f3488662864cbb4e (diff) | |
| download | edk2-bcd168735f46b30525a59b782cad032b8de55e60.tar.gz edk2-bcd168735f46b30525a59b782cad032b8de55e60.zip | |
DynamicTablesPkg: Move common size definitions
Move SMBIOS_MAX_STRING_SIZE and CFMWS_MAX_INTERLEAVE_WAYS to the
common definitions near the top of ArchCommonNameSpaceObjects.h.
Document that SMBIOS_MAX_STRING_SIZE is an implementation-defined
Configuration Manager storage limit, including the terminating NULL,
rather than an SMBIOS specification limit. Also distinguish it from
the legacy SMBIOS_STRING_MAX_LENGTH definition used for SMBIOS 2.6
MIF compatibility.
Signed-off-by: Varshit Pandya <varshit.pandya@arm.com>
Diffstat (limited to 'DynamicTablesPkg')
| -rw-r--r-- | DynamicTablesPkg/Include/ArchCommonNameSpaceObjects.h | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/DynamicTablesPkg/Include/ArchCommonNameSpaceObjects.h b/DynamicTablesPkg/Include/ArchCommonNameSpaceObjects.h index da543b8495..b6642bcad6 100644 --- a/DynamicTablesPkg/Include/ArchCommonNameSpaceObjects.h +++ b/DynamicTablesPkg/Include/ArchCommonNameSpaceObjects.h @@ -21,6 +21,19 @@ #include <IndustryStandard/Tpm2Acpi.h>
#include <IndustryStandard/SmBios.h>
+///
+/// Maximum storage size, including the terminating NULL, for SMBIOS strings
+/// represented inline in Configuration Manager objects. This is a
+/// DynamicTablesPkg implementation limit.
+///
+/// The legacy 64-character constraint from SMBIOS 2.6 was required for MIF
+/// compatibility and does not apply to SMBIOS 2.7 or later tables.
+///
+#define SMBIOS_MAX_STRING_SIZE (1024)
+
+// Maximum interleave ways is defined in the CXL spec section 8.2.4.19.7.
+#define CFMWS_MAX_INTERLEAVE_WAYS (16)
+
/** The EARCH_COMMON_OBJECT_ID enum describes the Object IDs
in the Arch Common Namespace
*/
@@ -459,8 +472,6 @@ typedef struct CmArchCommonLpiInfo { CHAR8 StateName[16];
} CM_ARCH_COMMON_LPI_INFO;
-#define SMBIOS_MAX_STRING_SIZE (1024)
-
/** A structure that describes the Processor Hierarchy Node (Type 0) in PPTT
ID: EArchCommonObjProcHierarchyInfo
@@ -980,9 +991,6 @@ typedef struct CmArchCommonCxlHostBridgeInfo { UINT64 ComponentRegisterBase;
} CM_ARCH_COMMON_CXL_HOST_BRIDGE_INFO;
-// Maximum interleave ways is defined in the CXL spec section 8.2.4.19.7.
-#define CFMWS_MAX_INTERLEAVE_WAYS (16)
-
/** A structure that describes the CXL Fixed Memory Window Structure (Type 1).
ID: EArchCommonObjCxlFixedMemoryWindowInfo
|
