]>
Commit | Line | Data |
---|---|---|
e59a797f DB |
1 | /** @file\r |
2 | IPMI 2.0 definitions from the IPMI Specification Version 2.0, Revision 1.1.\r | |
3 | \r | |
4 | This file contains all NetFn Chassis commands, including:\r | |
5 | Chassis Commands (Chapter 28)\r | |
6 | \r | |
7 | See IPMI specification, Appendix G, Command Assignments\r | |
8 | and Appendix H, Sub-function Assignments.\r | |
9 | \r | |
10 | Copyright (c) 1999 - 2015, Intel Corporation. All rights reserved.<BR>\r | |
11 | This program and the accompanying materials\r | |
12 | are licensed and made available under the terms and conditions of the BSD License\r | |
13 | which accompanies this distribution. The full text of the license may be found at\r | |
14 | http://opensource.org/licenses/bsd-license.php\r | |
15 | \r | |
16 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
17 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
18 | **/\r | |
19 | \r | |
20 | #ifndef _IPMI_NET_FN_CHASSIS_H_\r | |
21 | #define _IPMI_NET_FN_CHASSIS_H_\r | |
22 | \r | |
23 | #pragma pack (1)\r | |
24 | //\r | |
25 | // Net function definition for Chassis command\r | |
26 | //\r | |
27 | #define IPMI_NETFN_CHASSIS 0x00\r | |
28 | \r | |
29 | //\r | |
30 | // Below is Definitions for Chassis commands (Chapter 28)\r | |
31 | //\r | |
32 | \r | |
33 | //\r | |
34 | // Definitions for Get Chassis Capabilities command\r | |
35 | //\r | |
36 | #define IPMI_CHASSIS_GET_CAPABILITIES 0x00\r | |
37 | \r | |
38 | //\r | |
39 | // Constants and Structure definitions for "Get Chassis Capabilities" command to follow here\r | |
40 | //\r | |
41 | \r | |
42 | //\r | |
43 | // Definitions for Get Chassis Status command\r | |
44 | //\r | |
45 | #define IPMI_CHASSIS_GET_STATUS 0x01\r | |
46 | \r | |
47 | //\r | |
48 | // Constants and Structure definitions for "Get Chassis Status" command to follow here\r | |
49 | //\r | |
50 | \r | |
51 | //\r | |
52 | // Definitions for Chassis Control command\r | |
53 | //\r | |
54 | #define IPMI_CHASSIS_CONTROL 0x02\r | |
55 | \r | |
56 | //\r | |
57 | // Constants and Structure definitions for "Chassis Control" command to follow here\r | |
58 | //\r | |
59 | \r | |
60 | //\r | |
61 | // Definitions for Chassis Reset command\r | |
62 | //\r | |
63 | #define IPMI_CHASSIS_RESET 0x03\r | |
64 | \r | |
65 | //\r | |
66 | // Constants and Structure definitions for "Chassis Reset" command to follow here\r | |
67 | //\r | |
68 | \r | |
69 | //\r | |
70 | // Definitions for Chassis Identify command\r | |
71 | //\r | |
72 | #define IPMI_CHASSIS_IDENTIFY 0x04\r | |
73 | \r | |
74 | //\r | |
75 | // Constants and Structure definitions for "Chassis Identify" command to follow here\r | |
76 | //\r | |
77 | \r | |
78 | //\r | |
79 | // Definitions for Set Chassis Capabilities command\r | |
80 | //\r | |
81 | #define IPMI_CHASSIS_SET_CAPABILITIES 0x05\r | |
82 | \r | |
83 | //\r | |
84 | // Constants and Structure definitions for "Set Chassis Capabilities" command to follow here\r | |
85 | //\r | |
86 | \r | |
87 | //\r | |
88 | // Definitions for Set Power Restore Policy command\r | |
89 | //\r | |
90 | #define IPMI_CHASSIS_SET_POWER_RESTORE_POLICY 0x06\r | |
91 | \r | |
92 | //\r | |
93 | // Constants and Structure definitions for "Set Power Restore Policy" command to follow here\r | |
94 | //\r | |
95 | \r | |
96 | //\r | |
97 | // Definitions for Get System Restart Cause command\r | |
98 | //\r | |
99 | #define IPMI_CHASSIS_GET_SYSTEM_RESTART_CAUSE 0x07\r | |
100 | \r | |
101 | //\r | |
102 | // Constants and Structure definitions for "Get System Restart Cause" command to follow here\r | |
103 | //\r | |
104 | typedef enum {\r | |
105 | Unknown,\r | |
106 | ChassisControlCommand,\r | |
107 | ResetViaPushButton,\r | |
108 | PowerupViaPowerButton,\r | |
109 | WatchdogExpiration,\r | |
110 | Oem,\r | |
111 | AutoPowerOnAlwaysRestore,\r | |
112 | AutoPowerOnRestorePrevious,\r | |
113 | ResetViaPef,\r | |
114 | PowerCycleViaPef,\r | |
115 | SoftReset,\r | |
116 | PowerUpViaRtc\r | |
117 | } IPMI_SYSTEM_RESTART_CAUSE;\r | |
118 | \r | |
119 | typedef struct {\r | |
aeff1d6e DB |
120 | UINT8 CompletionCode;\r |
121 | UINT8 Cause:4;\r | |
122 | UINT8 Reserved:4;\r | |
123 | UINT8 ChannelNumber;\r | |
124 | } IPMI_GET_SYSTEM_RESTART_CAUSE_RESPONSE;\r | |
e59a797f DB |
125 | \r |
126 | //\r | |
127 | // Definitions for Set System BOOT options command\r | |
128 | //\r | |
129 | #define IPMI_CHASSIS_SET_SYSTEM_BOOT_OPTIONS 0x08\r | |
130 | \r | |
131 | //\r | |
132 | // Constants and Structure definitions for "Set System boot options" command to follow here\r | |
133 | //\r | |
134 | typedef struct {\r | |
135 | UINT8 ParameterSelector:7;\r | |
136 | UINT8 MarkParameterInvalid:1;\r | |
137 | UINT8 ParameterData[1];\r | |
138 | } IPMI_SET_BOOT_OPTIONS_REQUEST;\r | |
139 | \r | |
e59a797f DB |
140 | //\r |
141 | // Definitions for Get System BOOT options command\r | |
142 | //\r | |
143 | #define IPMI_CHASSIS_GET_SYSTEM_BOOT_OPTIONS 0x09\r | |
144 | \r | |
145 | //\r | |
146 | // Constants and Structure definitions for "Get System boot options" command to follow here\r | |
147 | //\r | |
aeff1d6e DB |
148 | typedef struct {\r |
149 | UINT8 ParameterSelector:7;\r | |
150 | UINT8 Reserved:1;\r | |
151 | UINT8 SetSelector;\r | |
152 | UINT8 BlockSelector;\r | |
153 | } IPMI_GET_BOOT_OPTIONS_REQUEST;\r | |
154 | \r | |
e59a797f DB |
155 | typedef struct {\r |
156 | UINT8 Parameter;\r | |
157 | UINT8 Valid;\r | |
158 | UINT8 Data1;\r | |
159 | UINT8 Data2;\r | |
160 | UINT8 Data3;\r | |
161 | UINT8 Data4;\r | |
162 | UINT8 Data5;\r | |
163 | } IPMI_GET_THE_SYSTEM_BOOT_OPTIONS;\r | |
164 | \r | |
165 | typedef struct {\r | |
166 | UINT8 ParameterVersion;\r | |
167 | UINT8 ParameterValid;\r | |
168 | UINT8 ChannelNumber;\r | |
169 | UINT32 SessionId;\r | |
170 | UINT32 TimeStamp;\r | |
171 | UINT8 Reserved[3];\r | |
172 | } IPMI_BOOT_INITIATOR;\r | |
173 | \r | |
e59a797f DB |
174 | //\r |
175 | // Response Parameters for IPMI Get Boot Options\r | |
176 | //\r | |
177 | typedef struct {\r | |
178 | UINT8 SetInProgress: 2;\r | |
179 | UINT8 Reserved: 6;\r | |
180 | } IPMI_BOOT_OPTIONS_RESPONSE_PARAMETER_0;\r | |
181 | \r | |
182 | typedef struct {\r | |
183 | UINT8 ServicePartitionSelector;\r | |
184 | } IPMI_BOOT_OPTIONS_RESPONSE_PARAMETER_1;\r | |
185 | \r | |
186 | typedef struct {\r | |
187 | UINT8 ServicePartitionDiscovered:1;\r | |
188 | UINT8 ServicePartitionScanRequest:1;\r | |
189 | UINT8 Reserved: 5;\r | |
190 | } IPMI_BOOT_OPTIONS_RESPONSE_PARAMETER_2;\r | |
191 | \r | |
192 | typedef struct {\r | |
193 | UINT8 BmcBootFlagValid: 5;\r | |
194 | UINT8 Reserved: 3;\r | |
195 | } IPMI_BOOT_OPTIONS_RESPONSE_PARAMETER_3;\r | |
196 | \r | |
197 | typedef struct {\r | |
198 | UINT8 WriteMask;\r | |
199 | UINT8 BootInitiatorAcknowledgeData;\r | |
200 | } IPMI_BOOT_OPTIONS_RESPONSE_PARAMETER_4;\r | |
201 | \r | |
202 | #define BOOT_OPTION_HANDLED_BY_BIOS 0x01\r | |
203 | \r | |
204 | typedef struct {\r | |
205 | //\r | |
206 | // Data 1\r | |
207 | //\r | |
208 | UINT8 Reserved0:6;\r | |
209 | UINT8 PersistentOptions:1;\r | |
210 | UINT8 BootFlagValid:1;\r | |
211 | //\r | |
212 | // Data 2\r | |
213 | //\r | |
214 | UINT8 LockReset:1;\r | |
215 | UINT8 ScreenBlank:1;\r | |
216 | UINT8 BootDeviceSelector:4;\r | |
217 | UINT8 LockKeyboard:1;\r | |
218 | UINT8 CmosClear:1;\r | |
219 | //\r | |
220 | //\r | |
221 | // Data 3\r | |
222 | UINT8 ConsoleRedirection:2;\r | |
223 | UINT8 LockSleep:1;\r | |
224 | UINT8 UserPasswordBypass:1;\r | |
225 | UINT8 ForceProgressEventTrap:1;\r | |
226 | UINT8 BiosVerbosity:2;\r | |
227 | UINT8 LockPower:1;\r | |
228 | //\r | |
229 | // Data 4\r | |
230 | //\r | |
231 | UINT8 BiosMuxControlOverride:2;\r | |
232 | UINT8 BiosSharedModeOverride:1;\r | |
233 | UINT8 Reserved1:4;\r | |
234 | } IPMI_BOOT_OPTIONS_RESPONSE_PARAMETER_5;\r | |
235 | \r | |
236 | typedef struct {\r | |
237 | UINT8 ChannelNumber:4;\r | |
238 | UINT8 Reserved:4;\r | |
239 | UINT8 SessionId[4];\r | |
240 | UINT8 BootInfoTimeStamp[4];\r | |
241 | } IPMI_BOOT_OPTIONS_RESPONSE_PARAMETER_6;\r | |
242 | \r | |
243 | typedef struct {\r | |
244 | UINT8 SetSelector;\r | |
245 | UINT8 BlockData[16];\r | |
246 | } IPMI_BOOT_OPTIONS_RESPONSE_PARAMETER_7;\r | |
247 | \r | |
248 | typedef union {\r | |
249 | IPMI_BOOT_OPTIONS_RESPONSE_PARAMETER_0 Parm0;\r | |
250 | IPMI_BOOT_OPTIONS_RESPONSE_PARAMETER_1 Parm1;\r | |
251 | IPMI_BOOT_OPTIONS_RESPONSE_PARAMETER_2 Parm2;\r | |
252 | IPMI_BOOT_OPTIONS_RESPONSE_PARAMETER_3 Parm3;\r | |
253 | IPMI_BOOT_OPTIONS_RESPONSE_PARAMETER_4 Parm4;\r | |
254 | IPMI_BOOT_OPTIONS_RESPONSE_PARAMETER_5 Parm5;\r | |
255 | IPMI_BOOT_OPTIONS_RESPONSE_PARAMETER_6 Parm6;\r | |
256 | IPMI_BOOT_OPTIONS_RESPONSE_PARAMETER_7 Parm7;\r | |
257 | } IPMI_BOOT_OPTIONS_PARAMETERS;\r | |
258 | \r | |
259 | typedef struct {\r | |
aeff1d6e | 260 | UINT8 CompletionCode;\r |
e59a797f DB |
261 | UINT8 ParameterVersion:4;\r |
262 | UINT8 Reserved:4;\r | |
263 | UINT8 ParameterSelector:7;\r | |
264 | UINT8 ParameterValid:1;\r | |
265 | UINT8 ParameterData[1];\r | |
266 | } IPMI_GET_BOOT_OPTIONS_RESPONSE;\r | |
267 | \r | |
268 | //\r | |
269 | // Definitions for Set front panel button enables command\r | |
270 | //\r | |
aeff1d6e | 271 | #define IPMI_CHASSIS_SET_FRONT_PANEL_BUTTON_ENABLES 0x0A\r |
e59a797f DB |
272 | \r |
273 | typedef struct {\r | |
274 | UINT8 DisablePoweroffButton:1;\r | |
275 | UINT8 DisableResetButton:1;\r | |
276 | UINT8 DisableDiagnosticInterruptButton:1;\r | |
277 | UINT8 DisableStandbyButton:1;\r | |
278 | UINT8 Reserved:4;\r | |
aeff1d6e | 279 | } IPMI_CHASSIS_SET_FRONT_PANEL_BUTTON_ENABLES_REQUEST;\r |
e59a797f DB |
280 | \r |
281 | //\r | |
282 | // Constants and Structure definitions for "Set front panel button enables" command to follow here\r | |
283 | //\r | |
284 | \r | |
285 | //\r | |
286 | // Definitions for Set Power Cycle Interval command\r | |
287 | //\r | |
288 | #define IPMI_CHASSIS_SET_POWER_CYCLE_INTERVALS 0x0B\r | |
289 | \r | |
290 | //\r | |
291 | // Constants and Structure definitions for "Set Power Cycle Interval" command to follow here\r | |
292 | //\r | |
293 | \r | |
294 | //\r | |
295 | // Definitions for Get POH Counter command\r | |
296 | //\r | |
297 | #define IPMI_CHASSIS_GET_POH_COUNTER 0x0F\r | |
298 | \r | |
299 | //\r | |
300 | // Constants and Structure definitions for "Get POH Counter" command to follow here\r | |
301 | //\r | |
302 | #pragma pack()\r | |
303 | #endif\r |