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.
44 IN UINT16 QueryHandle
,
50 Query all structures Data from SMBIOS table and Display
51 the information to users as required display option.
53 @param[in] QueryType Structure type to view.
54 @param[in] QueryHandle Structure handle to view.
55 @param[in] Option Display option: none,outline,normal,detail.
56 @param[in] RandomView Support for -h parameter.
58 @retval EFI_SUCCESS print is successful.
59 @retval EFI_BAD_BUFFER_SIZE structure is out of the range of SMBIOS table.
64 IN UINT16 QueryHandle
,
70 Function to initialize the global mStatisticsTable object.
72 @retval EFI_SUCCESS print is successful.
75 InitSmbiosTableStatistics (
80 Function to initialize the global mSmbios64BitStatisticsTable object.
82 @retval EFI_SUCCESS print is successful.
85 InitSmbios64BitTableStatistics (
90 Function to display the global mStatisticsTable object.
92 @param[in] Option ECHO, NORMAL, or DETAIL control the amount of detail displayed.
94 @retval EFI_SUCCESS print is successful.
97 DisplayStatisticsTable (
102 Function to display the global mSmbios64BitStatisticsTable object.
104 @param[in] Option ECHO, NORMAL, or DETAIL control the amount of detail displayed.
106 @retval EFI_SUCCESS print is successful.
109 DisplaySmbios64BitStatisticsTable (
114 function to return a string of the detail level.
116 @param[in] ShowType The detail level whose name is desired in clear text.
118 @return A pointer to a string representing the ShowType (or 'undefined type' if not known).
125 extern UINT8 gShowType
;
127 extern UINTN mSmbios64BitTableLength
;