]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/IndustryStandard/IpmiNetFnAppDefinitions.h
MdePkg: Add 3 macro defined in latest TPM2 specification.
[mirror_edk2.git] / MdePkg / Include / IndustryStandard / IpmiNetFnAppDefinitions.h
CommitLineData
884a1730
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
14 Copyright (c) 1999 - 2015, Intel Corporation. All rights reserved.<BR>\r
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 _IPMINETFNAPPDEFINITIONS_H_\r
25#define _IPMINETFNAPPDEFINITIONS_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
45typedef struct {\r
46 UINT8 DeviceId;\r
47 UINT8 DeviceRevision : 4;\r
48 UINT8 Reserved : 3;\r
49 UINT8 DeviceSdr : 1;\r
50 UINT8 MajorFirmwareRev : 7;\r
51 UINT8 UpdateMode : 1;\r
52 UINT8 MinorFirmwareRev;\r
53 UINT8 SpecificationVersion;\r
54 UINT8 SensorDeviceSupport : 1;\r
55 UINT8 SdrRepositorySupport : 1;\r
56 UINT8 SelDeviceSupport : 1;\r
57 UINT8 FruInventorySupport : 1;\r
58 UINT8 IpmbMessageReceiver : 1;\r
59 UINT8 IpmbMessageGenerator : 1;\r
60 UINT8 BridgeSupport : 1;\r
61 UINT8 ChassisSupport : 1;\r
62 UINT8 ManufacturerId[3];\r
63 UINT16 ProductId;\r
64 UINT32 AuxFirmwareRevInfo;\r
65} IPMI_MSG_GET_DEVICE_ID_RSP;\r
66\r
67\r
68//\r
69// Definitions for Cold Reset command\r
70//\r
71#define IPMI_APP_COLD_RESET 0x2\r
72\r
73//\r
74// Constants and Structure definitions for "Cold Reset" command to follow here\r
75//\r
76\r
77//\r
78// Definitions for Warm Reset command\r
79//\r
80#define IPMI_APP_WARM_RESET 0x3\r
81\r
82//\r
83// Constants and Structure definitions for "Warm Reset" command to follow here\r
84//\r
85\r
86//\r
87// Definitions for Get Self Results command\r
88//\r
89#define IPMI_APP_GET_SELFTEST_RESULTS 0x4\r
90\r
91//\r
92// Constants and Structure definitions for "Get Self Results" command to follow here\r
93//\r
94typedef struct {\r
95 UINT8 Result;\r
96 UINT8 Param;\r
97} IPMI_MSG_SELFTEST_RESULT_RSP;\r
98\r
99#define IPMI_APP_SELFTEST_NO_ERROR 0x55\r
100#define IPMI_APP_SELFTEST_NOT_IMPLEMENTED 0x56\r
101#define IPMI_APP_SELFTEST_ERROR 0x57\r
102#define IPMI_APP_SELFTEST_FATAL_HW_ERROR 0x58\r
103#define IPMI_APP_SELFTEST_INACCESSIBLE_SEL 0x80\r
104#define IPMI_APP_SELFTEST_INACCESSIBLE_SDR 0x40\r
105#define IPMI_APP_SELFTEST_INACCESSIBLE_FRU 0x20\r
106#define IPMI_APP_SELFTEST_IPMB_SIGNAL_FAIL 0x10\r
107#define IPMI_APP_SELFTEST_SDR_REPOSITORY_EMPTY 0x08\r
108#define IPMI_APP_SELFTEST_FRU_CORRUPT 0x04\r
109#define IPMI_APP_SELFTEST_FW_BOOTBLOCK_CORRUPT 0x02\r
110#define IPMI_APP_SELFTEST_FW_CORRUPT 0x01\r
111\r
112//\r
113// Definitions for Manufacturing Test ON command\r
114//\r
115#define IPMI_APP_MANUFACTURING_TEST_ON 0x5\r
116\r
117//\r
118// Constants and Structure definitions for "Manufacturing Test ON" command to follow here\r
119//\r
120\r
121//\r
122// Definitions for Set ACPI Power State command\r
123//\r
124#define IPMI_APP_SET_ACPI_POWERSTATE 0x6\r
125\r
126//\r
127// Constants and Structure definitions for "Set ACPI Power State" command to follow here\r
128//\r
129typedef struct {\r
130 UINT8 SystemPowerState : 7;\r
131 UINT8 SystemStateChange : 1;\r
132 UINT8 DevicePowerState : 7;\r
133 UINT8 DeviceStateChange : 1;\r
134} IPMI_ACPI_POWER_STATE;\r
135\r
136//\r
137// Definitions for Get ACPI Power State command\r
138//\r
139#define IPMI_APP_GET_ACPI_POWERSTATE 0x7\r
140\r
141//\r
142// Constants and Structure definitions for "Get ACPI Power State" command to follow here\r
143//\r
144\r
145//\r
146// Definitions for Get Device GUID command\r
147//\r
148#define IPMI_APP_GET_DEVICE_GUID 0x8\r
149\r
150//\r
151// Constants and Structure definitions for "Get Device GUID" command to follow here\r
152//\r
153//\r
154// Message structure definition for "Get Device Guid" IPMI command\r
155//\r
156typedef struct {\r
157 UINT8 Guid[16];\r
158} IPMI_MSG_GET_DEVICE_GUID_RSP;\r
159\r
160//\r
161// Below is Definitions for BMC Watchdog Timer Commands (Chapter 27)\r
162//\r
163\r
164//\r
165// Definitions for Reset WatchDog Timer command\r
166//\r
167#define IPMI_APP_RESET_WATCHDOG_TIMER 0x22\r
168\r
169//\r
170// Constants and Structure definitions for "Reset WatchDog Timer" command to follow here\r
171//\r
172typedef struct {\r
173 UINT8 TimerUse : 3;\r
174 UINT8 Reserved : 3;\r
175 UINT8 TimerRunning : 1;\r
176 UINT8 TimerUseExpirationFlagLog : 1;\r
177} IPMI_WATCHDOG_TIMER_USE;\r
178\r
179//\r
180// Definitions for Set WatchDog Timer command\r
181//\r
182#define IPMI_APP_SET_WATCHDOG_TIMER 0x24\r
183\r
184//\r
185// Constants and Structure definitions for "Set WatchDog Timer" command to follow here\r
186//\r
187typedef struct {\r
188 IPMI_WATCHDOG_TIMER_USE TimerUse;\r
189 UINT8 TimerActions;\r
190 UINT8 PretimeoutInterval;\r
191 UINT8 TimerUseExpirationFlagsClear;\r
192 UINT16 InitialCountdownValue;\r
193} IPMI_SET_WATCHDOG_TIMER;\r
194\r
195//\r
196// Definitions for Get WatchDog Timer command\r
197//\r
198#define IPMI_APP_GET_WATCHDOG_TIMER 0x25\r
199\r
200//\r
201// Constants and Structure definitions for "Get WatchDog Timer" command to follow here\r
202//\r
203typedef struct {\r
204 IPMI_WATCHDOG_TIMER_USE TimerUse;\r
205 UINT8 TimerActions;\r
206 UINT8 PretimeoutInterval;\r
207 UINT8 TimerUseExpirationFlagsClear;\r
208 UINT16 InitialCountdownValue;\r
209 UINT16 PresentCountdownValue;\r
210} IPMI_WATCHDOG_TIMER;\r
211\r
212//\r
213// The following srucure is temporary, need to be removed later\r
214//\r
215typedef struct {\r
216 UINT8 TimerUse : 3;\r
217 UINT8 Reserved1 : 3;\r
218 UINT8 StartTimer : 1;\r
219 UINT8 DontLog : 1;\r
220 union {\r
221 struct {\r
222 UINT8 TimeoutAction : 3;\r
223 UINT8 Reserved2 : 1;\r
224 UINT8 PreTimeoutIntr : 3;\r
225 UINT8 Reserved3 : 1;\r
226 } Byte2Bmp;\r
227 UINT8 Data8;\r
228 } Byte2;\r
229\r
230 UINT8 PreTimeoutInterval;\r
231 UINT8 ExpirationReserved1 : 1;\r
232 UINT8 BiosFrb2TimerExpirationFlag : 1;\r
233 UINT8 BiosPostTimerExpirationFlag : 1;\r
234 UINT8 OsLoadTimerExpirationFlag : 1;\r
235 UINT8 ExpirationReserved2 : 4;\r
236 UINT16 Timeout;\r
237 UINT16 CurrCountdown;\r
238 UINT16 Reserved4;\r
239} IPMI_FRB_TIMER;\r
240\r
241//\r
242// Below is Definitions for IPMI Messaging Support Commands (Chapter 22)\r
243//\r
244\r
245//\r
246// Definitions for Set BMC Global Enables command\r
247//\r
248#define IPMI_APP_SET_BMC_GLOBAL_ENABLES 0x2E\r
249\r
250//\r
251// Constants and Structure definitions for "Set BMC Global Enables " command to follow here\r
252//\r
253\r
254//\r
255// Definitions for Get BMC Global Enables command\r
256//\r
257#define IPMI_APP_GET_BMC_GLOBAL_ENABLES 0x2F\r
258\r
259//\r
260// Constants and Structure definitions for "Get BMC Global Enables " command to follow here\r
261//\r
262\r
263//\r
264// Definitions for Clear Message Flags command\r
265//\r
266#define IPMI_APP_CLEAR_MESSAGE_FLAGS 0x30\r
267\r
268//\r
269// Constants and Structure definitions for "Clear Message Flags" command to follow here\r
270//\r
271\r
272//\r
273// Definitions for Get Message Flags command\r
274//\r
275#define IPMI_APP_GET_MESSAGE_FLAGS 0x31\r
276\r
277//\r
278// Constants and Structure definitions for "Get Message Flags" command to follow here\r
279//\r
280\r
281//\r
282// Definitions for Enable Message Channel Receive command\r
283//\r
284#define IPMI_APP_ENABLE_MESSAGE_CHANNEL_RECEIVE 0x32\r
285\r
286//\r
287// Constants and Structure definitions for "Enable Message Channel Receive" command to follow here\r
288//\r
289\r
290//\r
291// Definitions for Get Message command\r
292//\r
293#define IPMI_APP_GET_MESSAGE 0x33\r
294\r
295//\r
296// Constants and Structure definitions for "Get Message" command to follow here\r
297//\r
298\r
299//\r
300// Definitions for Send Message command\r
301//\r
302#define IPMI_APP_SEND_MESSAGE 0x34\r
303\r
304//\r
305// Constants and Structure definitions for "Send Message" command to follow here\r
306//\r
307\r
308//\r
309// Definitions for Read Event Message Buffer command\r
310//\r
311#define IPMI_APP_READ_EVENT_MSG_BUFFER 0x35\r
312\r
313//\r
314// Constants and Structure definitions for "Read Event Message Buffer" command to follow here\r
315//\r
316\r
317//\r
318// Definitions for Get BT Interface Capabilities command\r
319//\r
320#define IPMI_APP_GET_BT_INTERFACE_CAPABILITY 0x36\r
321\r
322//\r
323// Constants and Structure definitions for "Get BT Interface Capabilities" command to follow here\r
324//\r
325\r
326//\r
327// Definitions for Get System GUID command\r
328//\r
329#define IPMI_APP_GET_SYSTEM_GUID 0x37\r
330\r
331//\r
332// Constants and Structure definitions for "Get System GUID" command to follow here\r
333//\r
334\r
335//\r
336// Definitions for Get Channel Authentication Capabilities command\r
337//\r
338#define IPMI_APP_GET_CHANNEL_AUTHENTICATION_CAPABILITIES 0x38\r
339\r
340//\r
341// Constants and Structure definitions for "Get Channel Authentication Capabilities" command to follow here\r
342//\r
343\r
344//\r
345// Definitions for Get Session Challenge command\r
346//\r
347#define IPMI_APP_GET_SESSION_CHALLENGE 0x39\r
348\r
349//\r
350// Constants and Structure definitions for "Get Session Challenge" command to follow here\r
351//\r
352\r
353//\r
354// Definitions for Activate Session command\r
355//\r
356#define IPMI_APP_ACTIVATE_SESSION 0x3A\r
357\r
358//\r
359// Constants and Structure definitions for "Activate Session" command to follow here\r
360//\r
361\r
362//\r
363// Definitions for Set Session Privelege Level command\r
364//\r
365#define IPMI_APP_SET_SESSION_PRIVELEGE_LEVEL 0x3B\r
366\r
367//\r
368// Constants and Structure definitions for "Set Session Privelege Level" command to follow here\r
369//\r
370\r
371//\r
372// Definitions for Close Session command\r
373//\r
374#define IPMI_APP_CLOSE_SESSION 0x3C\r
375\r
376//\r
377// Constants and Structure definitions for "Close Session" command to follow here\r
378//\r
379\r
380//\r
381// Definitions for Get Session Info command\r
382//\r
383#define IPMI_APP_GET_SESSION_INFO 0x3D\r
384\r
385//\r
386// Constants and Structure definitions for "Get Session Info" command to follow here\r
387//\r
388\r
389//\r
390// Definitions for Get Auth Code command\r
391//\r
392#define IPMI_APP_GET_AUTHCODE 0x3F\r
393\r
394//\r
395// Constants and Structure definitions for "Get AuthCode" command to follow here\r
396//\r
397\r
398//\r
399// Definitions for Set Channel Access command\r
400//\r
401#define IPMI_APP_SET_CHANNEL_ACCESS 0x40\r
402\r
403//\r
404// Constants and Structure definitions for "Set Channel Access" command to follow here\r
405//\r
406\r
407//\r
408// Definitions for Get Channel Access command\r
409//\r
410#define IPMI_APP_GET_CHANNEL_ACCESS 0x41\r
411\r
412//\r
413// Constants and Structure definitions for "Get Channel Access" command to follow here\r
414//\r
415typedef struct {\r
416 UINT8 ChannelNo : 4;\r
417 UINT8 Reserve1 : 4;\r
418 UINT8 Reserve2 : 6;\r
419 UINT8 MemoryType : 2;\r
420} IPMI_GET_CHANNEL_ACCESS_COMMAND;\r
421\r
422typedef struct {\r
423 UINT8 AccessMode : 3;\r
424 UINT8 UserLevelAuthEnabled : 1;\r
425 UINT8 MessageAuthEnable : 1;\r
426 UINT8 Alert : 1;\r
427 UINT8 Reserve1 : 2;\r
428 UINT8 ChannelPriviledgeLimit : 4;\r
429 UINT8 Reserve2 : 4;\r
430} IPMI_GET_CHANNEL_ACCESS_RESPONSE;\r
431\r
432//\r
433// Definitions for Get Channel Info command\r
434//\r
435#define IPMI_APP_GET_CHANNEL_INFO 0x42\r
436\r
437//\r
438// Constants and Structure definitions for "Get Channel Info" command to follow here\r
439//\r
440typedef struct {\r
441 UINT8 ChannelNo : 4;\r
442 UINT8 Reserve1 : 4;\r
443 UINT8 ChannelMediumType : 7;\r
444 UINT8 Reserve2 : 1;\r
445 UINT8 ChannelProtocolType : 5;\r
446 UINT8 Reserve3 : 3;\r
447 UINT8 ActiveSessionCount : 6;\r
448 UINT8 SessionSupport : 2;\r
449 UINT32 VendorId : 24;\r
450 UINT16 AuxChannelInfo : 16;\r
451 UINT8 Dummy;\r
452} IPMI_CHANNEL_INFO;\r
453\r
454//\r
455// Definitions for Get Channel Info command\r
456//\r
457#define IPMI_APP_GET_CHANNEL_INFO 0x42\r
458\r
459//\r
460// Constants and Structure definitions for "Get Channel Info" command to follow here\r
461//\r
462\r
463//\r
464// Definitions for Set User Access command\r
465//\r
466#define IPMI_APP_SET_USER_ACCESS 0x43\r
467\r
468//\r
469// Constants and Structure definitions for "Set User Access" command to follow here\r
470//\r
471\r
472//\r
473// Definitions for Get User Access command\r
474//\r
475#define IPMI_APP_GET_USER_ACCESS 0x44\r
476\r
477//\r
478// Constants and Structure definitions for "Get User Access" command to follow here\r
479//\r
480\r
481//\r
482// Definitions for Set User Name command\r
483//\r
484#define IPMI_APP_SET_USER_NAME 0x45\r
485\r
486//\r
487// Constants and Structure definitions for "Set User Name" command to follow here\r
488//\r
489\r
490//\r
491// Definitions for Get User Name command\r
492//\r
493#define IPMI_APP_GET_USER_NAME 0x46\r
494\r
495//\r
496// Constants and Structure definitions for "Get User Name" command to follow here\r
497//\r
498\r
499//\r
500// Definitions for Set User Password command\r
501//\r
502#define IPMI_APP_SET_USER_PASSWORD 0x47\r
503\r
504//\r
505// Constants and Structure definitions for "Set User Password" command to follow here\r
506//\r
507\r
508//\r
509// Below is Definitions for RMCP+ Support and Payload Commands (Chapter 24)\r
510//\r
511\r
512//\r
513// Definitions for Activate Payload command\r
514//\r
515#define IPMI_APP_ACTIVATE_PAYLOAD 0x48\r
516\r
517//\r
518// Constants and Structure definitions for "Activate Payload" command to follow here\r
519//\r
520\r
521//\r
522// Definitions for De-Activate Payload command\r
523//\r
524#define IPMI_APP_DEACTIVATE_PAYLOAD 0x49\r
525\r
526//\r
527// Constants and Structure definitions for "DeActivate Payload" command to follow here\r
528//\r
529\r
530//\r
531// Definitions for Get Payload activation Status command\r
532//\r
533#define IPMI_APP_GET_PAYLOAD_ACTIVATION_STATUS 0x4a\r
534\r
535//\r
536// Constants and Structure definitions for "Get Payload activation Status" command to follow here\r
537//\r
538\r
539//\r
540// Definitions for Get Payload Instance Info command\r
541//\r
542#define IPMI_APP_GET_PAYLOAD_INSTANCE_INFO 0x4b\r
543\r
544//\r
545// Constants and Structure definitions for "Get Payload Instance Info" command to follow here\r
546//\r
547\r
548//\r
549// Definitions for Set User Payload Access command\r
550//\r
551#define IPMI_APP_SET_USER_PAYLOAD_ACCESS 0x4C\r
552\r
553//\r
554// Constants and Structure definitions for "Set User Payload Access" command to follow here\r
555//\r
556\r
557//\r
558// Definitions for Get User Payload Access command\r
559//\r
560#define IPMI_APP_GET_USER_PAYLOAD_ACCESS 0x4D\r
561\r
562//\r
563// Constants and Structure definitions for "Get User Payload Access" command to follow here\r
564//\r
565\r
566//\r
567// Definitions for Get Channel Payload Support command\r
568//\r
569#define IPMI_APP_GET_CHANNEL_PAYLOAD_SUPPORT 0x4E\r
570\r
571//\r
572// Constants and Structure definitions for "Get Channel Payload Support" command to follow here\r
573//\r
574\r
575//\r
576// Definitions for Get Channel Payload Version command\r
577//\r
578#define IPMI_APP_GET_CHANNEL_PAYLOAD_VERSION 0x4F\r
579\r
580//\r
581// Constants and Structure definitions for "Get Channel Payload Version" command to follow here\r
582//\r
583\r
584//\r
585// Definitions for Get Channel OEM Payload Info command\r
586//\r
587#define IPMI_APP_GET_CHANNEL_OEM_PAYLOAD_INFO 0x50\r
588\r
589//\r
590// Constants and Structure definitions for "Get Channel OEM Payload Info" command to follow here\r
591//\r
592\r
593//\r
594// Definitions for Master Write-Read command\r
595//\r
596#define IPMI_APP_MASTER_WRITE_READ 0x52\r
597\r
598//\r
599// Constants and Structure definitions for "Master Write Read" command to follow here\r
600//\r
601\r
602//\r
603// Definitions for Get Channel Cipher Suites command\r
604//\r
605#define IPMI_APP_GET_CHANNEL_CIPHER_SUITES 0x54\r
606\r
607//\r
608// Constants and Structure definitions for "Get Channel Cipher Suites" command to follow here\r
609//\r
610\r
611//\r
612// Below is Definitions for RMCP+ Support and Payload Commands (Chapter 24, Section 3)\r
613//\r
614\r
615//\r
616// Definitions for Suspend-Resume Payload Encryption command\r
617//\r
618#define IPMI_APP_SUSPEND_RESUME_PAYLOAD_ENCRYPTION 0x55\r
619\r
620//\r
621// Constants and Structure definitions for "Suspend-Resume Payload Encryption" command to follow here\r
622//\r
623\r
624//\r
625// Below is Definitions for IPMI Messaging Support Commands (Chapter 22, Section 25 and 9)\r
626//\r
627\r
628//\r
629// Definitions for Set Channel Security Keys command\r
630//\r
631#define IPMI_APP_SET_CHANNEL_SECURITY_KEYS 0x56\r
632\r
633//\r
634// Constants and Structure definitions for "Set Channel Security Keys" command to follow here\r
635//\r
636\r
637//\r
638// Definitions for Get System Interface Capabilities command\r
639//\r
640#define IPMI_APP_GET_SYSTEM_INTERFACE_CAPABILITIES 0x57\r
641\r
642//\r
643// Constants and Structure definitions for "Get System Interface Capabilities" command to follow here\r
644//\r
645\r
646#pragma pack()\r
647#endif\r