2 Tools of clarify the content of the smbios table.
4 Copyright (c) 2005 - 2015, Intel Corporation. All rights reserved.<BR>
5 This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
15 #ifndef _SMBIOS_VIEW_H_
16 #define _SMBIOS_VIEW_H_
18 #define STRUCTURE_TYPE_RANDOM (UINT8) 0xFE
19 #define STRUCTURE_TYPE_INVALID (UINT8) 0xFF
25 UINT16 Addr
; // offset from table head
26 UINT16 Length
; // total structure length
27 } STRUCTURE_STATISTICS
;
30 Query all structures Data from SMBIOS table and Display
31 the information to users as required display option.
33 @param[in] QueryType Structure type to view.
34 @param[in] QueryHandle Structure handle to view.
35 @param[in] Option Display option: none,outline,normal,detail.
36 @param[in] RandomView Support for -h parameter.
38 @retval EFI_SUCCESS print is successful.
39 @retval EFI_BAD_BUFFER_SIZE structure is out of the range of SMBIOS table.
45 IN UINT16 QueryHandle
,
51 Query all structures Data from SMBIOS table and Display
52 the information to users as required display option.
54 @param[in] QueryType Structure type to view.
55 @param[in] QueryHandle Structure handle to view.
56 @param[in] Option Display option: none,outline,normal,detail.
57 @param[in] RandomView Support for -h parameter.
59 @retval EFI_SUCCESS print is successful.
60 @retval EFI_BAD_BUFFER_SIZE structure is out of the range of SMBIOS table.
66 IN UINT16 QueryHandle
,
72 Function to initialize the global mStatisticsTable object.
74 @retval EFI_SUCCESS print is successful.
78 InitSmbiosTableStatistics (
83 Function to initialize the global mSmbios64BitStatisticsTable object.
85 @retval EFI_SUCCESS print is successful.
89 InitSmbios64BitTableStatistics (
94 Function to display the global mStatisticsTable object.
96 @param[in] Option ECHO, NORMAL, or DETAIL control the amount of detail displayed.
98 @retval EFI_SUCCESS print is successful.
102 DisplayStatisticsTable (
107 Function to display the global mSmbios64BitStatisticsTable object.
109 @param[in] Option ECHO, NORMAL, or DETAIL control the amount of detail displayed.
111 @retval EFI_SUCCESS print is successful.
115 DisplaySmbios64BitStatisticsTable (
120 function to return a string of the detail level.
122 @param[in] ShowType The detail level whose name is desired in clear text.
124 @return A pointer to a string representing the ShowType (or 'undefined type' if not known).
132 extern UINT8 gShowType
;
134 extern UINTN mSmbios64BitTableLength
;