]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Move Smbios table MAX length definition to Mde header filer.
authorYao, Jiewen <jiewen.yao@intel.com>
Tue, 27 Oct 2015 02:43:39 +0000 (02:43 +0000)
committerjyao1 <jyao1@Edk2>
Tue, 27 Oct 2015 02:43:39 +0000 (02:43 +0000)
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

MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.h
MdePkg/Include/IndustryStandard/SmBios.h

index f87c8de8ca07f7a66e0e2a7dac3ff6bca7bdbc7c..10cff8dd59f69971e03e4919915e77996f63e8a1 100644 (file)
@@ -31,18 +31,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #include <Library/UefiBootServicesTableLib.h>\r
 #include <Library/PcdLib.h>\r
 \r
-//\r
-// The length of the entire structure table (including all strings) must be reported\r
-// in the Structure Table Length field of the SMBIOS Structure Table Entry Point,\r
-// which is a WORD field limited to 65,535 bytes.\r
-//\r
-#define SMBIOS_TABLE_MAX_LENGTH 0xFFFF\r
-\r
-//\r
-// For SMBIOS 3.0, Structure table maximum size in Entry Point structure is DWORD field limited to 0xFFFFFFFF bytes.\r
-//\r
-#define SMBIOS_3_0_TABLE_MAX_LENGTH 0xFFFFFFFF\r
-\r
 #define SMBIOS_INSTANCE_SIGNATURE SIGNATURE_32 ('S', 'B', 'i', 's')\r
 typedef struct {\r
   UINT32                Signature;\r
index 14b5208fc5e26f4f6197b8da53c9a6477a884c48..0959247f5432f1c812b23e9d5862dff72c4de2a0 100644 (file)
@@ -38,6 +38,18 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 ///\r
 #define SMBIOS_STRING_MAX_LENGTH     64\r
 \r
+//\r
+// The length of the entire structure table (including all strings) must be reported\r
+// in the Structure Table Length field of the SMBIOS Structure Table Entry Point,\r
+// which is a WORD field limited to 65,535 bytes.\r
+//\r
+#define SMBIOS_TABLE_MAX_LENGTH 0xFFFF\r
+\r
+//\r
+// For SMBIOS 3.0, Structure table maximum size in Entry Point structure is DWORD field limited to 0xFFFFFFFF bytes.\r
+//\r
+#define SMBIOS_3_0_TABLE_MAX_LENGTH 0xFFFFFFFF\r
+\r
 ///\r
 /// Inactive type is added from SMBIOS 2.2. Reference SMBIOS 2.6, chapter 3.3.43.\r
 /// Upper-level software that interprets the SMBIOS structure-table should bypass an \r