mirror of https://github.com/acidanthera/audk.git
Move Smbios table MAX length definition to Mde header filer.
So that other module can also refer to them. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: "Yao, Jiewen" <jiewen.yao@intel.com> Reviewed-by: "Zeng, Star" <star.zeng@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18674 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
f40577c356
commit
7254d13470
|
@ -31,18 +31,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||
#include <Library/UefiBootServicesTableLib.h>
|
||||
#include <Library/PcdLib.h>
|
||||
|
||||
//
|
||||
// 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
|
||||
|
||||
#define SMBIOS_INSTANCE_SIGNATURE SIGNATURE_32 ('S', 'B', 'i', 's')
|
||||
typedef struct {
|
||||
UINT32 Signature;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue