[edk2-devel] [PATCH 1/2] MdePkg/Include: Update SMBIOS type 0

Hsu, Roger roger.hsu at hpe.com
Fri Apr 22 06:55:25 UTC 2022


Update SMBIOS type 0 to support BIOS extended size.

Signed-off-by: Roger Hsu <roger.hsu at hpe.com>
Cc: Michael D Kinney <michael.d.kinney at intel.com>
Cc: Liming Gao <gaoliming at byosoft.com.cn>
Cc: Zhiguang Liu <zhiguang.liu at intel.com>
Cc: Abner Chang <abner.chang at hpe.com>
---
 MdePkg/Include/IndustryStandard/SmBios.h | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/MdePkg/Include/IndustryStandard/SmBios.h b/MdePkg/Include/IndustryStandard/SmBios.h
index 828ea6d753..baa0fc96b8 100644
--- a/MdePkg/Include/IndustryStandard/SmBios.h
+++ b/MdePkg/Include/IndustryStandard/SmBios.h
@@ -3,7 +3,7 @@
 
 Copyright (c) 2006 - 2021, Intel Corporation. All rights reserved.<BR>
 (C) Copyright 2015-2017 Hewlett Packard Enterprise Development LP<BR>
-(C) Copyright 2015 - 2019 Hewlett Packard Enterprise Development LP<BR>
+(C) Copyright 2015 - 2022 Hewlett Packard Enterprise Development LP<BR>
 SPDX-License-Identifier: BSD-2-Clause-Patent
 
 **/
@@ -293,6 +293,17 @@ typedef struct {
   EXTENDED_BIOS_ROM_SIZE       ExtendedBiosSize;
 } SMBIOS_TABLE_TYPE0;
 
+///
+/// Extended BIOS ROM Size is added from SMBIOS 3.1. Add support to store different
+/// storage capacity unit (megabytes, gigabytes)
+///
+#define EXCEED_BIOS_ROM_SIZE 0xFF
+#define BIOS_ROM_SIZE_IN_GIGABYTES 1
+#define BIOS_ROM_SIZE_IN_MEGABYTES 0
+#define BYTES_IN_GIGABYTES (1024*1024*1024)
+#define BYTES_IN_MEGABYTES (1024*1024)
+#define BYTES_IN_KILOBYTES 1024
+
 ///
 ///  System Wake-up Type.
 ///
-- 
2.28.0.windows.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#89231): https://edk2.groups.io/g/devel/message/89231
Mute This Topic: https://groups.io/mt/90628976/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-




More information about the edk2-devel-archive mailing list