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 <elvin.li@intel.com> Reviewed-by: Jaben Carsey <jaben.carsey@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17060 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
/** @file
|
||||
Tools of clarify the content of the smbios table.
|
||||
|
||||
Copyright (c) 2005 - 2012, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2005 - 2015, Intel Corporation. All rights reserved.<BR>
|
||||
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
|
||||
|
Reference in New Issue
Block a user