]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/IndustryStandard/IpmiNetFnApp.h
Nt32Pkg/WinNtBusDriverDxe: Fix memory allocation size
[mirror_edk2.git] / MdePkg / Include / IndustryStandard / IpmiNetFnApp.h
CommitLineData
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 App commands, including:\r
5 IPM Device "Global" Commands (Chapter 20)\r
6 Firmware Firewall & Command Discovery Commands (Chapter 21)\r
7 BMC Watchdog Timer Commands (Chapter 27)\r
8 IPMI Messaging Support Commands (Chapter 22)\r
9 RMCP+ Support and Payload Commands (Chapter 24)\r
10\r
11 See IPMI specification, Appendix G, Command Assignments\r
12 and Appendix H, Sub-function Assignments.\r
13\r
25517f7c 14 Copyright (c) 1999 - 2018, Intel Corporation. All rights reserved.<BR>\r
e59a797f
DB
15 This program and the accompanying materials\r
16 are licensed and made available under the terms and conditions of the BSD License\r
17 which accompanies this distribution. The full text of the license may be found at\r
18 http://opensource.org/licenses/bsd-license.php\r
19\r
20 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
21 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
22**/\r
23\r
24#ifndef _IPMI_NET_FN_APP_H_\r
25#define _IPMI_NET_FN_APP_H_\r
26\r
27#pragma pack(1)\r
28//\r
29// Net function definition for App command\r
30//\r
31#define IPMI_NETFN_APP 0x06\r
32\r
33//\r
34// Below is Definitions for IPM Device "Global" Commands (Chapter 20)\r
35//\r
36\r
37//\r
38// Definitions for Get Device ID command\r
39//\r
40#define IPMI_APP_GET_DEVICE_ID 0x1\r
41\r
42//\r
43// Constants and Structure definitions for "Get Device ID" command to follow here\r
44//\r
aeb6f576
HW
45typedef union {\r
46 struct {\r
47 UINT8 DeviceRevision : 4;\r
48 UINT8 Reserved : 3;\r
49 UINT8 DeviceSdr : 1;\r
50 } Bits;\r
51 UINT8 Uint8;\r
52} IPMI_GET_DEVICE_ID_DEVICE_REV;\r
53\r
54typedef union {\r
55 struct {\r
56 UINT8 MajorFirmwareRev : 7;\r
57 UINT8 UpdateMode : 1;\r
58 } Bits;\r
59 UINT8 Uint8;\r
60} IPMI_GET_DEVICE_ID_FIRMWARE_REV_1;\r
61\r
62typedef union {\r
63 struct {\r
64 UINT8 SensorDeviceSupport : 1;\r
65 UINT8 SdrRepositorySupport : 1;\r
66 UINT8 SelDeviceSupport : 1;\r
67 UINT8 FruInventorySupport : 1;\r
68 UINT8 IpmbMessageReceiver : 1;\r
69 UINT8 IpmbMessageGenerator : 1;\r
70 UINT8 BridgeSupport : 1;\r
71 UINT8 ChassisSupport : 1;\r
72 } Bits;\r
73 UINT8 Uint8;\r
74} IPMI_GET_DEVICE_ID_DEVICE_SUPPORT;\r
75\r
e59a797f 76typedef struct {\r
aeb6f576
HW
77 UINT8 CompletionCode;\r
78 UINT8 DeviceId;\r
79 IPMI_GET_DEVICE_ID_DEVICE_REV DeviceRevision;\r
80 IPMI_GET_DEVICE_ID_FIRMWARE_REV_1 FirmwareRev1;\r
81 UINT8 MinorFirmwareRev;\r
82 UINT8 SpecificationVersion;\r
83 IPMI_GET_DEVICE_ID_DEVICE_SUPPORT DeviceSupport;\r
84 UINT8 ManufacturerId[3];\r
85 UINT16 ProductId;\r
86 UINT32 AuxFirmwareRevInfo;\r
aeff1d6e 87} IPMI_GET_DEVICE_ID_RESPONSE;\r
e59a797f
DB
88\r
89\r
90//\r
91// Definitions for Cold Reset command\r
92//\r
93#define IPMI_APP_COLD_RESET 0x2\r
94\r
95//\r
96// Constants and Structure definitions for "Cold Reset" command to follow here\r
97//\r
98\r
99//\r
100// Definitions for Warm Reset command\r
101//\r
102#define IPMI_APP_WARM_RESET 0x3\r
103\r
104//\r
105// Constants and Structure definitions for "Warm Reset" command to follow here\r
106//\r
107\r
108//\r
109// Definitions for Get Self Results command\r
110//\r
111#define IPMI_APP_GET_SELFTEST_RESULTS 0x4\r
112\r
113//\r
aeff1d6e 114// Constants and Structure definitions for "Get Self Test Results" command to follow here\r
e59a797f
DB
115//\r
116typedef struct {\r
aeff1d6e 117 UINT8 CompletionCode;\r
e59a797f
DB
118 UINT8 Result;\r
119 UINT8 Param;\r
aeff1d6e 120} IPMI_SELF_TEST_RESULT_RESPONSE;\r
e59a797f
DB
121\r
122#define IPMI_APP_SELFTEST_NO_ERROR 0x55\r
123#define IPMI_APP_SELFTEST_NOT_IMPLEMENTED 0x56\r
124#define IPMI_APP_SELFTEST_ERROR 0x57\r
125#define IPMI_APP_SELFTEST_FATAL_HW_ERROR 0x58\r
126#define IPMI_APP_SELFTEST_INACCESSIBLE_SEL 0x80\r
127#define IPMI_APP_SELFTEST_INACCESSIBLE_SDR 0x40\r
128#define IPMI_APP_SELFTEST_INACCESSIBLE_FRU 0x20\r
129#define IPMI_APP_SELFTEST_IPMB_SIGNAL_FAIL 0x10\r
130#define IPMI_APP_SELFTEST_SDR_REPOSITORY_EMPTY 0x08\r
131#define IPMI_APP_SELFTEST_FRU_CORRUPT 0x04\r
132#define IPMI_APP_SELFTEST_FW_BOOTBLOCK_CORRUPT 0x02\r
133#define IPMI_APP_SELFTEST_FW_CORRUPT 0x01\r
134\r
135//\r
136// Definitions for Manufacturing Test ON command\r
137//\r
138#define IPMI_APP_MANUFACTURING_TEST_ON 0x5\r
139\r
140//\r
141// Constants and Structure definitions for "Manufacturing Test ON" command to follow here\r
142//\r
143\r
144//\r
145// Definitions for Set ACPI Power State command\r
146//\r
147#define IPMI_APP_SET_ACPI_POWERSTATE 0x6\r
148\r
149//\r
150// Constants and Structure definitions for "Set ACPI Power State" command to follow here\r
151//\r
25517f7c
HW
152\r
153//\r
154// Definitions for System Power State\r
155//\r
156// Working\r
157#define IPMI_SYSTEM_POWER_STATE_S0_G0 0x0\r
158#define IPMI_SYSTEM_POWER_STATE_S1 0x1\r
159#define IPMI_SYSTEM_POWER_STATE_S2 0x2\r
160#define IPMI_SYSTEM_POWER_STATE_S3 0x3\r
161#define IPMI_SYSTEM_POWER_STATE_S4 0x4\r
162// Soft off\r
163#define IPMI_SYSTEM_POWER_STATE_S5_G2 0x5\r
164// Sent when message source cannot differentiate between S4 and S5\r
165#define IPMI_SYSTEM_POWER_STATE_S4_S5 0x6\r
166// Mechanical off\r
167#define IPMI_SYSTEM_POWER_STATE_G3 0x7\r
168// Sleeping - cannot differentiate between S1-S3\r
169#define IPMI_SYSTEM_POWER_STATE_SLEEPING 0x8\r
170// Sleeping - cannot differentiate between S1-S4\r
171#define IPMI_SYSTEM_POWER_STATE_G1_SLEEPING 0x9\r
172// S5 entered by override\r
173#define IPMI_SYSTEM_POWER_STATE_OVERRIDE 0xA\r
174#define IPMI_SYSTEM_POWER_STATE_LEGACY_ON 0x20\r
175#define IPMI_SYSTEM_POWER_STATE_LEGACY_OFF 0x21\r
176#define IPMI_SYSTEM_POWER_STATE_UNKNOWN 0x2A\r
177#define IPMI_SYSTEM_POWER_STATE_NO_CHANGE 0x7F\r
178\r
179//\r
180// Definitions for Device Power State\r
181//\r
182#define IPMI_DEVICE_POWER_STATE_D0 0x0\r
183#define IPMI_DEVICE_POWER_STATE_D1 0x1\r
184#define IPMI_DEVICE_POWER_STATE_D2 0x2\r
185#define IPMI_DEVICE_POWER_STATE_D3 0x3\r
186#define IPMI_DEVICE_POWER_STATE_UNKNOWN 0x2A\r
187#define IPMI_DEVICE_POWER_STATE_NO_CHANGE 0x7F\r
188\r
aeb6f576
HW
189typedef union {\r
190 struct {\r
191 UINT8 PowerState : 7;\r
192 UINT8 StateChange : 1;\r
193 } Bits;\r
194 UINT8 Uint8;\r
195} IPMI_ACPI_POWER_STATE;\r
196\r
e59a797f 197typedef struct {\r
aeb6f576
HW
198 IPMI_ACPI_POWER_STATE SystemPowerState;\r
199 IPMI_ACPI_POWER_STATE DevicePowerState;\r
aeff1d6e 200} IPMI_SET_ACPI_POWER_STATE_REQUEST;\r
e59a797f
DB
201\r
202//\r
203// Definitions for Get ACPI Power State command\r
204//\r
205#define IPMI_APP_GET_ACPI_POWERSTATE 0x7\r
206\r
207//\r
208// Constants and Structure definitions for "Get ACPI Power State" command to follow here\r
209//\r
210\r
211//\r
212// Definitions for Get Device GUID command\r
213//\r
214#define IPMI_APP_GET_DEVICE_GUID 0x8\r
215\r
216//\r
217// Constants and Structure definitions for "Get Device GUID" command to follow here\r
218//\r
219//\r
220// Message structure definition for "Get Device Guid" IPMI command\r
221//\r
222typedef struct {\r
aeff1d6e
DB
223 UINT8 CompletionCode;\r
224 UINT8 Guid[16];\r
225} IPMI_GET_DEVICE_GUID_RESPONSE;\r
e59a797f
DB
226\r
227//\r
228// Below is Definitions for BMC Watchdog Timer Commands (Chapter 27)\r
229//\r
230\r
231//\r
232// Definitions for Reset WatchDog Timer command\r
233//\r
234#define IPMI_APP_RESET_WATCHDOG_TIMER 0x22\r
235\r
236//\r
25517f7c
HW
237// Definitions for Set WatchDog Timer command\r
238//\r
239#define IPMI_APP_SET_WATCHDOG_TIMER 0x24\r
240\r
241//\r
242// Constants and Structure definitions for "Set WatchDog Timer" command to follow here\r
243//\r
244\r
245//\r
246// Definitions for watchdog timer use\r
247//\r
248#define IPMI_WATCHDOG_TIMER_BIOS_FRB2 0x1\r
249#define IPMI_WATCHDOG_TIMER_BIOS_POST 0x2\r
250#define IPMI_WATCHDOG_TIMER_OS_LOADER 0x3\r
251#define IPMI_WATCHDOG_TIMER_SMS 0x4\r
252#define IPMI_WATCHDOG_TIMER_OEM 0x5\r
253\r
254//\r
255// Structure definition for timer Use\r
e59a797f 256//\r
aeb6f576
HW
257typedef union {\r
258 struct {\r
259 UINT8 TimerUse : 3;\r
260 UINT8 Reserved : 3;\r
261 UINT8 TimerRunning : 1;\r
262 UINT8 TimerUseExpirationFlagLog : 1;\r
263 } Bits;\r
264 UINT8 Uint8;\r
e59a797f
DB
265} IPMI_WATCHDOG_TIMER_USE;\r
266\r
267//\r
25517f7c 268// Definitions for watchdog timeout action\r
e59a797f 269//\r
25517f7c
HW
270#define IPMI_WATCHDOG_TIMER_ACTION_NO_ACTION 0x0\r
271#define IPMI_WATCHDOG_TIMER_ACTION_HARD_RESET 0x1\r
272#define IPMI_WATCHDOG_TIMER_ACTION_POWER_DONW 0x2\r
273#define IPMI_WATCHDOG_TIMER_ACTION_POWER_CYCLE 0x3\r
e59a797f
DB
274\r
275//\r
25517f7c
HW
276// Definitions for watchdog pre-timeout interrupt\r
277//\r
278#define IPMI_WATCHDOG_PRE_TIMEOUT_INTERRUPT_NONE 0x0\r
279#define IPMI_WATCHDOG_PRE_TIMEOUT_INTERRUPT_SMI 0x1\r
280#define IPMI_WATCHDOG_PRE_TIMEOUT_INTERRUPT_NMI 0x2\r
281#define IPMI_WATCHDOG_PRE_TIMEOUT_INTERRUPT_MESSAGING 0x3\r
282\r
283//\r
284// Structure definitions for Timer Actions\r
e59a797f 285//\r
aeb6f576
HW
286typedef union {\r
287 struct {\r
288 UINT8 TimeoutAction : 3;\r
289 UINT8 Reserved1 : 1;\r
290 UINT8 PreTimeoutInterrupt : 3;\r
291 UINT8 Reserved2 : 1;\r
292 } Bits;\r
293 UINT8 Uint8;\r
25517f7c
HW
294} IPMI_WATCHDOG_TIMER_ACTIONS;\r
295\r
296//\r
297// Bit definitions for Timer use expiration flags\r
298//\r
299#define IPMI_WATCHDOG_TIMER_EXPIRATION_FLAG_BIOS_FRB2 BIT1\r
300#define IPMI_WATCHDOG_TIMER_EXPIRATION_FLAG_BIOS_POST BIT2\r
301#define IPMI_WATCHDOG_TIMER_EXPIRATION_FLAG_OS_LOAD BIT3\r
302#define IPMI_WATCHDOG_TIMER_EXPIRATION_FLAG_SMS_OS BIT4\r
303#define IPMI_WATCHDOG_TIMER_EXPIRATION_FLAG_OEM BIT5\r
304\r
e59a797f
DB
305typedef struct {\r
306 IPMI_WATCHDOG_TIMER_USE TimerUse;\r
25517f7c 307 IPMI_WATCHDOG_TIMER_ACTIONS TimerActions;\r
e59a797f
DB
308 UINT8 PretimeoutInterval;\r
309 UINT8 TimerUseExpirationFlagsClear;\r
310 UINT16 InitialCountdownValue;\r
aeff1d6e 311} IPMI_SET_WATCHDOG_TIMER_REQUEST;\r
e59a797f
DB
312\r
313//\r
314// Definitions for Get WatchDog Timer command\r
315//\r
316#define IPMI_APP_GET_WATCHDOG_TIMER 0x25\r
317\r
318//\r
319// Constants and Structure definitions for "Get WatchDog Timer" command to follow here\r
320//\r
321typedef struct {\r
aeff1d6e 322 UINT8 CompletionCode;\r
e59a797f 323 IPMI_WATCHDOG_TIMER_USE TimerUse;\r
25517f7c 324 IPMI_WATCHDOG_TIMER_ACTIONS TimerActions;\r
e59a797f
DB
325 UINT8 PretimeoutInterval;\r
326 UINT8 TimerUseExpirationFlagsClear;\r
327 UINT16 InitialCountdownValue;\r
328 UINT16 PresentCountdownValue;\r
aeff1d6e 329} IPMI_GET_WATCHDOG_TIMER_RESPONSE;\r
e59a797f
DB
330\r
331//\r
332// Below is Definitions for IPMI Messaging Support Commands (Chapter 22)\r
333//\r
334\r
335//\r
336// Definitions for Set BMC Global Enables command\r
337//\r
338#define IPMI_APP_SET_BMC_GLOBAL_ENABLES 0x2E\r
339\r
340//\r
341// Constants and Structure definitions for "Set BMC Global Enables " command to follow here\r
342//\r
aeb6f576
HW
343typedef union {\r
344 struct {\r
345 UINT8 ReceiveMessageQueueInterrupt : 1;\r
346 UINT8 EventMessageBufferFullInterrupt : 1;\r
347 UINT8 EventMessageBuffer : 1;\r
348 UINT8 SystemEventLogging : 1;\r
349 UINT8 Reserved : 1;\r
350 UINT8 Oem0Enable : 1;\r
351 UINT8 Oem1Enable : 1;\r
352 UINT8 Oem2Enable : 1;\r
353 } Bits;\r
354 UINT8 Uint8;\r
355} IPMI_BMC_GLOBAL_ENABLES;\r
356\r
25517f7c 357typedef struct {\r
aeb6f576 358 IPMI_BMC_GLOBAL_ENABLES SetEnables;\r
25517f7c 359} IPMI_SET_BMC_GLOBAL_ENABLES_REQUEST;\r
e59a797f
DB
360\r
361//\r
362// Definitions for Get BMC Global Enables command\r
363//\r
364#define IPMI_APP_GET_BMC_GLOBAL_ENABLES 0x2F\r
365\r
366//\r
367// Constants and Structure definitions for "Get BMC Global Enables " command to follow here\r
368//\r
25517f7c 369typedef struct {\r
aeb6f576
HW
370 UINT8 CompletionCode;\r
371 IPMI_BMC_GLOBAL_ENABLES GetEnables;\r
25517f7c 372} IPMI_GET_BMC_GLOBAL_ENABLES_RESPONSE;\r
e59a797f
DB
373\r
374//\r
375// Definitions for Clear Message Flags command\r
376//\r
377#define IPMI_APP_CLEAR_MESSAGE_FLAGS 0x30\r
378\r
379//\r
380// Constants and Structure definitions for "Clear Message Flags" command to follow here\r
381//\r
aeb6f576
HW
382typedef union {\r
383 struct {\r
384 UINT8 ReceiveMessageQueue : 1;\r
385 UINT8 EventMessageBuffer : 1;\r
386 UINT8 Reserved1 : 1;\r
387 UINT8 WatchdogPerTimeoutInterrupt : 1;\r
388 UINT8 Reserved2 : 1;\r
389 UINT8 Oem0 : 1;\r
390 UINT8 Oem1 : 1;\r
391 UINT8 Oem2 : 1;\r
392 } Bits;\r
393 UINT8 Uint8;\r
394} IPMI_MESSAGE_FLAGS;\r
395\r
25517f7c 396typedef struct {\r
aeb6f576 397 IPMI_MESSAGE_FLAGS ClearFlags;\r
25517f7c 398} IPMI_CLEAR_MESSAGE_FLAGS_REQUEST;\r
e59a797f
DB
399\r
400//\r
401// Definitions for Get Message Flags command\r
402//\r
403#define IPMI_APP_GET_MESSAGE_FLAGS 0x31\r
404\r
405//\r
406// Constants and Structure definitions for "Get Message Flags" command to follow here\r
407//\r
25517f7c 408typedef struct {\r
aeb6f576
HW
409 UINT8 CompletionCode;\r
410 IPMI_MESSAGE_FLAGS GetFlags;\r
25517f7c 411} IPMI_GET_MESSAGE_FLAGS_RESPONSE;\r
e59a797f
DB
412\r
413//\r
414// Definitions for Enable Message Channel Receive command\r
415//\r
416#define IPMI_APP_ENABLE_MESSAGE_CHANNEL_RECEIVE 0x32\r
417\r
418//\r
419// Constants and Structure definitions for "Enable Message Channel Receive" command to follow here\r
420//\r
421\r
422//\r
423// Definitions for Get Message command\r
424//\r
425#define IPMI_APP_GET_MESSAGE 0x33\r
426\r
427//\r
428// Constants and Structure definitions for "Get Message" command to follow here\r
429//\r
aeb6f576
HW
430typedef union {\r
431 struct {\r
432 UINT8 ChannelNumber : 4;\r
433 UINT8 InferredPrivilegeLevel : 4;\r
434 } Bits;\r
435 UINT8 Uint8;\r
436} IPMI_GET_MESSAGE_CHANNEL_NUMBER;\r
437\r
25517f7c 438typedef struct {\r
aeb6f576
HW
439 UINT8 CompletionCode;\r
440 IPMI_GET_MESSAGE_CHANNEL_NUMBER ChannelNumber;\r
441 UINT8 MessageData[0];\r
25517f7c 442} IPMI_GET_MESSAGE_RESPONSE;\r
e59a797f
DB
443\r
444//\r
445// Definitions for Send Message command\r
446//\r
447#define IPMI_APP_SEND_MESSAGE 0x34\r
448\r
449//\r
450// Constants and Structure definitions for "Send Message" command to follow here\r
451//\r
aeb6f576
HW
452typedef union {\r
453 struct {\r
454 UINT8 ChannelNumber : 4;\r
455 UINT8 Authentication : 1;\r
456 UINT8 Encryption : 1;\r
457 UINT8 Tracking : 2;\r
458 } Bits;\r
459 UINT8 Uint8;\r
460} IPMI_SEND_MESSAGE_CHANNEL_NUMBER;\r
461\r
25517f7c 462typedef struct {\r
aeb6f576
HW
463 UINT8 CompletionCode;\r
464 IPMI_SEND_MESSAGE_CHANNEL_NUMBER ChannelNumber;\r
465 UINT8 MessageData[0];\r
25517f7c
HW
466} IPMI_SEND_MESSAGE_REQUEST;\r
467\r
468typedef struct {\r
469 UINT8 CompletionCode;\r
470 UINT8 ResponseData[0];\r
471} IPMI_SEND_MESSAGE_RESPONSE;\r
e59a797f
DB
472\r
473//\r
474// Definitions for Read Event Message Buffer command\r
475//\r
476#define IPMI_APP_READ_EVENT_MSG_BUFFER 0x35\r
477\r
478//\r
479// Constants and Structure definitions for "Read Event Message Buffer" command to follow here\r
480//\r
481\r
482//\r
483// Definitions for Get BT Interface Capabilities command\r
484//\r
485#define IPMI_APP_GET_BT_INTERFACE_CAPABILITY 0x36\r
486\r
487//\r
488// Constants and Structure definitions for "Get BT Interface Capabilities" command to follow here\r
489//\r
490\r
491//\r
492// Definitions for Get System GUID command\r
493//\r
494#define IPMI_APP_GET_SYSTEM_GUID 0x37\r
495\r
496//\r
497// Constants and Structure definitions for "Get System GUID" command to follow here\r
498//\r
499\r
500//\r
501// Definitions for Get Channel Authentication Capabilities command\r
502//\r
503#define IPMI_APP_GET_CHANNEL_AUTHENTICATION_CAPABILITIES 0x38\r
504\r
505//\r
506// Constants and Structure definitions for "Get Channel Authentication Capabilities" command to follow here\r
507//\r
508\r
509//\r
510// Definitions for Get Session Challenge command\r
511//\r
512#define IPMI_APP_GET_SESSION_CHALLENGE 0x39\r
513\r
514//\r
515// Constants and Structure definitions for "Get Session Challenge" command to follow here\r
516//\r
517\r
518//\r
519// Definitions for Activate Session command\r
520//\r
521#define IPMI_APP_ACTIVATE_SESSION 0x3A\r
522\r
523//\r
524// Constants and Structure definitions for "Activate Session" command to follow here\r
525//\r
526\r
527//\r
528// Definitions for Set Session Privelege Level command\r
529//\r
530#define IPMI_APP_SET_SESSION_PRIVELEGE_LEVEL 0x3B\r
531\r
532//\r
533// Constants and Structure definitions for "Set Session Privelege Level" command to follow here\r
534//\r
535\r
536//\r
537// Definitions for Close Session command\r
538//\r
539#define IPMI_APP_CLOSE_SESSION 0x3C\r
540\r
541//\r
542// Constants and Structure definitions for "Close Session" command to follow here\r
543//\r
544\r
545//\r
546// Definitions for Get Session Info command\r
547//\r
548#define IPMI_APP_GET_SESSION_INFO 0x3D\r
549\r
550//\r
551// Constants and Structure definitions for "Get Session Info" command to follow here\r
552//\r
553\r
554//\r
555// Definitions for Get Auth Code command\r
556//\r
557#define IPMI_APP_GET_AUTHCODE 0x3F\r
558\r
559//\r
560// Constants and Structure definitions for "Get AuthCode" command to follow here\r
561//\r
562\r
563//\r
564// Definitions for Set Channel Access command\r
565//\r
566#define IPMI_APP_SET_CHANNEL_ACCESS 0x40\r
567\r
568//\r
569// Constants and Structure definitions for "Set Channel Access" command to follow here\r
570//\r
571\r
572//\r
573// Definitions for Get Channel Access command\r
574//\r
575#define IPMI_APP_GET_CHANNEL_ACCESS 0x41\r
576\r
577//\r
578// Constants and Structure definitions for "Get Channel Access" command to follow here\r
579//\r
25517f7c
HW
580\r
581//\r
582// Definitions for channel access memory type in Get Channel Access command request\r
583//\r
584#define IPMI_CHANNEL_ACCESS_MEMORY_TYPE_NON_VOLATILE 0x1\r
585#define IPMI_CHANNEL_ACCESS_MEMORY_TYPE_PRESENT_VOLATILE_SETTING 0x2\r
586\r
587//\r
588// Definitions for channel access modes in Get Channel Access command response\r
589//\r
590#define IPMI_CHANNEL_ACCESS_MODES_DISABLED 0x0\r
591#define IPMI_CHANNEL_ACCESS_MODES_PRE_BOOT_ONLY 0x1\r
592#define IPMI_CHANNEL_ACCESS_MODES_ALWAYS_AVAILABLE 0x2\r
593#define IPMI_CHANNEL_ACCESS_MODES_SHARED 0x3\r
594\r
aeb6f576
HW
595typedef union {\r
596 struct {\r
597 UINT8 ChannelNo : 4;\r
598 UINT8 Reserved : 4;\r
599 } Bits;\r
600 UINT8 Uint8;\r
601} IPMI_GET_CHANNEL_ACCESS_CHANNEL_NUMBER;\r
602\r
603typedef union {\r
604 struct {\r
605 UINT8 Reserved : 6;\r
606 UINT8 MemoryType : 2;\r
607 } Bits;\r
608 UINT8 Uint8;\r
609} IPMI_GET_CHANNEL_ACCESS_TYPE;\r
610\r
e59a797f 611typedef struct {\r
aeb6f576
HW
612 IPMI_GET_CHANNEL_ACCESS_CHANNEL_NUMBER ChannelNumber;\r
613 IPMI_GET_CHANNEL_ACCESS_TYPE AccessType;\r
aeff1d6e 614} IPMI_GET_CHANNEL_ACCESS_REQUEST;\r
e59a797f 615\r
aeb6f576
HW
616typedef union {\r
617 struct {\r
618 UINT8 AccessMode : 3;\r
619 UINT8 UserLevelAuthEnabled : 1;\r
620 UINT8 MessageAuthEnable : 1;\r
621 UINT8 Alert : 1;\r
622 UINT8 Reserved : 2;\r
623 } Bits;\r
624 UINT8 Uint8;\r
625} IPMI_GET_CHANNEL_ACCESS_CHANNEL_ACCESS;\r
626\r
627typedef union {\r
628 struct {\r
629 UINT8 ChannelPriviledgeLimit : 4;\r
630 UINT8 Reserved : 4;\r
631 } Bits;\r
632 UINT8 Uint8;\r
633} IPMI_GET_CHANNEL_ACCESS_PRIVILEGE_LIMIT;\r
634\r
e59a797f 635typedef struct {\r
aeb6f576
HW
636 UINT8 CompletionCode;\r
637 IPMI_GET_CHANNEL_ACCESS_CHANNEL_ACCESS ChannelAccess;\r
638 IPMI_GET_CHANNEL_ACCESS_PRIVILEGE_LIMIT PrivilegeLimit;\r
e59a797f
DB
639} IPMI_GET_CHANNEL_ACCESS_RESPONSE;\r
640\r
641//\r
642// Definitions for Get Channel Info command\r
643//\r
644#define IPMI_APP_GET_CHANNEL_INFO 0x42\r
645\r
646//\r
647// Constants and Structure definitions for "Get Channel Info" command to follow here\r
648//\r
25517f7c
HW
649\r
650//\r
651// Definitions for channel media type\r
652//\r
653// IPMB (I2C)\r
654#define IPMI_CHANNEL_MEDIA_TYPE_IPMB 0x1\r
655// ICMB v1.0\r
656#define IPMI_CHANNEL_MEDIA_TYPE_ICMB_1_0 0x2\r
657// ICMB v0.9\r
658#define IPMI_CHANNEL_MEDIA_TYPE_ICMB_0_9 0x3\r
659// 802.3 LAN\r
660#define IPMI_CHANNEL_MEDIA_TYPE_802_3_LAN 0x4\r
661// Asynch. Serial/Modem (RS-232)\r
662#define IPMI_CHANNEL_MEDIA_TYPE_RS_232 0x5\r
663// Other LAN\r
664#define IPMI_CHANNEL_MEDIA_TYPE_OTHER_LAN 0x6\r
665// PCI SMBus\r
666#define IPMI_CHANNEL_MEDIA_TYPE_PCI_SM_BUS 0x7\r
667// SMBus v1.0/1.1\r
668#define IPMI_CHANNEL_MEDIA_TYPE_SM_BUS_V1 0x8\r
669// SMBus v2.0\r
670#define IPMI_CHANNEL_MEDIA_TYPE_SM_BUS_V2 0x9\r
671// USB 1.x\r
672#define IPMI_CHANNEL_MEDIA_TYPE_USB1 0xA\r
673// USB 2.x\r
674#define IPMI_CHANNEL_MEDIA_TYPE_USB2 0xB\r
675// System Interface (KCS, SMIC, or BT)\r
676#define IPMI_CHANNEL_MEDIA_TYPE_SYSTEM_INTERFACE 0xC\r
677// OEM\r
678#define IPMI_CHANNEL_MEDIA_TYPE_OEM_START 0x60\r
679#define IPMI_CHANNEL_MEDIA_TYPE_OEM_END 0x7F\r
680\r
aeb6f576
HW
681typedef union {\r
682 struct {\r
683 UINT8 ChannelNo : 4;\r
684 UINT8 Reserved : 4;\r
685 } Bits;\r
686 UINT8 Uint8;\r
687} IPMI_CHANNEL_INFO_CHANNEL_NUMBER;\r
688\r
689typedef union {\r
690 struct {\r
691 UINT8 ChannelMediumType : 7;\r
692 UINT8 Reserved : 1;\r
693 } Bits;\r
694 UINT8 Uint8;\r
695} IPMI_CHANNEL_INFO_MEDIUM_TYPE;\r
696\r
697typedef union {\r
698 struct {\r
699 UINT8 ChannelProtocolType : 5;\r
700 UINT8 Reserved : 3;\r
701 } Bits;\r
702 UINT8 Uint8;\r
703} IPMI_CHANNEL_INFO_PROTOCOL_TYPE;\r
704\r
705typedef union {\r
706 struct {\r
707 UINT8 ActiveSessionCount : 6;\r
708 UINT8 SessionSupport : 2;\r
709 } Bits;\r
710 UINT8 Uint8;\r
711} IPMI_CHANNEL_INFO_SESSION_SUPPORT;\r
712\r
e59a797f 713typedef struct {\r
aeff1d6e 714 UINT8 CompletionCode;\r
aeb6f576
HW
715 IPMI_CHANNEL_INFO_CHANNEL_NUMBER ChannelNumber;\r
716 IPMI_CHANNEL_INFO_MEDIUM_TYPE MediumType;\r
717 IPMI_CHANNEL_INFO_PROTOCOL_TYPE ProtocolType;\r
718 IPMI_CHANNEL_INFO_SESSION_SUPPORT SessionSupport;\r
719 UINT8 VendorId[3];\r
720 UINT16 AuxChannelInfo;\r
aeff1d6e 721} IPMI_GET_CHANNEL_INFO_RESPONSE;\r
e59a797f
DB
722\r
723//\r
724// Definitions for Get Channel Info command\r
725//\r
726#define IPMI_APP_GET_CHANNEL_INFO 0x42\r
727\r
728//\r
729// Constants and Structure definitions for "Get Channel Info" command to follow here\r
730//\r
731\r
732//\r
733// Definitions for Set User Access command\r
734//\r
735#define IPMI_APP_SET_USER_ACCESS 0x43\r
736\r
737//\r
738// Constants and Structure definitions for "Set User Access" command to follow here\r
739//\r
740\r
741//\r
742// Definitions for Get User Access command\r
743//\r
744#define IPMI_APP_GET_USER_ACCESS 0x44\r
745\r
746//\r
747// Constants and Structure definitions for "Get User Access" command to follow here\r
748//\r
aeb6f576
HW
749typedef union {\r
750 struct {\r
751 UINT8 ChannelNo : 4;\r
752 UINT8 Reserved : 4;\r
753 } Bits;\r
754 UINT8 Uint8;\r
755} IPMI_GET_USER_ACCESS_CHANNEL_NUMBER;\r
756\r
757typedef union {\r
758 struct {\r
759 UINT8 UserId : 6;\r
760 UINT8 Reserved : 2;\r
761 } Bits;\r
762 UINT8 Uint8;\r
763} IPMI_USER_ID;\r
764\r
25517f7c 765typedef struct {\r
aeb6f576
HW
766 IPMI_GET_USER_ACCESS_CHANNEL_NUMBER ChannelNumber;\r
767 IPMI_USER_ID UserId;\r
25517f7c
HW
768} IPMI_GET_USER_ACCESS_REQUEST;\r
769\r
aeb6f576
HW
770typedef union {\r
771 struct {\r
772 UINT8 MaxUserId : 6;\r
773 UINT8 Reserved : 2;\r
774 } Bits;\r
775 UINT8 Uint8;\r
776} IPMI_GET_USER_ACCESS_MAX_USER_ID;\r
777\r
778typedef union {\r
779 struct {\r
780 UINT8 CurrentUserId : 6;\r
781 UINT8 UserIdEnableStatus : 2;\r
782 } Bits;\r
783 UINT8 Uint8;\r
784} IPMI_GET_USER_ACCESS_CURRENT_USER;\r
785\r
786typedef union {\r
787 struct {\r
788 UINT8 FixedUserId : 6;\r
789 UINT8 Reserved : 2;\r
790 } Bits;\r
791 UINT8 Uint8;\r
792} IPMI_GET_USER_ACCESS_FIXED_NAME_USER;\r
793\r
794typedef union {\r
795 struct {\r
796 UINT8 UserPrivilegeLimit : 4;\r
797 UINT8 EnableIpmiMessaging : 1;\r
798 UINT8 EnableUserLinkAuthetication : 1;\r
799 UINT8 UserAccessAvailable : 1;\r
800 UINT8 Reserved : 1;\r
801 } Bits;\r
802 UINT8 Uint8;\r
803} IPMI_GET_USER_ACCESS_CHANNEL_ACCESS;\r
804\r
25517f7c 805typedef struct {\r
aeb6f576
HW
806 UINT8 CompletionCode;\r
807 IPMI_GET_USER_ACCESS_MAX_USER_ID MaxUserId;\r
808 IPMI_GET_USER_ACCESS_CURRENT_USER CurrentUser;\r
809 IPMI_GET_USER_ACCESS_FIXED_NAME_USER FixedNameUser;\r
810 IPMI_GET_USER_ACCESS_CHANNEL_ACCESS ChannelAccess;\r
25517f7c 811} IPMI_GET_USER_ACCESS_RESPONSE;\r
e59a797f
DB
812\r
813//\r
814// Definitions for Set User Name command\r
815//\r
816#define IPMI_APP_SET_USER_NAME 0x45\r
817\r
818//\r
819// Constants and Structure definitions for "Set User Name" command to follow here\r
820//\r
25517f7c 821typedef struct {\r
aeb6f576
HW
822 IPMI_USER_ID UserId;\r
823 UINT8 UserName[16];\r
25517f7c 824} IPMI_SET_USER_NAME_REQUEST;\r
e59a797f
DB
825\r
826//\r
827// Definitions for Get User Name command\r
828//\r
829#define IPMI_APP_GET_USER_NAME 0x46\r
830\r
831//\r
832// Constants and Structure definitions for "Get User Name" command to follow here\r
833//\r
25517f7c 834typedef struct {\r
aeb6f576 835 IPMI_USER_ID UserId;\r
25517f7c
HW
836} IPMI_GET_USER_NAME_REQUEST;\r
837\r
838typedef struct {\r
839 UINT8 CompletionCode;\r
840 UINT8 UserName[16];\r
841} IPMI_GET_USER_NAME_RESPONSE;\r
e59a797f
DB
842\r
843//\r
844// Definitions for Set User Password command\r
845//\r
846#define IPMI_APP_SET_USER_PASSWORD 0x47\r
847\r
848//\r
849// Constants and Structure definitions for "Set User Password" command to follow here\r
850//\r
851\r
25517f7c
HW
852//\r
853// Definitions for Set User password command operation type\r
854//\r
855#define IPMI_SET_USER_PASSWORD_OPERATION_TYPE_DISABLE_USER 0x0\r
856#define IPMI_SET_USER_PASSWORD_OPERATION_TYPE_ENABLE_USER 0x1\r
857#define IPMI_SET_USER_PASSWORD_OPERATION_TYPE_SET_PASSWORD 0x2\r
858#define IPMI_SET_USER_PASSWORD_OPERATION_TYPE_TEST_PASSWORD 0x3\r
859\r
860//\r
861// Definitions for Set user password command password size\r
862//\r
863#define IPMI_SET_USER_PASSWORD_PASSWORD_SIZE_16 0x0\r
864#define IPMI_SET_USER_PASSWORD_PASSWORD_SIZE_20 0x1\r
865\r
aeb6f576
HW
866typedef union {\r
867 struct {\r
868 UINT8 UserId : 6;\r
869 UINT8 Reserved : 1;\r
870 UINT8 PasswordSize : 1;\r
871 } Bits;\r
872 UINT8 Uint8;\r
873} IPMI_SET_USER_PASSWORD_USER_ID;\r
874\r
875typedef union {\r
876 struct {\r
877 UINT8 Operation : 2;\r
878 UINT8 Reserved : 6;\r
879 } Bits;\r
880 UINT8 Uint8;\r
881} IPMI_SET_USER_PASSWORD_OPERATION;\r
882\r
25517f7c 883typedef struct {\r
aeb6f576
HW
884 IPMI_SET_USER_PASSWORD_USER_ID UserId;\r
885 IPMI_SET_USER_PASSWORD_OPERATION Operation;\r
886 UINT8 PasswordData[0]; // 16 or 20 bytes, depending on the 'PasswordSize' field\r
25517f7c
HW
887} IPMI_SET_USER_PASSWORD_REQUEST;\r
888\r
e59a797f
DB
889//\r
890// Below is Definitions for RMCP+ Support and Payload Commands (Chapter 24)\r
891//\r
892\r
893//\r
894// Definitions for Activate Payload command\r
895//\r
896#define IPMI_APP_ACTIVATE_PAYLOAD 0x48\r
897\r
898//\r
899// Constants and Structure definitions for "Activate Payload" command to follow here\r
900//\r
901\r
902//\r
903// Definitions for De-Activate Payload command\r
904//\r
905#define IPMI_APP_DEACTIVATE_PAYLOAD 0x49\r
906\r
907//\r
908// Constants and Structure definitions for "DeActivate Payload" command to follow here\r
909//\r
910\r
911//\r
912// Definitions for Get Payload activation Status command\r
913//\r
914#define IPMI_APP_GET_PAYLOAD_ACTIVATION_STATUS 0x4a\r
915\r
916//\r
917// Constants and Structure definitions for "Get Payload activation Status" command to follow here\r
918//\r
919\r
920//\r
921// Definitions for Get Payload Instance Info command\r
922//\r
923#define IPMI_APP_GET_PAYLOAD_INSTANCE_INFO 0x4b\r
924\r
925//\r
926// Constants and Structure definitions for "Get Payload Instance Info" command to follow here\r
927//\r
928\r
929//\r
930// Definitions for Set User Payload Access command\r
931//\r
932#define IPMI_APP_SET_USER_PAYLOAD_ACCESS 0x4C\r
933\r
934//\r
935// Constants and Structure definitions for "Set User Payload Access" command to follow here\r
936//\r
937\r
938//\r
939// Definitions for Get User Payload Access command\r
940//\r
941#define IPMI_APP_GET_USER_PAYLOAD_ACCESS 0x4D\r
942\r
943//\r
944// Constants and Structure definitions for "Get User Payload Access" command to follow here\r
945//\r
946\r
947//\r
948// Definitions for Get Channel Payload Support command\r
949//\r
950#define IPMI_APP_GET_CHANNEL_PAYLOAD_SUPPORT 0x4E\r
951\r
952//\r
953// Constants and Structure definitions for "Get Channel Payload Support" command to follow here\r
954//\r
955\r
956//\r
957// Definitions for Get Channel Payload Version command\r
958//\r
959#define IPMI_APP_GET_CHANNEL_PAYLOAD_VERSION 0x4F\r
960\r
961//\r
962// Constants and Structure definitions for "Get Channel Payload Version" command to follow here\r
963//\r
964\r
965//\r
966// Definitions for Get Channel OEM Payload Info command\r
967//\r
968#define IPMI_APP_GET_CHANNEL_OEM_PAYLOAD_INFO 0x50\r
969\r
970//\r
971// Constants and Structure definitions for "Get Channel OEM Payload Info" command to follow here\r
972//\r
973\r
974//\r
975// Definitions for Master Write-Read command\r
976//\r
977#define IPMI_APP_MASTER_WRITE_READ 0x52\r
978\r
979//\r
980// Constants and Structure definitions for "Master Write Read" command to follow here\r
981//\r
982\r
983//\r
984// Definitions for Get Channel Cipher Suites command\r
985//\r
986#define IPMI_APP_GET_CHANNEL_CIPHER_SUITES 0x54\r
987\r
988//\r
989// Constants and Structure definitions for "Get Channel Cipher Suites" command to follow here\r
990//\r
991\r
992//\r
993// Below is Definitions for RMCP+ Support and Payload Commands (Chapter 24, Section 3)\r
994//\r
995\r
996//\r
997// Definitions for Suspend-Resume Payload Encryption command\r
998//\r
999#define IPMI_APP_SUSPEND_RESUME_PAYLOAD_ENCRYPTION 0x55\r
1000\r
1001//\r
1002// Constants and Structure definitions for "Suspend-Resume Payload Encryption" command to follow here\r
1003//\r
1004\r
1005//\r
1006// Below is Definitions for IPMI Messaging Support Commands (Chapter 22, Section 25 and 9)\r
1007//\r
1008\r
1009//\r
1010// Definitions for Set Channel Security Keys command\r
1011//\r
1012#define IPMI_APP_SET_CHANNEL_SECURITY_KEYS 0x56\r
1013\r
1014//\r
1015// Constants and Structure definitions for "Set Channel Security Keys" command to follow here\r
1016//\r
1017\r
1018//\r
1019// Definitions for Get System Interface Capabilities command\r
1020//\r
1021#define IPMI_APP_GET_SYSTEM_INTERFACE_CAPABILITIES 0x57\r
1022\r
1023//\r
1024// Constants and Structure definitions for "Get System Interface Capabilities" command to follow here\r
1025//\r
1026\r
25517f7c
HW
1027//\r
1028// Definitions for Get System Interface Capabilities command SSIF transaction support\r
1029//\r
1030#define IPMI_GET_SYSTEM_INTERFACE_CAPABILITIES_SSIF_TRANSACTION_SUPPORT_SINGLE_PARTITION_RW 0x0\r
1031#define IPMI_GET_SYSTEM_INTERFACE_CAPABILITIES_SSIF_TRANSACTION_SUPPORT_MULTI_PARTITION_RW 0x1\r
1032#define IPMI_GET_SYSTEM_INTERFACE_CAPABILITIES_SSIF_TRANSACTION_SUPPORT_MULTI_PARTITION_RW_WITH_MIDDLE 0x2\r
1033\r
e59a797f
DB
1034#pragma pack()\r
1035#endif\r