]>
git.proxmox.com Git - mirror_edk2.git/blob - ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/SmbiosView.h
2 Tools of clarify the content of the smbios table.
4 Copyright (c) 2005 - 2011, 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
21 #define STRUCTURE_HANDLE_INVALID (UINT16) 0xFFFF
27 UINT16 Addr
; // offset from table head
28 UINT16 Length
; // total structure length
29 } STRUCTURE_STATISTICS
;
32 Query all structures Data from SMBIOS table and Display
33 the information to users as required display option.
35 @param[in] QueryType Structure type to view.
36 @param[in] QueryHandle Structure handle to view.
37 @param[in] Option Display option: none,outline,normal,detail.
38 @param[in] RandomView Support for -h parameter.
40 @retval EFI_SUCCESS print is successful.
41 @retval EFI_BAD_BUFFER_SIZE structure is out of the range of SMBIOS table.
47 IN UINT16 QueryHandle
,
53 Function to initialize the global mStatisticsTable object.
55 @retval EFI_SUCCESS print is successful.
59 InitSmbiosTableStatistics (
64 Function to display the global mStatisticsTable object.
66 @param[in] Option ECHO, NORMAL, or DETAIL control the amount of detail displayed.
68 @retval EFI_SUCCESS print is successful.
72 DisplayStatisticsTable (
77 function to return a string of the detail level.
79 @param[in] ShowType The detail level whose name is desired in clear text.
81 @return A pointer to a string representing the ShowType (or 'undefined type' if not known).
89 extern UINT8 gShowType
;