From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from g9t5008.houston.hpe.com (g9t5008.houston.hpe.com [15.241.48.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 0A204817AE for ; Mon, 9 Jan 2017 01:14:56 -0800 (PST) Received: from AUGUSTLI1.asiapacific.hpqcorp.net (unknown [16.154.154.189]) by g9t5008.houston.hpe.com (Postfix) with ESMTP id 473A55B; Mon, 9 Jan 2017 09:14:53 +0000 (UTC) From: Linson Augustine To: edk2-devel@lists.01.org Cc: jaben.carsey@intel.com, ruiyu.ni@intel.com, leif.lindholm@linaro.org, ard.biesheuvel@linaro.org, tapandshah@hpe.com Date: Mon, 9 Jan 2017 14:44:53 +0530 Message-Id: <20170109091453.10820-1-linson.augustine@hpe.com> X-Mailer: git-send-email 2.11.0.windows.1 Subject: [PATCH v1 1/1] ShellPkg/PrintInfo.c: Add decoding of SMBIOS record type 43 X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jan 2017 09:14:56 -0000 Added decoding of the new SMBIOS Type 43 record. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Augustine Linson P --- ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/PrintInfo.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/PrintInfo.c b/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/PrintInfo.c index 7e17b69d5a..6eb4e5aada 100644 --- a/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/PrintInfo.c +++ b/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/PrintInfo.c @@ -3,7 +3,7 @@ Copyright (c) 2005 - 2016, Intel Corporation. All rights reserved.
(C) Copyright 2014 Hewlett-Packard Development Company, L.P.
- (C) Copyright 2015 Hewlett Packard Enterprise Development LP
+ (C) Copyright 2015-2017 Hewlett Packard Enterprise Development LP
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -1083,6 +1083,20 @@ SmbiosPrintStructure ( break; // + // TPM Device (Type 43) + // + case 43: + PRINT_SMBIOS_BIT_FIELD (Struct, &(Struct->Type43->VendorID), VendorID, 4); + PRINT_STRUCT_VALUE_H (Struct, Type43, MajorSpecVersion); + PRINT_STRUCT_VALUE_H (Struct, Type43, MinorSpecVersion); + PRINT_STRUCT_VALUE_H (Struct, Type43, FirmwareVersion1); + PRINT_STRUCT_VALUE_H (Struct, Type43, FirmwareVersion2); + PRINT_SMBIOS_STRING (Struct, Struct->Type43->Description, Description); + PRINT_SMBIOS_BIT_FIELD (Struct, &(Struct->Type43->Characteristics), Characteristics, 8); + PRINT_STRUCT_VALUE_H (Struct, Type43, OemDefined); + break; + + // // Inactive (Type 126) // case 126: -- 2.11.0.windows.1