diff options
author | Chris Phillips <chrisp@hpe.com> | 2017-01-10 14:49:08 +0800 |
---|---|---|
committer | Star Zeng <star.zeng@intel.com> | 2017-01-12 16:46:23 +0800 |
commit | f15908aa036585a80016fa7c02421b6d293a7550 (patch) | |
tree | 1f19fb55ec057f8cc84de4db55207a3f62f54c54 /MdePkg/Include | |
parent | 32fd9c4150d0eaada633b6c35cc09c79d78ddaf8 (diff) | |
download | edk2-f15908aa036585a80016fa7c02421b6d293a7550.tar.gz edk2-f15908aa036585a80016fa7c02421b6d293a7550.tar.bz2 edk2-f15908aa036585a80016fa7c02421b6d293a7550.zip |
MdePkg: Add comments for SMBIOS Type 3 structure to cover SKU Number
Starting with SMBIOS spec version 2.7, Type 3 added SKU Number.
SKU Number is at a variable offset (depends on count and length of Contained Elements), so cannot add SKU Number to the SMBIOS_TABLE_TYPE3 structure.
Adding comments to explain how to get SKU Number.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Chris Phillips <chrisp@hpe.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
Diffstat (limited to 'MdePkg/Include')
-rw-r--r-- | MdePkg/Include/IndustryStandard/SmBios.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/MdePkg/Include/IndustryStandard/SmBios.h b/MdePkg/Include/IndustryStandard/SmBios.h index 2e804ea88e..f72a56d6a0 100644 --- a/MdePkg/Include/IndustryStandard/SmBios.h +++ b/MdePkg/Include/IndustryStandard/SmBios.h @@ -468,7 +468,18 @@ typedef struct { UINT8 NumberofPowerCords;
UINT8 ContainedElementCount;
UINT8 ContainedElementRecordLength;
+ //
+ // Can have 0 to (ContainedElementCount * ContainedElementRecordLength) contained elements
+ //
CONTAINED_ELEMENT ContainedElements[1];
+ //
+ // Add for smbios 2.7
+ //
+ // Since ContainedElements has a variable number of entries, must not define SKUNumber in
+ // the structure. Need to reference it by starting at offset 0x15 and adding
+ // (ContainedElementCount * ContainedElementRecordLength) bytes.
+ //
+ // SMBIOS_TABLE_STRING SKUNumber;
} SMBIOS_TABLE_TYPE3;
///
|