From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from vib-mx02.apple.com (vib-mx02.apple.com [17.132.96.1]) by mx.groups.io with SMTP id smtpd.web10.16107.1683245870519477532 for ; Thu, 04 May 2023 17:17:50 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@apple.com header.s=20180706 header.b=Czap//nY; spf=pass (domain: apple.com, ip: 17.132.96.1, mailfrom: girim@apple.com) Received: from sg-mailsvcp-mta-lapp04.asia.apple.com (sg-mailsvcp-mta-lapp04.asia.apple.com [17.84.67.72]) by vb11p01nt-mxp02.apple.com (Oracle Communications Messaging Server 8.1.0.22.20230228 64bit (built Feb 28 2023)) with ESMTPS id <0RU501J21STL2600@vb11p01nt-mxp02.apple.com> for devel@edk2.groups.io; Fri, 05 May 2023 00:17:48 +0000 (GMT) X-Proofpoint-GUID: KdRRv7CnRuCq6F1W7Oe3rRkCaTWCW4ti X-Proofpoint-ORIG-GUID: KdRRv7CnRuCq6F1W7Oe3rRkCaTWCW4ti X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.573,18.0.942 definitions=2023-04-11_15:2023-04-11,2023-04-11 signatures=0 X-Proofpoint-Spam-Details: rule=interactive_user_notspam policy=interactive_user score=0 bulkscore=0 spamscore=0 suspectscore=0 malwarescore=0 mlxlogscore=944 adultscore=0 mlxscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2304110197 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apple.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding; s=20180706; bh=u+5cHa3K/TKmCqsQO2NKWrkL9/9XjosYhS0zFlv5AgA=; b=Czap//nY8oLvc9SuD1a4R0pU9jsFDVKmtlovKbw2JYHhVWo/gQlz1e3jEKrkz6lP7HRj sr2m0mEA/2x4MkDlg5IIKPvNIKfVROkLZeyvckPdr+LDRHeRt+L2HX328WYDxUQQ3jgl mUAJqHczjdYm0j6nvkq4lNabbVU6i4wkxopgO0keTCCN4mXLQ0gs74umEpGpolU5j+Vq St6bhlexG6SqxSu9H8w41WN9rHyPnByaB84awSBV3JkiOjBcAt0BoGEd/WPFi+I0I5pT I636Gkpu+zQvutUjnc79auSwERMFprI4IonCONEGuG/HQBm6pcGiJyLZOUd3OycXlRMx Ug== Received: from sg-mailsvcp-relay-lapp04.asia.apple.com (sg-mailsvcp-relay-lapp04.asia.apple.com [17.84.71.220]) by sg-mailsvcp-mta-lapp04.asia.apple.com (Oracle Communications Messaging Server 8.1.0.22.20230228 64bit (built Feb 28 2023)) with ESMTPS id <0RU500946STKL100@sg-mailsvcp-mta-lapp04.asia.apple.com>; Fri, 05 May 2023 08:17:44 +0800 (+08) Received: from process_milters-daemon.sg-mailsvcp-relay-lapp04.asia.apple.com by sg-mailsvcp-relay-lapp04.asia.apple.com (Oracle Communications Messaging Server 8.1.0.22.20230228 64bit (built Feb 28 2023)) id <0RU500400SSPCJ00@sg-mailsvcp-relay-lapp04.asia.apple.com>; Fri, 05 May 2023 08:17:44 +0800 (+08) X-Va-A: X-Va-T-CD: 3a2c4b67349838e305a7a1f00570e43c X-Va-E-CD: 476f4369096d761be3bee7167c27b2bd X-Va-R-CD: b79bbe7f6765500282af42eeaaac7b73 X-Va-ID: 1011d705-c80c-4b02-90af-a54865443017 X-Va-CD: 0 X-V-A: X-V-T-CD: 3a2c4b67349838e305a7a1f00570e43c X-V-E-CD: 476f4369096d761be3bee7167c27b2bd X-V-R-CD: b79bbe7f6765500282af42eeaaac7b73 X-V-ID: 93b29743-a7d9-4219-bf2e-64a237996350 X-V-CD: 0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.573,18.0.942 definitions=2023-05-04_15:2023-05-03,2023-05-04 signatures=0 Received: from sg-mailsvcp-relay-lapp04.asia.apple.com (unknown [10.107.25.178]) by sg-mailsvcp-relay-lapp04.asia.apple.com (Oracle Communications Messaging Server 8.1.0.22.20230228 64bit (built Feb 28 2023)) with ESMTP id <0RU500QSBSTFOM00@sg-mailsvcp-relay-lapp04.asia.apple.com>; Fri, 05 May 2023 08:17:40 +0800 (+08) From: "Giri Mudusuru" To: devel@edk2.groups.io Cc: Giri Mudusuru , Michael D Kinney , Liming Gao , Zhiguang Liu , Andrew Fish Subject: [PATCH v2 1/2] MdePkg/IndustryStandard: Add SMBIOS anchor string & length defines. Date: Fri, 05 May 2023 05:47:09 +0530 Message-id: <57e79e99500e55cd6f4f4fc169c94cd7bb81cfd5.1683245758.git.girim@apple.com> X-Mailer: git-send-email 2.39.2 (Apple Git-144) MIME-version: 1.0 Content-transfer-encoding: quoted-printable REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3805 Add SMBIOS spec defined anchor strings & length defines. - '_SM_' chapter 5.2.1 SMBIOS 2.1 (32-bit) Entry Point - '_SM3_' chapter 5.2.2 SMBIOS 3.0 (64-bit) Entry Point Changes from v1 to v2: - Replace non-ASCII characters 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(-) diff --git a/MdePkg/Include/IndustryStandard/SmBios.h b/MdePkg/Include/Indu= stryStandard/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 //=0D #define SMBIOS_3_0_TABLE_MAX_LENGTH 0xFFFFFFFF=0D =0D +///=0D +/// Reference SMBIOS 3.4, chapter 5.2.1 SMBIOS 2.1 (32-bit) Entry Point=0D +/// Table 1 - SMBIOS 2.1 (32-bit) Entry Point structure, offset 00h=0D +/// _SM_, specified as four ASCII characters (5F 53 4D 5F).=0D +///@{=0D +#define SMBIOS_ANCHOR_STRING "_SM_"=0D +#define SMBIOS_ANCHOR_STRING_LENGTH 4=0D +///@}=0D +=0D +///=0D +/// Reference SMBIOS 3.4, chapter 5.2.2 SMBIOS 3.0 (64-bit) Entry Point=0D +/// Table 2 - SMBIOS 3.0 (64-bit) Entry Point structure, offset 00h=0D +/// _SM3_, specified as five ASCII characters (5F 53 4D 33 5F).=0D +///@{=0D +#define SMBIOS_3_0_ANCHOR_STRING "_SM3_"=0D +#define SMBIOS_3_0_ANCHOR_STRING_LENGTH 5=0D +///@}=0D +=0D //=0D // SMBIOS type macros which is according to SMBIOS 3.3.0 specification.=0D //=0D @@ -138,7 +156,7 @@ typedef UINT16 SMBIOS_HANDLE; ///=0D #pragma pack(1)=0D typedef struct {=0D - UINT8 AnchorString[4];=0D + UINT8 AnchorString[SMBIOS_ANCHOR_STRING_LENGTH];=0D UINT8 EntryPointStructureChecksum;=0D UINT8 EntryPointLength;=0D UINT8 MajorVersion;=0D @@ -155,7 +173,7 @@ typedef struct { } SMBIOS_TABLE_ENTRY_POINT;=0D =0D typedef struct {=0D - UINT8 AnchorString[5];=0D + UINT8 AnchorString[SMBIOS_3_0_ANCHOR_STRING_LENGTH];=0D UINT8 EntryPointStructureChecksum;=0D UINT8 EntryPointLength;=0D UINT8 MajorVersion;=0D --=20 2.39.2 (Apple Git-144)