From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-002e3701.pphosted.com (mx0a-002e3701.pphosted.com [148.163.147.86]) by mx.groups.io with SMTP id smtpd.web08.5456.1650610862378430171 for ; Fri, 22 Apr 2022 00:01:02 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=bMbsrukm; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: hpe.com, ip: 148.163.147.86, mailfrom: prvs=0111295386=roger.hsu@hpe.com) Received: from pps.filterd (m0150241.ppops.net [127.0.0.1]) by mx0a-002e3701.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 23M6JUM8008705; Fri, 22 Apr 2022 07:00:52 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding; s=pps0720; bh=24wYzakwQxdSa6C9brRBzQPbRrisKycrmbGolu5BiaM=; b=bMbsrukmcNn0CPC5XGDdq3qjxyPariWkKzawrR9VPyf7io+kGxlY1WAy8/VoAHM5/B1e 8plu8XXW5cPqYzYTrIw1TB6zdI4/qsEqtQiG7nMGkI/CtcWH1h0WC+Eo24tEr1fmybSz zYF1WAKUbLPUVs4U13WsKP9XlRX8gX5BbUhVaNw8z89gUAIMUry5TtKd3C7dUxfsKQyD d8NPhW9B4HkW0Yg4f2UiqNrfV5Jiy0bTBVkj77mPdRiAooom805+hHGhk59xHjUI6kur G5qM+5j5WL38cgpsQIWp/v4lPfHkrZXacUVmlpzpbgAhqpfJ9gGJZaJtahtMiZLZo7XB vg== Received: from g4t3425.houston.hpe.com (g4t3425.houston.hpe.com [15.241.140.78]) by mx0a-002e3701.pphosted.com (PPS) with ESMTPS id 3fkq040a1s-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 22 Apr 2022 07:00:52 +0000 Received: from g4t3433.houston.hpecorp.net (g4t3433.houston.hpecorp.net [16.208.49.245]) by g4t3425.houston.hpe.com (Postfix) with ESMTP id D799A92; Fri, 22 Apr 2022 07:00:51 +0000 (UTC) Received: from localhost.localdomain (unknown [15.119.210.230]) by g4t3433.houston.hpecorp.net (Postfix) with ESMTP id A3D6549; Fri, 22 Apr 2022 07:00:50 +0000 (UTC) From: "Hsu, Roger" To: devel@edk2.groups.io Cc: Michael D Kinney , Liming Gao , Zhiguang Liu , Abner Chang Subject: [PATCH 1/2] MdePkg/Include: Update SMBIOS type 0 Date: Fri, 22 Apr 2022 14:55:25 +0800 Message-Id: <20220422065525.1364-1-roger.hsu@hpe.com> X-Mailer: git-send-email 2.28.0.windows.1 MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: OCJhqF3uw_sVKKD5OYR2x1jDe3CcvTXS X-Proofpoint-GUID: OCJhqF3uw_sVKKD5OYR2x1jDe3CcvTXS X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-04-22_02,2022-04-21_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 malwarescore=0 bulkscore=0 impostorscore=0 adultscore=0 mlxlogscore=800 spamscore=0 mlxscore=0 suspectscore=0 lowpriorityscore=0 priorityscore=1501 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2204220030 Content-Transfer-Encoding: quoted-printable Update SMBIOS type 0 to support BIOS extended size. Signed-off-by: Roger Hsu Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Cc: Abner Chang --- MdePkg/Include/IndustryStandard/SmBios.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/MdePkg/Include/IndustryStandard/SmBios.h b/MdePkg/Include/Indu= stryStandard/SmBios.h index 828ea6d753..baa0fc96b8 100644 --- a/MdePkg/Include/IndustryStandard/SmBios.h +++ b/MdePkg/Include/IndustryStandard/SmBios.h @@ -3,7 +3,7 @@ =0D Copyright (c) 2006 - 2021, Intel Corporation. All rights reserved.
=0D (C) Copyright 2015-2017 Hewlett Packard Enterprise Development LP
=0D -(C) Copyright 2015 - 2019 Hewlett Packard Enterprise Development LP
=0D +(C) Copyright 2015 - 2022 Hewlett Packard Enterprise Development LP
=0D SPDX-License-Identifier: BSD-2-Clause-Patent=0D =0D **/=0D @@ -293,6 +293,17 @@ typedef struct { EXTENDED_BIOS_ROM_SIZE ExtendedBiosSize;=0D } SMBIOS_TABLE_TYPE0;=0D =0D +///=0D +/// Extended BIOS ROM Size is added from SMBIOS 3.1. Add support to store = different=0D +/// storage capacity unit (megabytes, gigabytes)=0D +///=0D +#define EXCEED_BIOS_ROM_SIZE 0xFF=0D +#define BIOS_ROM_SIZE_IN_GIGABYTES 1=0D +#define BIOS_ROM_SIZE_IN_MEGABYTES 0=0D +#define BYTES_IN_GIGABYTES (1024*1024*1024)=0D +#define BYTES_IN_MEGABYTES (1024*1024)=0D +#define BYTES_IN_KILOBYTES 1024=0D +=0D ///=0D /// System Wake-up Type.=0D ///=0D --=20 2.28.0.windows.1