2 Tools of clarify the content of the smbios table.
4 Copyright (c) 2005 - 2015, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
9 #ifndef _SMBIOS_VIEW_H_
10 #define _SMBIOS_VIEW_H_
12 #define STRUCTURE_TYPE_RANDOM (UINT8) 0xFE
13 #define STRUCTURE_TYPE_INVALID (UINT8) 0xFF
19 UINT16 Addr
; // offset from table head
20 UINT16 Length
; // total structure length
21 } STRUCTURE_STATISTICS
;
24 Query all structures Data from SMBIOS table and Display
25 the information to users as required display option.
27 @param[in] QueryType Structure type to view.
28 @param[in] QueryHandle Structure handle to view.
29 @param[in] Option Display option: none,outline,normal,detail.
30 @param[in] RandomView Support for -h parameter.
32 @retval EFI_SUCCESS print is successful.
33 @retval EFI_BAD_BUFFER_SIZE structure is out of the range of SMBIOS table.
38 IN UINT16 QueryHandle
,
44 Query all structures Data from SMBIOS table and Display
45 the information to users as required display option.
47 @param[in] QueryType Structure type to view.
48 @param[in] QueryHandle Structure handle to view.
49 @param[in] Option Display option: none,outline,normal,detail.
50 @param[in] RandomView Support for -h parameter.
52 @retval EFI_SUCCESS print is successful.
53 @retval EFI_BAD_BUFFER_SIZE structure is out of the range of SMBIOS table.
58 IN UINT16 QueryHandle
,
64 Function to initialize the global mStatisticsTable object.
66 @retval EFI_SUCCESS print is successful.
69 InitSmbiosTableStatistics (
74 Function to initialize the global mSmbios64BitStatisticsTable object.
76 @retval EFI_SUCCESS print is successful.
79 InitSmbios64BitTableStatistics (
84 Function to display the global mStatisticsTable object.
86 @param[in] Option ECHO, NORMAL, or DETAIL control the amount of detail displayed.
88 @retval EFI_SUCCESS print is successful.
91 DisplayStatisticsTable (
96 Function to display the global mSmbios64BitStatisticsTable object.
98 @param[in] Option ECHO, NORMAL, or DETAIL control the amount of detail displayed.
100 @retval EFI_SUCCESS print is successful.
103 DisplaySmbios64BitStatisticsTable (
108 function to return a string of the detail level.
110 @param[in] ShowType The detail level whose name is desired in clear text.
112 @return A pointer to a string representing the ShowType (or 'undefined type' if not known).
119 extern UINT8 gShowType
;
121 extern UINTN mSmbios64BitTableLength
;