]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ShellPkg: Added SMBIOS 2.8 Type 17 changes to smbiosview
authorSamer El-Haj-Mahmoud <samer.el-haj-mahmoud@hpe.com>
Fri, 18 Sep 2015 02:58:31 +0000 (02:58 +0000)
committershenshushi <shenshushi@Edk2>
Fri, 18 Sep 2015 02:58:31 +0000 (02:58 +0000)
Updated smbiosview to decode SMBIOS Type 17 MinimumVoltage, MaximumVoltage, and ConfiguredVoltage

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Samer El-Haj-Mahmoud <samer.el-haj-mahmoud@hpe.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18507 6f19259b-4bc3-4df7-8a09-765794883524

ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/PrintInfo.c

index 1494c47e3709825f2799dd7cab5e7e14163b16a8..e348c6f25c3afd96a13b21fb331d466d0d0324ed 100644 (file)
@@ -2,7 +2,8 @@
   Module for clarifying the content of the smbios structure element information.\r
 \r
   Copyright (c) 2005 - 2015, Intel Corporation. All rights reserved.<BR>\r
-  (C) Copyright 2014 Hewlett-Packard Development Company, L.P.<BR>\r
+  (C) Copyright 2014 Hewlett-Packard Development Company, L.P.<BR>  \r
+  (C) Copyright 2015 Hewlett Packard Enterprise Development LP<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -721,6 +722,11 @@ SmbiosPrintStructure (
       PRINT_STRUCT_VALUE (Struct, Type17, ExtendedSize);\r
       PRINT_STRUCT_VALUE (Struct, Type17, ConfiguredMemoryClockSpeed);\r
     }\r
+    if (AE_SMBIOS_VERSION (0x2, 0x8) && (Struct->Hdr->Length > 0x22)) {\r
+      PRINT_STRUCT_VALUE (Struct, Type17, MinimumVoltage);\r
+      PRINT_STRUCT_VALUE (Struct, Type17, MaximumVoltage);\r
+      PRINT_STRUCT_VALUE (Struct, Type17, ConfiguredVoltage);\r
+    }\r
     break;\r
 \r
   //\r