]> git.proxmox.com Git - mirror_edk2.git/blame - ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/SmbiosView.h
add comments to function declarations and definitions and updated to match coding...
[mirror_edk2.git] / ShellPkg / Library / UefiShellDebug1CommandsLib / SmbiosView / SmbiosView.h
CommitLineData
5d73d92f 1/** @file\r
2 Tools of clarify the content of the smbios table.\r
3\r
a1d4bfcc 4 Copyright (c) 2005 - 2011, Intel Corporation. All rights reserved.<BR>\r
5d73d92f 5 This program and the accompanying materials\r
6 are licensed and made available under the terms and conditions of the BSD License\r
7 which accompanies this distribution. The full text of the license may be found at\r
8 http://opensource.org/licenses/bsd-license.php\r
9\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13**/\r
14\r
a1d4bfcc 15#ifndef _SMBIOS_VIEW_H_\r
16#define _SMBIOS_VIEW_H_\r
5d73d92f 17\r
18#define STRUCTURE_TYPE_RANDOM (UINT8) 0xFE\r
19#define STRUCTURE_TYPE_INVALID (UINT8) 0xFF\r
20\r
21#define STRUCTURE_HANDLE_INVALID (UINT16) 0xFFFF\r
22\r
23typedef struct {\r
24 UINT16 Index;\r
25 UINT8 Type;\r
26 UINT16 Handle;\r
27 UINT16 Addr; // offset from table head\r
28 UINT16 Length; // total structure length\r
29} STRUCTURE_STATISTICS;\r
30\r
31/**\r
32 Query all structures Data from SMBIOS table and Display\r
33 the information to users as required display option.\r
34\r
35 @param[in] QueryType Structure type to view.\r
36 @param[in] QueryHandle Structure handle to view.\r
37 @param[in] Option Display option: none,outline,normal,detail.\r
38 @param[in] RandomView Support for -h parameter.\r
39\r
40 @retval EFI_SUCCESS print is successful.\r
41 @retval EFI_BAD_BUFFER_SIZE structure is out of the range of SMBIOS table.\r
42**/\r
43EFI_STATUS\r
44EFIAPI\r
45SMBiosView (\r
46 IN UINT8 QueryType,\r
47 IN UINT16 QueryHandle,\r
48 IN UINT8 Option,\r
49 IN BOOLEAN RandomView\r
50 );\r
51\r
52/**\r
53 Function to initialize the global mStatisticsTable object.\r
54\r
55 @retval EFI_SUCCESS print is successful.\r
56**/\r
57EFI_STATUS\r
58EFIAPI\r
59InitSmbiosTableStatistics (\r
60 VOID\r
61 );\r
62\r
63/**\r
64 Function to display the global mStatisticsTable object.\r
65\r
66 @param[in] Option ECHO, NORMAL, or DETAIL control the amount of detail displayed.\r
67\r
68 @retval EFI_SUCCESS print is successful.\r
69**/\r
70EFI_STATUS\r
71EFIAPI\r
72DisplayStatisticsTable (\r
73 IN UINT8 Option\r
74 );\r
75\r
76/**\r
77 function to return a string of the detail level.\r
78\r
79 @param[in] ShowType The detail level whose name is desired in clear text.\r
80\r
81 @return A pointer to a string representing the ShowType (or 'undefined type' if not known).\r
82**/\r
83CHAR16*\r
84EFIAPI\r
85GetShowTypeString (\r
86 UINT8 ShowType\r
87 );\r
88\r
89extern UINT8 gShowType;\r
90\r
91#endif\r