2 IPMI 2.0 definitions from the IPMI Specification Version 2.0, Revision 1.1.
4 This file contains all NetFn Chassis commands, including:
5 Chassis Commands (Chapter 28)
7 See IPMI specification, Appendix G, Command Assignments
8 and Appendix H, Sub-function Assignments.
10 Copyright (c) 1999 - 2015, Intel Corporation. All rights reserved.<BR>
11 This program and the accompanying materials
12 are licensed and made available under the terms and conditions of the BSD License
13 which accompanies this distribution. The full text of the license may be found at
14 http://opensource.org/licenses/bsd-license.php
16 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
17 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
20 #ifndef _IPMI_NET_FN_CHASSIS_H_
21 #define _IPMI_NET_FN_CHASSIS_H_
25 // Net function definition for Chassis command
27 #define IPMI_NETFN_CHASSIS 0x00
30 // Below is Definitions for Chassis commands (Chapter 28)
34 // Definitions for Get Chassis Capabilities command
36 #define IPMI_CHASSIS_GET_CAPABILITIES 0x00
39 // Constants and Structure definitions for "Get Chassis Capabilities" command to follow here
43 // Definitions for Get Chassis Status command
45 #define IPMI_CHASSIS_GET_STATUS 0x01
48 // Constants and Structure definitions for "Get Chassis Status" command to follow here
52 // Definitions for Chassis Control command
54 #define IPMI_CHASSIS_CONTROL 0x02
57 // Constants and Structure definitions for "Chassis Control" command to follow here
61 // Definitions for Chassis Reset command
63 #define IPMI_CHASSIS_RESET 0x03
66 // Constants and Structure definitions for "Chassis Reset" command to follow here
70 // Definitions for Chassis Identify command
72 #define IPMI_CHASSIS_IDENTIFY 0x04
75 // Constants and Structure definitions for "Chassis Identify" command to follow here
79 // Definitions for Set Chassis Capabilities command
81 #define IPMI_CHASSIS_SET_CAPABILITIES 0x05
84 // Constants and Structure definitions for "Set Chassis Capabilities" command to follow here
88 // Definitions for Set Power Restore Policy command
90 #define IPMI_CHASSIS_SET_POWER_RESTORE_POLICY 0x06
93 // Constants and Structure definitions for "Set Power Restore Policy" command to follow here
97 // Definitions for Get System Restart Cause command
99 #define IPMI_CHASSIS_GET_SYSTEM_RESTART_CAUSE 0x07
102 // Constants and Structure definitions for "Get System Restart Cause" command to follow here
106 ChassisControlCommand
,
108 PowerupViaPowerButton
,
111 AutoPowerOnAlwaysRestore
,
112 AutoPowerOnRestorePrevious
,
117 } IPMI_SYSTEM_RESTART_CAUSE
;
123 } GET_SYSTEM_RESTART_CAUSE_RESPONSE
;
126 // Definitions for Set System BOOT options command
128 #define IPMI_CHASSIS_SET_SYSTEM_BOOT_OPTIONS 0x08
131 // Constants and Structure definitions for "Set System boot options" command to follow here
134 UINT8 ParameterSelector
:7;
135 UINT8 MarkParameterInvalid
:1;
136 UINT8 ParameterData
[1];
137 } IPMI_SET_BOOT_OPTIONS_REQUEST
;
140 UINT8 CompletionCode
:8;
141 } IPMI_SET_BOOT_OPTIONS_RESPONSE
;
144 // Definitions for Get System BOOT options command
146 #define IPMI_CHASSIS_GET_SYSTEM_BOOT_OPTIONS 0x09
149 // Constants and Structure definitions for "Get System boot options" command to follow here
159 } IPMI_GET_THE_SYSTEM_BOOT_OPTIONS
;
162 UINT8 ParameterVersion
;
163 UINT8 ParameterValid
;
168 } IPMI_BOOT_INITIATOR
;
171 UINT8 ParameterSelector
;
174 } IPMI_GET_BOOT_OPTIONS_REQUEST
;
177 // Response Parameters for IPMI Get Boot Options
180 UINT8 SetInProgress
: 2;
182 } IPMI_BOOT_OPTIONS_RESPONSE_PARAMETER_0
;
185 UINT8 ServicePartitionSelector
;
186 } IPMI_BOOT_OPTIONS_RESPONSE_PARAMETER_1
;
189 UINT8 ServicePartitionDiscovered
:1;
190 UINT8 ServicePartitionScanRequest
:1;
192 } IPMI_BOOT_OPTIONS_RESPONSE_PARAMETER_2
;
195 UINT8 BmcBootFlagValid
: 5;
197 } IPMI_BOOT_OPTIONS_RESPONSE_PARAMETER_3
;
201 UINT8 BootInitiatorAcknowledgeData
;
202 } IPMI_BOOT_OPTIONS_RESPONSE_PARAMETER_4
;
204 #define BOOT_OPTION_HANDLED_BY_BIOS 0x01
211 UINT8 PersistentOptions
:1;
212 UINT8 BootFlagValid
:1;
218 UINT8 BootDeviceSelector
:4;
219 UINT8 LockKeyboard
:1;
224 UINT8 ConsoleRedirection
:2;
226 UINT8 UserPasswordBypass
:1;
227 UINT8 ForceProgressEventTrap
:1;
228 UINT8 BiosVerbosity
:2;
233 UINT8 BiosMuxControlOverride
:2;
234 UINT8 BiosSharedModeOverride
:1;
236 } IPMI_BOOT_OPTIONS_RESPONSE_PARAMETER_5
;
239 UINT8 ChannelNumber
:4;
242 UINT8 BootInfoTimeStamp
[4];
243 } IPMI_BOOT_OPTIONS_RESPONSE_PARAMETER_6
;
248 } IPMI_BOOT_OPTIONS_RESPONSE_PARAMETER_7
;
251 IPMI_BOOT_OPTIONS_RESPONSE_PARAMETER_0 Parm0
;
252 IPMI_BOOT_OPTIONS_RESPONSE_PARAMETER_1 Parm1
;
253 IPMI_BOOT_OPTIONS_RESPONSE_PARAMETER_2 Parm2
;
254 IPMI_BOOT_OPTIONS_RESPONSE_PARAMETER_3 Parm3
;
255 IPMI_BOOT_OPTIONS_RESPONSE_PARAMETER_4 Parm4
;
256 IPMI_BOOT_OPTIONS_RESPONSE_PARAMETER_5 Parm5
;
257 IPMI_BOOT_OPTIONS_RESPONSE_PARAMETER_6 Parm6
;
258 IPMI_BOOT_OPTIONS_RESPONSE_PARAMETER_7 Parm7
;
259 } IPMI_BOOT_OPTIONS_PARAMETERS
;
262 UINT8 ParameterVersion
:4;
264 UINT8 ParameterSelector
:7;
265 UINT8 ParameterValid
:1;
266 UINT8 ParameterData
[1];
267 } IPMI_GET_BOOT_OPTIONS_RESPONSE
;
270 // Definitions for Set front panel button enables command
272 #define IPMI_CHASSIS_SET_FP_BUTTON_ENABLES 0x0A
275 UINT8 DisablePoweroffButton
:1;
276 UINT8 DisableResetButton
:1;
277 UINT8 DisableDiagnosticInterruptButton
:1;
278 UINT8 DisableStandbyButton
:1;
280 } IPMI_SET_FRONT_PANEL_BUTTON_ENABLES_REQUEST
;
283 // Constants and Structure definitions for "Set front panel button enables" command to follow here
287 // Definitions for Set Power Cycle Interval command
289 #define IPMI_CHASSIS_SET_POWER_CYCLE_INTERVALS 0x0B
292 // Constants and Structure definitions for "Set Power Cycle Interval" command to follow here
296 // Definitions for Get POH Counter command
298 #define IPMI_CHASSIS_GET_POH_COUNTER 0x0F
301 // Constants and Structure definitions for "Get POH Counter" command to follow here