mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-21 20:54:29 +02:00
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>
This commit is contained in:
parent
32fd9c4150
commit
f15908aa03
@ -468,7 +468,18 @@ typedef struct {
|
|||||||
UINT8 NumberofPowerCords;
|
UINT8 NumberofPowerCords;
|
||||||
UINT8 ContainedElementCount;
|
UINT8 ContainedElementCount;
|
||||||
UINT8 ContainedElementRecordLength;
|
UINT8 ContainedElementRecordLength;
|
||||||
|
//
|
||||||
|
// Can have 0 to (ContainedElementCount * ContainedElementRecordLength) contained elements
|
||||||
|
//
|
||||||
CONTAINED_ELEMENT ContainedElements[1];
|
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;
|
} SMBIOS_TABLE_TYPE3;
|
||||||
|
|
||||||
///
|
///
|
||||||
|
Loading…
x
Reference in New Issue
Block a user