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 - 2018, 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 UINT8 CapabilitiesFlags
;
44 UINT8 ChassisFruInfoDeviceAddress
;
45 UINT8 ChassisSDRDeviceAddress
;
46 UINT8 ChassisSELDeviceAddress
;
47 UINT8 ChassisSystemManagementDeviceAddress
;
48 UINT8 ChassisBridgeDeviceAddress
;
49 } IPMI_GET_CHASSIS_CAPABILITIES_RESPONSE
;
52 // Definitions for Get Chassis Status command
54 #define IPMI_CHASSIS_GET_STATUS 0x01
57 // Constants and Structure definitions for "Get Chassis Status" command to follow here
61 UINT8 CurrentPowerState
;
63 UINT8 MiscChassisState
;
64 UINT8 FrontPanelButtonCapabilities
;
65 } IPMI_GET_CHASSIS_STATUS_RESPONSE
;
68 // Definitions for Chassis Control command
70 #define IPMI_CHASSIS_CONTROL 0x02
73 // Constants and Structure definitions for "Chassis Control" command to follow here
76 UINT8 ChassisControl
:4;
78 } IPMI_CHASSIS_CONTROL_REQUEST
;
81 // Definitions for Chassis Reset command
83 #define IPMI_CHASSIS_RESET 0x03
86 // Constants and Structure definitions for "Chassis Reset" command to follow here
90 // Definitions for Chassis Identify command
92 #define IPMI_CHASSIS_IDENTIFY 0x04
95 // Constants and Structure definitions for "Chassis Identify" command to follow here
99 // Definitions for Set Chassis Capabilities command
101 #define IPMI_CHASSIS_SET_CAPABILITIES 0x05
104 // Constants and Structure definitions for "Set Chassis Capabilities" command to follow here
108 // Definitions for Set Power Restore Policy command
110 #define IPMI_CHASSIS_SET_POWER_RESTORE_POLICY 0x06
113 // Constants and Structure definitions for "Set Power Restore Policy" command to follow here
116 UINT8 PowerRestorePolicy
:3;
118 } IPMI_SET_POWER_RESTORE_POLICY_REQUEST
;
121 UINT8 CompletionCode
;
122 UINT8 PowerRestorePolicySupport
;
123 } IPMI_SET_POWER_RESTORE_POLICY_RESPONSE
;
126 // Definitions for Get System Restart Cause command
128 #define IPMI_CHASSIS_GET_SYSTEM_RESTART_CAUSE 0x07
131 // Constants and Structure definitions for "Get System Restart Cause" command to follow here
135 ChassisControlCommand
,
137 PowerupViaPowerButton
,
140 AutoPowerOnAlwaysRestore
,
141 AutoPowerOnRestorePrevious
,
146 } IPMI_SYSTEM_RESTART_CAUSE
;
149 UINT8 CompletionCode
;
153 } IPMI_GET_SYSTEM_RESTART_CAUSE_RESPONSE
;
156 // Definitions for Set System BOOT options command
158 #define IPMI_CHASSIS_SET_SYSTEM_BOOT_OPTIONS 0x08
161 // Constants and Structure definitions for "Set System boot options" command to follow here
164 UINT8 ParameterSelector
:7;
165 UINT8 MarkParameterInvalid
:1;
166 UINT8 ParameterData
[1];
167 } IPMI_SET_BOOT_OPTIONS_REQUEST
;
170 // Definitions for Get System Boot options command
172 #define IPMI_CHASSIS_GET_SYSTEM_BOOT_OPTIONS 0x09
175 // Constants and Structure definitions for "Get System boot options" command to follow here
178 UINT8 ParameterSelector
:7;
182 } IPMI_GET_BOOT_OPTIONS_REQUEST
;
192 } IPMI_GET_THE_SYSTEM_BOOT_OPTIONS
;
195 UINT8 ParameterVersion
;
196 UINT8 ParameterValid
;
201 } IPMI_BOOT_INITIATOR
;
204 // Definitions for boot option parameter selector
206 #define IPMI_BOOT_OPTIONS_PARAMETER_SELECTOR_SET_IN_PROGRESS 0x0
207 #define IPMI_BOOT_OPTIONS_PARAMETER_SELECTOR_SERVICE_PARTITION_SELECTOR 0x1
208 #define IPMI_BOOT_OPTIONS_PARAMETER_SELECTOR_SERVICE_PARTITION_SCAN 0x2
209 #define IPMI_BOOT_OPTIONS_PARAMETER_SELECTOR_BMC_BOOT_FLAG 0x3
210 #define IPMI_BOOT_OPTIONS_PARAMETER_BOOT_INFO_ACK 0x4
211 #define IPMI_BOOT_OPTIONS_PARAMETER_BOOT_FLAGS 0x5
212 #define IPMI_BOOT_OPTIONS_PARAMETER_BOOT_INITIATOR_INFO 0x6
213 #define IPMI_BOOT_OPTIONS_PARAMETER_BOOT_INITIATOR_MAILBOX 0x7
214 #define IPMI_BOOT_OPTIONS_PARAMETER_OEM_BEGIN 0x60
215 #define IPMI_BOOT_OPTIONS_PARAMETER_OEM_END 0x7F
218 // Response Parameters for IPMI Get Boot Options
221 UINT8 SetInProgress
: 2;
223 } IPMI_BOOT_OPTIONS_RESPONSE_PARAMETER_0
;
226 UINT8 ServicePartitionSelector
;
227 } IPMI_BOOT_OPTIONS_RESPONSE_PARAMETER_1
;
230 UINT8 ServicePartitionDiscovered
:1;
231 UINT8 ServicePartitionScanRequest
:1;
233 } IPMI_BOOT_OPTIONS_RESPONSE_PARAMETER_2
;
236 UINT8 BmcBootFlagValid
: 5;
238 } IPMI_BOOT_OPTIONS_RESPONSE_PARAMETER_3
;
242 UINT8 BootInitiatorAcknowledgeData
;
243 } IPMI_BOOT_OPTIONS_RESPONSE_PARAMETER_4
;
246 // Definitions for the 'Boot device selector' field of Boot Option Parameters #5
248 #define IPMI_BOOT_DEVICE_SELECTOR_NO_OVERRIDE 0x0
249 #define IPMI_BOOT_DEVICE_SELECTOR_PXE 0x1
250 #define IPMI_BOOT_DEVICE_SELECTOR_HARDDRIVE 0x2
251 #define IPMI_BOOT_DEVICE_SELECTOR_HARDDRIVE_SAFE_MODE 0x3
252 #define IPMI_BOOT_DEVICE_SELECTOR_DIAGNOSTIC_PARTITION 0x4
253 #define IPMI_BOOT_DEVICE_SELECTOR_CD_DVD 0x5
254 #define IPMI_BOOT_DEVICE_SELECTOR_BIOS_SETUP 0x6
255 #define IPMI_BOOT_DEVICE_SELECTOR_REMOTE_FLOPPY 0x7
256 #define IPMI_BOOT_DEVICE_SELECTOR_REMOTE_CD_DVD 0x8
257 #define IPMI_BOOT_DEVICE_SELECTOR_PRIMARY_REMOTE_MEDIA 0x9
258 #define IPMI_BOOT_DEVICE_SELECTOR_REMOTE_HARDDRIVE 0xB
259 #define IPMI_BOOT_DEVICE_SELECTOR_FLOPPY 0xF
261 #define BOOT_OPTION_HANDLED_BY_BIOS 0x01
264 // Constant definitions for the 'BIOS Mux Control Override' field of Boot Option Parameters #5
266 #define BIOS_MUX_CONTROL_OVERRIDE_RECOMMEND_SETTING 0x00
267 #define BIOS_MUX_CONTROL_OVERRIDE_FORCE_TO_BMC 0x01
268 #define BIOS_MUX_CONTROL_OVERRIDE_FORCE_TO_SYSTEM 0x02
275 UINT8 BiosBootType
:1;
276 UINT8 PersistentOptions
:1;
277 UINT8 BootFlagValid
:1;
283 UINT8 BootDeviceSelector
:4;
284 UINT8 LockKeyboard
:1;
289 UINT8 ConsoleRedirection
:2;
291 UINT8 UserPasswordBypass
:1;
292 UINT8 ForceProgressEventTrap
:1;
293 UINT8 BiosVerbosity
:2;
298 UINT8 BiosMuxControlOverride
:3;
299 UINT8 BiosSharedModeOverride
:1;
304 UINT8 DeviceInstanceSelector
:5;
306 } IPMI_BOOT_OPTIONS_RESPONSE_PARAMETER_5
;
309 UINT8 ChannelNumber
:4;
312 UINT8 BootInfoTimeStamp
[4];
313 } IPMI_BOOT_OPTIONS_RESPONSE_PARAMETER_6
;
318 } IPMI_BOOT_OPTIONS_RESPONSE_PARAMETER_7
;
321 IPMI_BOOT_OPTIONS_RESPONSE_PARAMETER_0 Parm0
;
322 IPMI_BOOT_OPTIONS_RESPONSE_PARAMETER_1 Parm1
;
323 IPMI_BOOT_OPTIONS_RESPONSE_PARAMETER_2 Parm2
;
324 IPMI_BOOT_OPTIONS_RESPONSE_PARAMETER_3 Parm3
;
325 IPMI_BOOT_OPTIONS_RESPONSE_PARAMETER_4 Parm4
;
326 IPMI_BOOT_OPTIONS_RESPONSE_PARAMETER_5 Parm5
;
327 IPMI_BOOT_OPTIONS_RESPONSE_PARAMETER_6 Parm6
;
328 IPMI_BOOT_OPTIONS_RESPONSE_PARAMETER_7 Parm7
;
329 } IPMI_BOOT_OPTIONS_PARAMETERS
;
332 UINT8 CompletionCode
;
333 UINT8 ParameterVersion
:4;
335 UINT8 ParameterSelector
:7;
336 UINT8 ParameterValid
:1;
337 UINT8 ParameterData
[1];
338 } IPMI_GET_BOOT_OPTIONS_RESPONSE
;
341 // Definitions for Set front panel button enables command
343 #define IPMI_CHASSIS_SET_FRONT_PANEL_BUTTON_ENABLES 0x0A
346 UINT8 DisablePoweroffButton
:1;
347 UINT8 DisableResetButton
:1;
348 UINT8 DisableDiagnosticInterruptButton
:1;
349 UINT8 DisableStandbyButton
:1;
351 } IPMI_CHASSIS_SET_FRONT_PANEL_BUTTON_ENABLES_REQUEST
;
354 // Constants and Structure definitions for "Set front panel button enables" command to follow here
358 // Definitions for Set Power Cycle Interval command
360 #define IPMI_CHASSIS_SET_POWER_CYCLE_INTERVALS 0x0B
363 // Constants and Structure definitions for "Set Power Cycle Interval" command to follow here
367 // Definitions for Get POH Counter command
369 #define IPMI_CHASSIS_GET_POH_COUNTER 0x0F
372 // Constants and Structure definitions for "Get POH Counter" command to follow here