From ec8a502e66fe190a77546e82820e921cfa9d05e0 Mon Sep 17 00:00:00 2001 From: Elvin Li Date: Tue, 17 Mar 2015 08:12:59 +0000 Subject: ShellPkg: update smbiosview for SMBIOS 3.0. smbiosview can dump 64-bit entry point and table as long as SMBIOS 3.0 table exists in system configuration table. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Elvin Li Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17060 6f19259b-4bc3-4df7-8a09-765794883524 --- .../SmbiosView/SmbiosView.h | 49 +++++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) (limited to 'ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/SmbiosView.h') diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/SmbiosView.h b/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/SmbiosView.h index 638917ae8b..647fd5fe26 100644 --- a/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/SmbiosView.h +++ b/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/SmbiosView.h @@ -1,7 +1,7 @@ /** @file Tools of clarify the content of the smbios table. - Copyright (c) 2005 - 2012, Intel Corporation. All rights reserved.
+ Copyright (c) 2005 - 2015, Intel Corporation. All rights reserved.
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 @@ -47,6 +47,27 @@ SMBiosView ( IN BOOLEAN RandomView ); +/** + Query all structures Data from SMBIOS table and Display + the information to users as required display option. + + @param[in] QueryType Structure type to view. + @param[in] QueryHandle Structure handle to view. + @param[in] Option Display option: none,outline,normal,detail. + @param[in] RandomView Support for -h parameter. + + @retval EFI_SUCCESS print is successful. + @retval EFI_BAD_BUFFER_SIZE structure is out of the range of SMBIOS table. +**/ +EFI_STATUS +EFIAPI +SMBios64View ( + IN UINT8 QueryType, + IN UINT16 QueryHandle, + IN UINT8 Option, + IN BOOLEAN RandomView + ); + /** Function to initialize the global mStatisticsTable object. @@ -58,6 +79,17 @@ InitSmbiosTableStatistics ( VOID ); +/** + Function to initialize the global mSmbios64BitStatisticsTable object. + + @retval EFI_SUCCESS print is successful. +**/ +EFI_STATUS +EFIAPI +InitSmbios64BitTableStatistics ( + VOID + ); + /** Function to display the global mStatisticsTable object. @@ -71,6 +103,19 @@ DisplayStatisticsTable ( IN UINT8 Option ); +/** + Function to display the global mSmbios64BitStatisticsTable object. + + @param[in] Option ECHO, NORMAL, or DETAIL control the amount of detail displayed. + + @retval EFI_SUCCESS print is successful. +**/ +EFI_STATUS +EFIAPI +DisplaySmbios64BitStatisticsTable ( + IN UINT8 Option + ); + /** function to return a string of the detail level. @@ -86,4 +131,6 @@ GetShowTypeString ( extern UINT8 gShowType; +extern UINTN mSmbios64BitTableLength; + #endif -- cgit v1.2.3