From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from zrleap.intel-email.com (zrleap.intel-email.com [114.80.218.36]) by mx.groups.io with SMTP id smtpd.web11.17440.1683250684193336506 for ; Thu, 04 May 2023 18:38:05 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@byosoft.com.cn header.s=cloud-union header.b=IsnfQPvF; spf=pass (domain: byosoft.com.cn, ip: 114.80.218.36, mailfrom: gaoliming@byosoft.com.cn) Received: from zrleap.intel-email.com (localhost [127.0.0.1]) by zrleap.intel-email.com (Postfix) with ESMTP id 619FDA32E17A for ; Fri, 5 May 2023 09:37:56 +0800 (CST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=byosoft.com.cn; s=cloud-union; t=1683250676; bh=eGvwK+kDW4wwigegN3V3KJ/Piu4UBrJtCBbdk9mk6Nw=; h=From:To:Cc:References:In-Reply-To:Subject:Date; b=IsnfQPvFuMjbANrZZwly8GtivhALNLUH4lfnaHkNzFBY6JvHMziqHNph9eJ3Ozp6T 3CSp0F66V3BbhIYHfYtCEwpWfVXDG6DZQayXiv5PR0lnumB5vJOpmytHW60M1K42TK 2ior6Uz5Yo7nlqySSXHnxwWc3pToMdMGeQWHduWk= Received: from localhost (localhost [127.0.0.1]) by zrleap.intel-email.com (Postfix) with ESMTP id A871CA32E094 for ; Fri, 5 May 2023 09:37:55 +0800 (CST) Received: from zrleap.intel-email.com (localhost [127.0.0.1]) by zrleap.intel-email.com (Postfix) with ESMTP id 74010A32E1A2 for ; Fri, 5 May 2023 09:37:53 +0800 (CST) Authentication-Results: zrleap.intel-email.com; none Received: from mail.byosoft.com.cn (mail.byosoft.com.cn [58.240.74.242]) by zrleap.intel-email.com (Postfix) with SMTP id 795B5A32E191 for ; Fri, 5 May 2023 09:37:44 +0800 (CST) Received: from DESKTOPS6D0PVI ([58.246.60.130]) (envelope-sender ) by 192.168.6.13 with ESMTP for ; Fri, 05 May 2023 09:37:35 +0800 X-WM-Sender: gaoliming@byosoft.com.cn X-Originating-IP: 58.246.60.130 X-WM-AuthFlag: YES X-WM-AuthUser: gaoliming@byosoft.com.cn From: "gaoliming" To: "'Giri Mudusuru'" , Cc: "'Michael D Kinney'" , "'Zhiguang Liu'" , "'Andrew Fish'" References: <57e79e99500e55cd6f4f4fc169c94cd7bb81cfd5.1683245758.git.girim@apple.com> In-Reply-To: <57e79e99500e55cd6f4f4fc169c94cd7bb81cfd5.1683245758.git.girim@apple.com> Subject: =?UTF-8?B?5Zue5aSNOiBbUEFUQ0ggdjIgMS8yXSBNZGVQa2cvSW5kdXN0cnlTdGFuZGFyZDogQWRkIFNNQklPUyBhbmNob3Igc3RyaW5nICYgbGVuZ3RoIGRlZmluZXMu?= Date: Fri, 5 May 2023 09:37:39 +0800 Message-ID: <000301d97ef2$2d9ab7c0$88d02740$@byosoft.com.cn> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQMDcVzV6LPHuCqAwAQyzgmHa5yv06z3AZwQ Sender: "gaoliming" Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable Content-Language: zh-cn Reviewed-by: Liming Gao > -----=D3=CA=BC=FE=D4=AD=BC=FE----- > =B7=A2=BC=FE=C8=CB: Giri Mudusuru > =B7=A2=CB=CD=CA=B1=BC=E4: 2023=C4=EA5=D4=C25=C8=D5 8:17 > =CA=D5=BC=FE=C8=CB: devel@edk2.groups.io > =B3=AD=CB=CD: Giri Mudusuru ; Michael D Kinney > ; Liming Gao ; > Zhiguang Liu ; Andrew Fish > =D6=F7=CC=E2: [PATCH v2 1/2] MdePkg/IndustryStandard: Add SMBIOS = anchor string & > length defines. >=20 > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3805 >=20 > Add SMBIOS spec defined anchor strings & length defines. >=20 > - '_SM_' chapter 5.2.1 SMBIOS 2.1 (32-bit) Entry Point > - '_SM3_' chapter 5.2.2 SMBIOS 3.0 (64-bit) Entry Point >=20 > Changes from v1 to v2: > - Replace non-ASCII characters >=20 > Cc: Michael D Kinney > Cc: Liming Gao > Cc: Zhiguang Liu > Cc: Andrew Fish > Signed-off-by: Giri Mudusuru > --- > MdePkg/Include/IndustryStandard/SmBios.h | 22 > ++++++++++++++++++++-- > 1 file changed, 20 insertions(+), 2 deletions(-) >=20 > diff --git a/MdePkg/Include/IndustryStandard/SmBios.h > b/MdePkg/Include/IndustryStandard/SmBios.h > index 9cbdec1182..89985bb418 100644 > --- a/MdePkg/Include/IndustryStandard/SmBios.h > +++ b/MdePkg/Include/IndustryStandard/SmBios.h > @@ -48,6 +48,24 @@ SPDX-License-Identifier: BSD-2-Clause-Patent > // >=20 > #define SMBIOS_3_0_TABLE_MAX_LENGTH 0xFFFFFFFF >=20 >=20 >=20 > +/// >=20 > +/// Reference SMBIOS 3.4, chapter 5.2.1 SMBIOS 2.1 (32-bit) Entry = Point >=20 > +/// Table 1 - SMBIOS 2.1 (32-bit) Entry Point structure, offset 00h >=20 > +/// _SM_, specified as four ASCII characters (5F 53 4D 5F). >=20 > +///@{ >=20 > +#define SMBIOS_ANCHOR_STRING "_SM_" >=20 > +#define SMBIOS_ANCHOR_STRING_LENGTH 4 >=20 > +///@} >=20 > + >=20 > +/// >=20 > +/// Reference SMBIOS 3.4, chapter 5.2.2 SMBIOS 3.0 (64-bit) Entry = Point >=20 > +/// Table 2 - SMBIOS 3.0 (64-bit) Entry Point structure, offset 00h >=20 > +/// _SM3_, specified as five ASCII characters (5F 53 4D 33 5F). >=20 > +///@{ >=20 > +#define SMBIOS_3_0_ANCHOR_STRING "_SM3_" >=20 > +#define SMBIOS_3_0_ANCHOR_STRING_LENGTH 5 >=20 > +///@} >=20 > + >=20 > // >=20 > // SMBIOS type macros which is according to SMBIOS 3.3.0 = specification. >=20 > // >=20 > @@ -138,7 +156,7 @@ typedef UINT16 SMBIOS_HANDLE; > /// >=20 > #pragma pack(1) >=20 > typedef struct { >=20 > - UINT8 AnchorString[4]; >=20 > + UINT8 AnchorString[SMBIOS_ANCHOR_STRING_LENGTH]; >=20 > UINT8 EntryPointStructureChecksum; >=20 > UINT8 EntryPointLength; >=20 > UINT8 MajorVersion; >=20 > @@ -155,7 +173,7 @@ typedef struct { > } SMBIOS_TABLE_ENTRY_POINT; >=20 >=20 >=20 > typedef struct { >=20 > - UINT8 AnchorString[5]; >=20 > + UINT8 AnchorString[SMBIOS_3_0_ANCHOR_STRING_LENGTH]; >=20 > UINT8 EntryPointStructureChecksum; >=20 > UINT8 EntryPointLength; >=20 > UINT8 MajorVersion; >=20 > -- > 2.39.2 (Apple Git-144)