On 2015/10/26 16:13, jiewen yao wrote:
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Yao, Jiewen <jiewen....@intel.com>
Cc: Zeng, Star <star.z...@intel.com>
---
  MdePkg/Include/IndustryStandard/SmBios.h | 12 ++++++++++++
  1 file changed, 12 insertions(+)

Reviewed-by: Star Zeng <star.z...@intel.com>


diff --git a/MdePkg/Include/IndustryStandard/SmBios.h 
b/MdePkg/Include/IndustryStandard/SmBios.h
index 14b5208..0959247 100644
--- a/MdePkg/Include/IndustryStandard/SmBios.h
+++ b/MdePkg/Include/IndustryStandard/SmBios.h
@@ -38,6 +38,18 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER 
EXPRESS OR IMPLIED.
  ///
  #define SMBIOS_STRING_MAX_LENGTH     64

+//
+// The length of the entire structure table (including all strings) must be 
reported
+// in the Structure Table Length field of the SMBIOS Structure Table Entry 
Point,
+// which is a WORD field limited to 65,535 bytes.
+//
+#define SMBIOS_TABLE_MAX_LENGTH 0xFFFF
+
+//
+// For SMBIOS 3.0, Structure table maximum size in Entry Point structure is 
DWORD field limited to 0xFFFFFFFF bytes.
+//
+#define SMBIOS_3_0_TABLE_MAX_LENGTH 0xFFFFFFFF
+
  ///
  /// Inactive type is added from SMBIOS 2.2. Reference SMBIOS 2.6, chapter 
3.3.43.
  /// Upper-level software that interprets the SMBIOS structure-table should 
bypass an


_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to