]> git.proxmox.com Git - mirror_edk2.git/blob - ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/PrintInfo.h
a6c8ef6ba8d771e931b3d449e24a356a7684d72a
[mirror_edk2.git] / ShellPkg / Library / UefiShellDebug1CommandsLib / SmbiosView / PrintInfo.h
1 /** @file
2 Module to clarify the element info of the smbios structure.
3
4 Copyright (c) 2005 - 2010, 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
9
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.
12
13 **/
14
15 #ifndef _SMBIOS_PRINT_INFO_H
16 #define _SMBIOS_PRINT_INFO_H
17
18 #include "LibSmbios.h"
19
20 extern UINT8 SmbiosMajorVersion;
21 extern UINT8 SmbiosMinorVersion;
22
23 #define SHOW_NONE 0x00
24 #define SHOW_OUTLINE 0x01
25 #define SHOW_NORMAL 0x02
26 #define SHOW_DETAIL 0x03
27 //
28 // SHOW_ALL: WaitEnter() not wait input.
29 //
30 #define SHOW_ALL 0x04
31 #define SHOW_STATISTICS 0x05
32
33 #define AS_UINT16(pData) (*((UINT16 *) pData))
34 #define AS_UINT32(pData) (*((UINT32 *) pData))
35 #define AS_UINT64(pData) (*((UINT64 *) pData))
36
37 VOID
38 SmbiosPrintEPSInfo (
39 IN SMBIOS_STRUCTURE_TABLE *pSmbiosTable,
40 IN UINT8 Option
41 );
42
43 EFI_STATUS
44 SmbiosPrintStructure (
45 IN SMBIOS_STRUCTURE_POINTER *pStruct,
46 IN UINT8 Option
47 );
48
49 //
50 // BIOS Information (Type 0)
51 //
52 VOID
53 DisplayBiosCharacteristics (
54 UINT64 chara,
55 UINT8 Option
56 );
57 VOID
58 DisplayBiosCharacteristicsExt1 (
59 UINT8 byte1,
60 UINT8 Option
61 );
62 VOID
63 DisplayBiosCharacteristicsExt2 (
64 UINT8 byte2,
65 UINT8 Option
66 );
67
68 //
69 // Processor Information (Type 4)
70 //
71 VOID
72 DisplayProcessorFamily (
73 UINT8 Family,
74 UINT8 Option
75 );
76
77 VOID
78 DisplayProcessorFamily2 (
79 UINT16 Family2,
80 UINT8 Option
81 );
82
83 VOID
84 DisplayProcessorVoltage (
85 UINT8 Voltage,
86 UINT8 Option
87 );
88 VOID
89 DisplayProcessorStatus (
90 UINT8 Status,
91 UINT8 Option
92 );
93
94 //
95 // Memory Controller Information (Type 5)
96 //
97 VOID
98 DisplayMaxMemoryModuleSize (
99 UINT8 Size,
100 UINT8 SlotNum,
101 UINT8 Option
102 );
103 VOID
104 DisplayMemoryModuleConfigHandles (
105 UINT16 *pHandles,
106 UINT8 SlotNum,
107 UINT8 Option
108 );
109
110 //
111 // Memory Module Information (Type 6)
112 //
113 VOID
114 DisplayMmBankConnections (
115 UINT8 BankConnections,
116 UINT8 Option
117 );
118 VOID
119 DisplayMmMemorySize (
120 UINT8 Size,
121 UINT8 Option
122 );
123
124 //
125 // System Slots (Type 9)
126 //
127 VOID
128 DisplaySystemSlotId (
129 UINT16 SlotId,
130 UINT8 SlotType,
131 UINT8 Option
132 );
133
134 //
135 // Physical Memory Array (Type 16)
136 // Memory Device (Type 17)
137 // Memory Array Mapped Address (Type 19)
138 // Memory Device Mapped Address (Type 20)
139 // Portable Battery (Type 22)
140 //
141 VOID
142 DisplaySBDSManufactureDate (
143 UINT16 Date,
144 UINT8 Option
145 );
146
147 //
148 // System Reset (Type 23)
149 //
150 VOID
151 DisplaySystemResetCapabilities (
152 UINT8 Reset,
153 UINT8 Option
154 );
155
156 //
157 // Hardware Security (Type 24)
158 //
159 VOID
160 DisplayHardwareSecuritySettings (
161 UINT8 Settings,
162 UINT8 Option
163 );
164
165 //
166 // Out-of-Band Remote Access (Type 30)
167 //
168 VOID
169 DisplayOBRAConnections (
170 UINT8 Connections,
171 UINT8 Option
172 );
173
174 //
175 // System Boot Information (Type 32)
176 //
177 VOID
178 DisplaySystemBootStatus (
179 UINT8 Parameter,
180 UINT8 Option
181 );
182
183 //
184 // System Power Supply (Type 39)
185 //
186 VOID
187 DisplaySPSCharacteristics (
188 UINT16 Characteristics,
189 UINT8 Option
190 );
191
192 #endif