]> git.proxmox.com Git - mirror_edk2.git/blame - ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/SmbiosView.h
Update SmbiosView Shell command to display additional CPU Family
[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
187cb3dd 4 Copyright (c) 2005 - 2012, 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
5d73d92f 21typedef struct {\r
22 UINT16 Index;\r
23 UINT8 Type;\r
24 UINT16 Handle;\r
25 UINT16 Addr; // offset from table head\r
26 UINT16 Length; // total structure length\r
27} STRUCTURE_STATISTICS;\r
28\r
29/**\r
30 Query all structures Data from SMBIOS table and Display\r
31 the information to users as required display option.\r
32\r
33 @param[in] QueryType Structure type to view.\r
34 @param[in] QueryHandle Structure handle to view.\r
35 @param[in] Option Display option: none,outline,normal,detail.\r
36 @param[in] RandomView Support for -h parameter.\r
37\r
38 @retval EFI_SUCCESS print is successful.\r
39 @retval EFI_BAD_BUFFER_SIZE structure is out of the range of SMBIOS table.\r
40**/\r
41EFI_STATUS\r
42EFIAPI\r
43SMBiosView (\r
44 IN UINT8 QueryType,\r
45 IN UINT16 QueryHandle,\r
46 IN UINT8 Option,\r
47 IN BOOLEAN RandomView\r
48 );\r
49\r
50/**\r
51 Function to initialize the global mStatisticsTable object.\r
52\r
53 @retval EFI_SUCCESS print is successful.\r
54**/\r
55EFI_STATUS\r
56EFIAPI\r
57InitSmbiosTableStatistics (\r
58 VOID\r
59 );\r
60\r
61/**\r
62 Function to display the global mStatisticsTable object.\r
63\r
64 @param[in] Option ECHO, NORMAL, or DETAIL control the amount of detail displayed.\r
65\r
66 @retval EFI_SUCCESS print is successful.\r
67**/\r
68EFI_STATUS\r
69EFIAPI\r
70DisplayStatisticsTable (\r
71 IN UINT8 Option\r
72 );\r
73\r
74/**\r
75 function to return a string of the detail level.\r
76\r
77 @param[in] ShowType The detail level whose name is desired in clear text.\r
78\r
79 @return A pointer to a string representing the ShowType (or 'undefined type' if not known).\r
80**/\r
81CHAR16*\r
82EFIAPI\r
83GetShowTypeString (\r
84 UINT8 ShowType\r
85 );\r
86\r
87extern UINT8 gShowType;\r
88\r
89#endif\r