]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdePkg/IndustryStandard/Ipmi: Update IPMI header files
authorHao Wu <hao.a.wu@intel.com>
Tue, 17 Apr 2018 07:37:09 +0000 (15:37 +0800)
committerHao Wu <hao.a.wu@intel.com>
Tue, 19 Jun 2018 05:04:32 +0000 (13:04 +0800)
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=814

This commit updates the IPMI related header files.

Cc: Younas Khan <pmdyounaskhan786@gmail.com>
Cc: Michael Kinney <michael.d.kinney@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
MdePkg/Include/IndustryStandard/Ipmi.h
MdePkg/Include/IndustryStandard/IpmiFruInformationStorage.h [new file with mode: 0644]
MdePkg/Include/IndustryStandard/IpmiNetFnApp.h
MdePkg/Include/IndustryStandard/IpmiNetFnChassis.h
MdePkg/Include/IndustryStandard/IpmiNetFnStorage.h
MdePkg/Include/IndustryStandard/IpmiNetFnTransport.h

index fd3a1d2a8fcaea359e559ef2e38b28f5056a75bd..3362191e30790cc42ec255381e737378e6be6e96 100644 (file)
@@ -1,10 +1,11 @@
 /** @file\r
   IPMI 2.0 definitions from the IPMI Specification Version 2.0, Revision 1.1.\r
+  IPMI Platform Management FRU Information Storage Definition v1.0 Revision 1.3.\r
 \r
   See IPMI specification, Appendix G, Command Assignments\r
   and Appendix H, Sub-function Assignments.\r
 \r
-  Copyright (c) 1999 - 2015, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 1999 - 2018, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
 #include <IndustryStandard/IpmiNetFnTransport.h>\r
 #include <IndustryStandard/IpmiNetFnGroupExtension.h>\r
 \r
+#include <IndustryStandard/IpmiFruInformationStorage.h>\r
+\r
+//\r
+// Generic Completion Codes definitions\r
+//\r
+#define IPMI_COMP_CODE_NORMAL                           0x00\r
+#define IPMI_COMP_CODE_NODE_BUSY                        0xC0\r
+#define IPMI_COMP_CODE_INVALID_COMMAND                  0xC1\r
+#define IPMI_COMP_CODE_INVALID_FOR_GIVEN_LUN            0xC2\r
+#define IPMI_COMP_CODE_TIMEOUT                          0xC3\r
+#define IPMI_COMP_CODE_OUT_OF_SPACE                     0xC4\r
+#define IPMI_COMP_CODE_RESERVATION_CANCELED_OR_INVALID  0xC5\r
+#define IPMI_COMP_CODE_REQUEST_DATA_TRUNCATED           0xC6\r
+#define IPMI_COMP_CODE_INVALID_REQUEST_DATA_LENGTH      0xC7\r
+#define IPMI_COMP_CODE_REQUEST_EXCEED_LIMIT             0xC8\r
+#define IPMI_COMP_CODE_OUT_OF_RANGE                     0xC9\r
+#define IPMI_COMP_CODE_CANNOT_RETURN                    0xCA\r
+#define IPMI_COMP_CODE_NOT_PRESENT                      0xCB\r
+#define IPMI_COMP_CODE_INVALID_DATA_FIELD               0xCC\r
+#define IPMI_COMP_CODE_COMMAND_ILLEGAL                  0xCD\r
+#define IPMI_COMP_CODE_CMD_RESP_NOT_PROVIDED            0xCE\r
+#define IPMI_COMP_CODE_FAIL_DUP_REQUEST                 0xCF\r
+#define IPMI_COMP_CODE_SDR_REP_IN_UPDATE_MODE           0xD0\r
+#define IPMI_COMP_CODE_DEV_IN_FW_UPDATE_MODE            0xD1\r
+#define IPMI_COMP_CODE_BMC_INIT_IN_PROGRESS             0xD2\r
+#define IPMI_COMP_CODE_DEST_UNAVAILABLE                 0xD3\r
+#define IPMI_COMP_CODE_INSUFFICIENT_PRIVILEGE           0xD4\r
+#define IPMI_COMP_CODE_UNSUPPORTED_IN_PRESENT_STATE     0xD5\r
+#define IPMI_COMP_CODE_SUBFUNCTION_DISABLED             0xD6\r
+#define IPMI_COMP_CODE_UNSPECIFIED                      0xFF\r
+\r
 #endif\r
diff --git a/MdePkg/Include/IndustryStandard/IpmiFruInformationStorage.h b/MdePkg/Include/IndustryStandard/IpmiFruInformationStorage.h
new file mode 100644 (file)
index 0000000..2b58cbf
--- /dev/null
@@ -0,0 +1,66 @@
+/** @file\r
+  IPMI Platform Management FRU Information Storage Definitions\r
+\r
+  This file contains the definitions for:\r
+    Common Header Format (Chapter 8)\r
+    MultiRecord Header (Section 16.1)\r
+\r
+  Copyright (c) 2018, Intel Corporation. All rights reserved.<BR>\r
+  This program and the accompanying materials\r
+  are licensed and made available under the terms and conditions of the BSD License\r
+  which accompanies this distribution.  The full text of the license may be found at\r
+  http://opensource.org/licenses/bsd-license.php\r
+\r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+  @par Revision Reference:\r
+    - IPMI Platform Management FRU Information Storage Definition v1.0 Revision\r
+      1.3, Dated March 24, 2015.\r
+      https://www.intel.com/content/dam/www/public/us/en/documents/specification-updates/ipmi-platform-mgt-fru-info-storage-def-v1-0-rev-1-3-spec-update.pdf\r
+**/\r
+\r
+#ifndef _IPMI_FRU_INFORMATION_STORAGE_H_\r
+#define _IPMI_FRU_INFORMATION_STORAGE_H_\r
+\r
+#pragma pack(1)\r
+\r
+//\r
+//  Structure definition for FRU Common Header\r
+//\r
+typedef struct {\r
+  UINT8    FormatVersionNumber:4;\r
+  UINT8    Reserved:4;\r
+  UINT8    InternalUseStartingOffset;\r
+  UINT8    ChassisInfoStartingOffset;\r
+  UINT8    BoardAreaStartingOffset;\r
+  UINT8    ProductInfoStartingOffset;\r
+  UINT8    MultiRecInfoStartingOffset;\r
+  UINT8    Pad;\r
+  UINT8    Checksum;\r
+} IPMI_FRU_COMMON_HEADER;\r
+\r
+//\r
+//  Structure definition for FRU MultiRecord Header\r
+//\r
+typedef struct {\r
+  UINT8    RecordTypeId;\r
+  UINT8    RecordFormatVersion:4;\r
+  UINT8    Reserved:3;\r
+  UINT8    EndofList:1;\r
+  UINT8    RecordLength;\r
+  UINT8    RecordChecksum;\r
+  UINT8    HeaderChecksum;\r
+} IPMI_FRU_MULTI_RECORD_HEADER;\r
+\r
+//\r
+//  Structure definition for System UUID Subrecord with checksum.\r
+//\r
+typedef struct {\r
+  UINT8       RecordCheckSum;\r
+  UINT8       SubRecordId;\r
+  EFI_GUID    Uuid;\r
+} IPMI_SYSTEM_UUID_SUB_RECORD_WITH_CHECKSUM;\r
+\r
+#pragma pack()\r
+#endif\r
index 31f9e839ea8145e8d035d78c2fc7e6c531d1818b..cdd3f07c65cfec96e576dbf8911c5cf66fe1c27d 100644 (file)
@@ -11,7 +11,7 @@
   See IPMI specification, Appendix G, Command Assignments\r
   and Appendix H, Sub-function Assignments.\r
 \r
-  Copyright (c) 1999 - 2015, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 1999 - 2018, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -128,6 +128,43 @@ typedef struct {
 //\r
 //  Constants and Structure definitions for "Set ACPI Power State" command to follow here\r
 //\r
+\r
+//\r
+//  Definitions for System Power State\r
+//\r
+// Working\r
+#define IPMI_SYSTEM_POWER_STATE_S0_G0        0x0\r
+#define IPMI_SYSTEM_POWER_STATE_S1           0x1\r
+#define IPMI_SYSTEM_POWER_STATE_S2           0x2\r
+#define IPMI_SYSTEM_POWER_STATE_S3           0x3\r
+#define IPMI_SYSTEM_POWER_STATE_S4           0x4\r
+// Soft off\r
+#define IPMI_SYSTEM_POWER_STATE_S5_G2        0x5\r
+// Sent when message source cannot differentiate between S4 and S5\r
+#define IPMI_SYSTEM_POWER_STATE_S4_S5        0x6\r
+// Mechanical off\r
+#define IPMI_SYSTEM_POWER_STATE_G3           0x7\r
+// Sleeping - cannot differentiate between S1-S3\r
+#define IPMI_SYSTEM_POWER_STATE_SLEEPING     0x8\r
+// Sleeping - cannot differentiate between S1-S4\r
+#define IPMI_SYSTEM_POWER_STATE_G1_SLEEPING  0x9\r
+// S5 entered by override\r
+#define IPMI_SYSTEM_POWER_STATE_OVERRIDE     0xA\r
+#define IPMI_SYSTEM_POWER_STATE_LEGACY_ON    0x20\r
+#define IPMI_SYSTEM_POWER_STATE_LEGACY_OFF   0x21\r
+#define IPMI_SYSTEM_POWER_STATE_UNKNOWN      0x2A\r
+#define IPMI_SYSTEM_POWER_STATE_NO_CHANGE    0x7F\r
+\r
+//\r
+//  Definitions for Device Power State\r
+//\r
+#define IPMI_DEVICE_POWER_STATE_D0           0x0\r
+#define IPMI_DEVICE_POWER_STATE_D1           0x1\r
+#define IPMI_DEVICE_POWER_STATE_D2           0x2\r
+#define IPMI_DEVICE_POWER_STATE_D3           0x3\r
+#define IPMI_DEVICE_POWER_STATE_UNKNOWN      0x2A\r
+#define IPMI_DEVICE_POWER_STATE_NO_CHANGE    0x7F\r
+\r
 typedef struct {\r
   UINT8  AcpiSystemPowerState  : 7;\r
   UINT8  AcpiSystemStateChange : 1;\r
@@ -170,7 +207,25 @@ typedef struct {
 #define IPMI_APP_RESET_WATCHDOG_TIMER  0x22\r
 \r
 //\r
-//  Constants and Structure definitions for "Reset WatchDog Timer" command to follow here\r
+//  Definitions for Set WatchDog Timer command\r
+//\r
+#define IPMI_APP_SET_WATCHDOG_TIMER  0x24\r
+\r
+//\r
+//  Constants and Structure definitions for "Set WatchDog Timer" command to follow here\r
+//\r
+\r
+//\r
+// Definitions for watchdog timer use\r
+//\r
+#define IPMI_WATCHDOG_TIMER_BIOS_FRB2  0x1\r
+#define IPMI_WATCHDOG_TIMER_BIOS_POST  0x2\r
+#define IPMI_WATCHDOG_TIMER_OS_LOADER  0x3\r
+#define IPMI_WATCHDOG_TIMER_SMS        0x4\r
+#define IPMI_WATCHDOG_TIMER_OEM        0x5\r
+\r
+//\r
+//  Structure definition for timer Use\r
 //\r
 typedef struct {\r
   UINT8 TimerUse : 3;\r
@@ -180,16 +235,43 @@ typedef struct {
 } IPMI_WATCHDOG_TIMER_USE;\r
 \r
 //\r
-//  Definitions for Set WatchDog Timer command\r
+//  Definitions for watchdog timeout action\r
 //\r
-#define IPMI_APP_SET_WATCHDOG_TIMER  0x24\r
+#define IPMI_WATCHDOG_TIMER_ACTION_NO_ACTION    0x0\r
+#define IPMI_WATCHDOG_TIMER_ACTION_HARD_RESET   0x1\r
+#define IPMI_WATCHDOG_TIMER_ACTION_POWER_DONW   0x2\r
+#define IPMI_WATCHDOG_TIMER_ACTION_POWER_CYCLE  0x3\r
 \r
 //\r
-//  Constants and Structure definitions for "Set WatchDog Timer" command to follow here\r
+//  Definitions for watchdog pre-timeout interrupt\r
+//\r
+#define IPMI_WATCHDOG_PRE_TIMEOUT_INTERRUPT_NONE       0x0\r
+#define IPMI_WATCHDOG_PRE_TIMEOUT_INTERRUPT_SMI        0x1\r
+#define IPMI_WATCHDOG_PRE_TIMEOUT_INTERRUPT_NMI        0x2\r
+#define IPMI_WATCHDOG_PRE_TIMEOUT_INTERRUPT_MESSAGING  0x3\r
+\r
+//\r
+//  Structure definitions for Timer Actions\r
 //\r
+typedef struct {\r
+  UINT8  TimeoutAction : 3;\r
+  UINT8  Reserved1 : 1;\r
+  UINT8  PreTimeoutInterrupt : 3;\r
+  UINT8  Reserved2 : 1;\r
+} IPMI_WATCHDOG_TIMER_ACTIONS;\r
+\r
+//\r
+//  Bit definitions for Timer use expiration flags\r
+//\r
+#define IPMI_WATCHDOG_TIMER_EXPIRATION_FLAG_BIOS_FRB2  BIT1\r
+#define IPMI_WATCHDOG_TIMER_EXPIRATION_FLAG_BIOS_POST  BIT2\r
+#define IPMI_WATCHDOG_TIMER_EXPIRATION_FLAG_OS_LOAD    BIT3\r
+#define IPMI_WATCHDOG_TIMER_EXPIRATION_FLAG_SMS_OS     BIT4\r
+#define IPMI_WATCHDOG_TIMER_EXPIRATION_FLAG_OEM        BIT5\r
+\r
 typedef struct {\r
   IPMI_WATCHDOG_TIMER_USE         TimerUse;\r
-  UINT8                           TimerActions;\r
+  IPMI_WATCHDOG_TIMER_ACTIONS     TimerActions;\r
   UINT8                           PretimeoutInterval;\r
   UINT8                           TimerUseExpirationFlagsClear;\r
   UINT16                          InitialCountdownValue;\r
@@ -206,7 +288,7 @@ typedef struct {
 typedef struct {\r
   UINT8                           CompletionCode;\r
   IPMI_WATCHDOG_TIMER_USE         TimerUse;\r
-  UINT8                           TimerActions;\r
+  IPMI_WATCHDOG_TIMER_ACTIONS     TimerActions;\r
   UINT8                           PretimeoutInterval;\r
   UINT8                           TimerUseExpirationFlagsClear;\r
   UINT16                          InitialCountdownValue;\r
@@ -225,6 +307,16 @@ typedef struct {
 //\r
 //  Constants and Structure definitions for "Set BMC Global Enables " command to follow here\r
 //\r
+typedef struct {\r
+  UINT8  EnableReceiveMessageQueueInterrupt : 1;\r
+  UINT8  EnableEventMessageBufferFullInterrupt : 1;\r
+  UINT8  EnableEventMessageBuffer : 1;\r
+  UINT8  EnableSystemEventLogging : 1;\r
+  UINT8  Reserved : 1;\r
+  UINT8  Oem0Enable : 1;\r
+  UINT8  Oem1Enable : 1;\r
+  UINT8  Oem2Enable : 1;\r
+} IPMI_SET_BMC_GLOBAL_ENABLES_REQUEST;\r
 \r
 //\r
 //  Definitions for Get BMC Global Enables command\r
@@ -234,6 +326,17 @@ typedef struct {
 //\r
 //  Constants and Structure definitions for "Get BMC Global Enables " command to follow here\r
 //\r
+typedef struct {\r
+  UINT8  CompletionCode;\r
+  UINT8  ReceiveMessageQueueInterrupt : 1;\r
+  UINT8  EventMessageBufferFullInterrupt : 1;\r
+  UINT8  EventMessageBuffer : 1;\r
+  UINT8  SystemEventLogging : 1;\r
+  UINT8  Reserved : 1;\r
+  UINT8  Oem0Enable : 1;\r
+  UINT8  Oem1Enable : 1;\r
+  UINT8  Oem2Enable : 1;\r
+} IPMI_GET_BMC_GLOBAL_ENABLES_RESPONSE;\r
 \r
 //\r
 //  Definitions for Clear Message Flags command\r
@@ -243,6 +346,16 @@ typedef struct {
 //\r
 //  Constants and Structure definitions for "Clear Message Flags" command to follow here\r
 //\r
+typedef struct {\r
+  UINT8  ClearReceiveMessageQueue : 1;\r
+  UINT8  ClearEventMessageBuffer : 1;\r
+  UINT8  Reserved0 : 1;\r
+  UINT8  ClearWatchdogPerTimeoutInterruptFlag : 1;\r
+  UINT8  Reserved : 1;\r
+  UINT8  ClearOem0Enable : 1;\r
+  UINT8  ClearOem1Enable : 1;\r
+  UINT8  ClearOem2Enable : 1;\r
+} IPMI_CLEAR_MESSAGE_FLAGS_REQUEST;\r
 \r
 //\r
 //  Definitions for Get Message Flags command\r
@@ -252,6 +365,17 @@ typedef struct {
 //\r
 //  Constants and Structure definitions for "Get Message Flags" command to follow here\r
 //\r
+typedef struct {\r
+  UINT8  CompletionCode;\r
+  UINT8  ReceiveMessageAvailable : 1;\r
+  UINT8  EventMessageBufferFull : 1;\r
+  UINT8  Reserved0 : 1;\r
+  UINT8  WatchdogPerTimeoutInterruptOccurred : 1;\r
+  UINT8  Reserved : 1;\r
+  UINT8  Oem0DataAvailable : 1;\r
+  UINT8  Oem1DataAvailable : 1;\r
+  UINT8  Oem2DataAvailable : 1;\r
+} IPMI_GET_MESSAGE_FLAGS_RESPONSE;\r
 \r
 //\r
 //  Definitions for Enable Message Channel Receive command\r
@@ -270,6 +394,12 @@ typedef struct {
 //\r
 //  Constants and Structure definitions for "Get Message" command to follow here\r
 //\r
+typedef struct {\r
+  UINT8  CompletionCode;\r
+  UINT8  ChannelNumber : 4;\r
+  UINT8  InferredPrivilegeLevel : 4;\r
+  UINT8  MessageData[0];\r
+} IPMI_GET_MESSAGE_RESPONSE;\r
 \r
 //\r
 //  Definitions for Send Message command\r
@@ -279,6 +409,19 @@ typedef struct {
 //\r
 //  Constants and Structure definitions for "Send Message" command to follow here\r
 //\r
+typedef struct {\r
+  UINT8  CompletionCode;\r
+  UINT8  ChannelNumber : 4;\r
+  UINT8  Authentication : 1;\r
+  UINT8  Encryption : 1;\r
+  UINT8  Tracking : 2;\r
+  UINT8  MessageData[0];\r
+} IPMI_SEND_MESSAGE_REQUEST;\r
+\r
+typedef struct {\r
+  UINT8  CompletionCode;\r
+  UINT8  ResponseData[0];\r
+} IPMI_SEND_MESSAGE_RESPONSE;\r
 \r
 //\r
 //  Definitions for Read Event Message Buffer command\r
@@ -387,6 +530,21 @@ typedef struct {
 //\r
 //  Constants and Structure definitions for "Get Channel Access" command to follow here\r
 //\r
+\r
+//\r
+//  Definitions for channel access memory type in Get Channel Access command request\r
+//\r
+#define IPMI_CHANNEL_ACCESS_MEMORY_TYPE_NON_VOLATILE              0x1\r
+#define IPMI_CHANNEL_ACCESS_MEMORY_TYPE_PRESENT_VOLATILE_SETTING  0x2\r
+\r
+//\r
+//  Definitions for channel access modes in Get Channel Access command response\r
+//\r
+#define IPMI_CHANNEL_ACCESS_MODES_DISABLED          0x0\r
+#define IPMI_CHANNEL_ACCESS_MODES_PRE_BOOT_ONLY     0x1\r
+#define IPMI_CHANNEL_ACCESS_MODES_ALWAYS_AVAILABLE  0x2\r
+#define IPMI_CHANNEL_ACCESS_MODES_SHARED            0x3\r
+\r
 typedef struct {\r
   UINT8  ChannelNo : 4;\r
   UINT8  Reserve1 : 4;\r
@@ -413,6 +571,38 @@ typedef struct {
 //\r
 //  Constants and Structure definitions for "Get Channel Info" command to follow here\r
 //\r
+\r
+//\r
+//  Definitions for channel media type\r
+//\r
+// IPMB (I2C)\r
+#define IPMI_CHANNEL_MEDIA_TYPE_IPMB              0x1\r
+// ICMB v1.0\r
+#define IPMI_CHANNEL_MEDIA_TYPE_ICMB_1_0          0x2\r
+// ICMB v0.9\r
+#define IPMI_CHANNEL_MEDIA_TYPE_ICMB_0_9          0x3\r
+// 802.3 LAN\r
+#define IPMI_CHANNEL_MEDIA_TYPE_802_3_LAN         0x4\r
+// Asynch. Serial/Modem (RS-232)\r
+#define IPMI_CHANNEL_MEDIA_TYPE_RS_232            0x5\r
+// Other LAN\r
+#define IPMI_CHANNEL_MEDIA_TYPE_OTHER_LAN         0x6\r
+// PCI SMBus\r
+#define IPMI_CHANNEL_MEDIA_TYPE_PCI_SM_BUS        0x7\r
+// SMBus v1.0/1.1\r
+#define IPMI_CHANNEL_MEDIA_TYPE_SM_BUS_V1         0x8\r
+// SMBus v2.0\r
+#define IPMI_CHANNEL_MEDIA_TYPE_SM_BUS_V2         0x9\r
+// USB 1.x\r
+#define IPMI_CHANNEL_MEDIA_TYPE_USB1              0xA\r
+// USB 2.x\r
+#define IPMI_CHANNEL_MEDIA_TYPE_USB2              0xB\r
+// System Interface (KCS, SMIC, or BT)\r
+#define IPMI_CHANNEL_MEDIA_TYPE_SYSTEM_INTERFACE  0xC\r
+// OEM\r
+#define IPMI_CHANNEL_MEDIA_TYPE_OEM_START         0x60\r
+#define IPMI_CHANNEL_MEDIA_TYPE_OEM_END           0x7F\r
+\r
 typedef struct {\r
   UINT8   CompletionCode;\r
   UINT8   ChannelNo : 4;\r
@@ -453,6 +643,27 @@ typedef struct {
 //\r
 //  Constants and Structure definitions for "Get User Access" command to follow here\r
 //\r
+typedef struct {\r
+  UINT8   ChannelNo : 4;\r
+  UINT8   Reserved1 : 4;\r
+  UINT8   UserId : 6;\r
+  UINT8   Reserved2 : 2;\r
+} IPMI_GET_USER_ACCESS_REQUEST;\r
+\r
+typedef struct {\r
+  UINT8   CompletionCode;\r
+  UINT8   MaxUserId : 6;\r
+  UINT8   Reserved1 : 2;\r
+  UINT8   CurrentUserId : 6;\r
+  UINT8   UserIdEnableStatus : 2;\r
+  UINT8   FixedUserId : 6;\r
+  UINT8   Reserved2 : 2;\r
+  UINT8   UserPrivilegeLimit : 4;\r
+  UINT8   EnableIpmiMessaging : 1;\r
+  UINT8   EnableUserLinkAuthetication : 1;\r
+  UINT8   UserAccessAvailable : 1;\r
+  UINT8   Reserved3 : 1;\r
+} IPMI_GET_USER_ACCESS_RESPONSE;\r
 \r
 //\r
 //  Definitions for Set User Name command\r
@@ -462,6 +673,11 @@ typedef struct {
 //\r
 //  Constants and Structure definitions for "Set User Name" command to follow here\r
 //\r
+typedef struct {\r
+  UINT8  UserId : 6;\r
+  UINT8  Reserved : 2;\r
+  UINT8  UserName[16];\r
+} IPMI_SET_USER_NAME_REQUEST;\r
 \r
 //\r
 //  Definitions for Get User Name command\r
@@ -471,6 +687,15 @@ typedef struct {
 //\r
 //  Constants and Structure definitions for "Get User Name" command to follow here\r
 //\r
+typedef struct {\r
+  UINT8  UserId : 6;\r
+  UINT8  Reserved : 2;\r
+} IPMI_GET_USER_NAME_REQUEST;\r
+\r
+typedef struct {\r
+  UINT8  CompletionCode;\r
+  UINT8  UserName[16];\r
+} IPMI_GET_USER_NAME_RESPONSE;\r
 \r
 //\r
 //  Definitions for Set User Password command\r
@@ -481,6 +706,29 @@ typedef struct {
 //  Constants and Structure definitions for "Set User Password" command to follow here\r
 //\r
 \r
+//\r
+//  Definitions for Set User password command operation type\r
+//\r
+#define IPMI_SET_USER_PASSWORD_OPERATION_TYPE_DISABLE_USER   0x0\r
+#define IPMI_SET_USER_PASSWORD_OPERATION_TYPE_ENABLE_USER    0x1\r
+#define IPMI_SET_USER_PASSWORD_OPERATION_TYPE_SET_PASSWORD   0x2\r
+#define IPMI_SET_USER_PASSWORD_OPERATION_TYPE_TEST_PASSWORD  0x3\r
+\r
+//\r
+//  Definitions for Set user password command password size\r
+//\r
+#define IPMI_SET_USER_PASSWORD_PASSWORD_SIZE_16  0x0\r
+#define IPMI_SET_USER_PASSWORD_PASSWORD_SIZE_20  0x1\r
+\r
+typedef struct {\r
+  UINT8   UserId : 6;\r
+  UINT8   Reserved1 : 1;\r
+  UINT8   PasswordSize : 1;\r
+  UINT8   Operation : 2;\r
+  UINT8   Reserved2 : 6;\r
+  UINT8   PasswordData[0];  // 16 or 20 bytes, depending on the 'PasswordSize' field\r
+} IPMI_SET_USER_PASSWORD_REQUEST;\r
+\r
 //\r
 //  Below is Definitions for RMCP+ Support and Payload Commands (Chapter 24)\r
 //\r
@@ -619,5 +867,12 @@ typedef struct {
 //  Constants and Structure definitions for "Get System Interface Capabilities" command to follow here\r
 //\r
 \r
+//\r
+//  Definitions for Get System Interface Capabilities command SSIF transaction support\r
+//\r
+#define IPMI_GET_SYSTEM_INTERFACE_CAPABILITIES_SSIF_TRANSACTION_SUPPORT_SINGLE_PARTITION_RW             0x0\r
+#define IPMI_GET_SYSTEM_INTERFACE_CAPABILITIES_SSIF_TRANSACTION_SUPPORT_MULTI_PARTITION_RW              0x1\r
+#define IPMI_GET_SYSTEM_INTERFACE_CAPABILITIES_SSIF_TRANSACTION_SUPPORT_MULTI_PARTITION_RW_WITH_MIDDLE  0x2\r
+\r
 #pragma pack()\r
 #endif\r
index b549dc436630d9c5f4e8096f7c4d2464b123669c..b77413f4ceb19dff2c22bdd4b09832bf7e85c208 100644 (file)
@@ -7,7 +7,7 @@
   See IPMI specification, Appendix G, Command Assignments\r
   and Appendix H, Sub-function Assignments.\r
 \r
-  Copyright (c) 1999 - 2015, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 1999 - 2018, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
 //\r
 //  Constants and Structure definitions for "Get Chassis Capabilities" command to follow here\r
 //\r
+typedef struct {\r
+  UINT8   CompletionCode;\r
+  UINT8   CapabilitiesFlags;\r
+  UINT8   ChassisFruInfoDeviceAddress;\r
+  UINT8   ChassisSDRDeviceAddress;\r
+  UINT8   ChassisSELDeviceAddress;\r
+  UINT8   ChassisSystemManagementDeviceAddress;\r
+  UINT8   ChassisBridgeDeviceAddress;\r
+} IPMI_GET_CHASSIS_CAPABILITIES_RESPONSE;\r
 \r
 //\r
 //  Definitions for Get Chassis Status command\r
 //\r
 //  Constants and Structure definitions for "Get Chassis Status" command to follow here\r
 //\r
+typedef struct {\r
+  UINT8   CompletionCode;\r
+  UINT8   CurrentPowerState;\r
+  UINT8   LastPowerEvent;\r
+  UINT8   MiscChassisState;\r
+  UINT8   FrontPanelButtonCapabilities;\r
+} IPMI_GET_CHASSIS_STATUS_RESPONSE;\r
 \r
 //\r
 //  Definitions for Chassis Control command\r
 //\r
 //  Constants and Structure definitions for "Chassis Control" command to follow here\r
 //\r
+typedef struct {\r
+  UINT8   ChassisControl:4;\r
+  UINT8   Reserved:4;\r
+} IPMI_CHASSIS_CONTROL_REQUEST;\r
 \r
 //\r
 //  Definitions for Chassis Reset command\r
 //\r
 //  Constants and Structure definitions for "Set Power Restore Policy" command to follow here\r
 //\r
+typedef struct {\r
+  UINT8   PowerRestorePolicy:3;\r
+  UINT8   Reserved:5;\r
+} IPMI_SET_POWER_RESTORE_POLICY_REQUEST;\r
+\r
+typedef struct {\r
+  UINT8   CompletionCode;\r
+  UINT8   PowerRestorePolicySupport;\r
+} IPMI_SET_POWER_RESTORE_POLICY_RESPONSE;\r
 \r
 //\r
 //  Definitions for Get System Restart Cause command\r
@@ -138,7 +167,7 @@ typedef struct {
 } IPMI_SET_BOOT_OPTIONS_REQUEST;\r
 \r
 //\r
-//  Definitions for Get System BOOT options command\r
+//  Definitions for Get System Boot options command\r
 //\r
 #define IPMI_CHASSIS_GET_SYSTEM_BOOT_OPTIONS 0x09\r
 \r
@@ -171,6 +200,20 @@ typedef struct {
   UINT8   Reserved[3];\r
 } IPMI_BOOT_INITIATOR;\r
 \r
+//\r
+// Definitions for boot option parameter selector\r
+//\r
+#define IPMI_BOOT_OPTIONS_PARAMETER_SELECTOR_SET_IN_PROGRESS             0x0\r
+#define IPMI_BOOT_OPTIONS_PARAMETER_SELECTOR_SERVICE_PARTITION_SELECTOR  0x1\r
+#define IPMI_BOOT_OPTIONS_PARAMETER_SELECTOR_SERVICE_PARTITION_SCAN      0x2\r
+#define IPMI_BOOT_OPTIONS_PARAMETER_SELECTOR_BMC_BOOT_FLAG               0x3\r
+#define IPMI_BOOT_OPTIONS_PARAMETER_BOOT_INFO_ACK                        0x4\r
+#define IPMI_BOOT_OPTIONS_PARAMETER_BOOT_FLAGS                           0x5\r
+#define IPMI_BOOT_OPTIONS_PARAMETER_BOOT_INITIATOR_INFO                  0x6\r
+#define IPMI_BOOT_OPTIONS_PARAMETER_BOOT_INITIATOR_MAILBOX               0x7\r
+#define IPMI_BOOT_OPTIONS_PARAMETER_OEM_BEGIN                            0x60\r
+#define IPMI_BOOT_OPTIONS_PARAMETER_OEM_END                              0x7F\r
+\r
 //\r
 // Response Parameters for IPMI Get Boot Options\r
 //\r
@@ -186,7 +229,7 @@ typedef struct {
 typedef struct {\r
   UINT8   ServicePartitionDiscovered:1;\r
   UINT8   ServicePartitionScanRequest:1;\r
-  UINT8   Reserved: 5;\r
+  UINT8   Reserved: 6;\r
 } IPMI_BOOT_OPTIONS_RESPONSE_PARAMETER_2;\r
 \r
 typedef struct {\r
@@ -199,13 +242,37 @@ typedef struct {
   UINT8   BootInitiatorAcknowledgeData;\r
 } IPMI_BOOT_OPTIONS_RESPONSE_PARAMETER_4;\r
 \r
+//\r
+//  Definitions for the 'Boot device selector' field of Boot Option Parameters #5\r
+//\r
+#define IPMI_BOOT_DEVICE_SELECTOR_NO_OVERRIDE           0x0\r
+#define IPMI_BOOT_DEVICE_SELECTOR_PXE                   0x1\r
+#define IPMI_BOOT_DEVICE_SELECTOR_HARDDRIVE             0x2\r
+#define IPMI_BOOT_DEVICE_SELECTOR_HARDDRIVE_SAFE_MODE   0x3\r
+#define IPMI_BOOT_DEVICE_SELECTOR_DIAGNOSTIC_PARTITION  0x4\r
+#define IPMI_BOOT_DEVICE_SELECTOR_CD_DVD                0x5\r
+#define IPMI_BOOT_DEVICE_SELECTOR_BIOS_SETUP            0x6\r
+#define IPMI_BOOT_DEVICE_SELECTOR_REMOTE_FLOPPY         0x7\r
+#define IPMI_BOOT_DEVICE_SELECTOR_REMOTE_CD_DVD         0x8\r
+#define IPMI_BOOT_DEVICE_SELECTOR_PRIMARY_REMOTE_MEDIA  0x9\r
+#define IPMI_BOOT_DEVICE_SELECTOR_REMOTE_HARDDRIVE      0xB\r
+#define IPMI_BOOT_DEVICE_SELECTOR_FLOPPY                0xF\r
+\r
 #define BOOT_OPTION_HANDLED_BY_BIOS 0x01\r
 \r
+//\r
+//  Constant definitions for the 'BIOS Mux Control Override' field of Boot Option Parameters #5\r
+//\r
+#define BIOS_MUX_CONTROL_OVERRIDE_RECOMMEND_SETTING    0x00\r
+#define BIOS_MUX_CONTROL_OVERRIDE_FORCE_TO_BMC         0x01\r
+#define BIOS_MUX_CONTROL_OVERRIDE_FORCE_TO_SYSTEM      0x02\r
+\r
 typedef struct {\r
   //\r
   // Data 1\r
   //\r
-  UINT8   Reserved0:6;\r
+  UINT8   Reserved0:5;\r
+  UINT8   BiosBootType:1;\r
   UINT8   PersistentOptions:1;\r
   UINT8   BootFlagValid:1;\r
   //\r
@@ -217,8 +284,8 @@ typedef struct {
   UINT8   LockKeyboard:1;\r
   UINT8   CmosClear:1;\r
   //\r
-  //\r
   // Data 3\r
+  //\r
   UINT8   ConsoleRedirection:2;\r
   UINT8   LockSleep:1;\r
   UINT8   UserPasswordBypass:1;\r
@@ -228,9 +295,14 @@ typedef struct {
   //\r
   // Data 4\r
   //\r
-  UINT8   BiosMuxControlOverride:2;\r
+  UINT8   BiosMuxControlOverride:3;\r
   UINT8   BiosSharedModeOverride:1;\r
   UINT8   Reserved1:4;\r
+  //\r
+  // Data 5\r
+  //\r
+  UINT8   DeviceInstanceSelector:5;\r
+  UINT8   Reserved2:3;\r
 } IPMI_BOOT_OPTIONS_RESPONSE_PARAMETER_5;\r
 \r
 typedef struct {\r
index 7abcd4a3be4e9f559fc47894a9ae480e68d39d9b..fe5ed38179a9fa59e7d75e4c497d4b02591ee8e0 100644 (file)
@@ -10,7 +10,7 @@
   See IPMI specification, Appendix G, Command Assignments\r
   and Appendix H, Sub-function Assignments.\r
 \r
-  Copyright (c) 1999 - 2015, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 1999 - 2018, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
 //\r
 //  Constants and Structure definitions for "Get Fru Inventory Area Info" command to follow here\r
 //\r
+typedef struct {\r
+  UINT8  DeviceId;\r
+} IPMI_GET_FRU_INVENTORY_AREA_INFO_REQUEST;\r
+\r
+typedef struct {\r
+  UINT8   CompletionCode;\r
+  UINT16  InventoryAreaSize;\r
+  UINT8   AccessType;\r
+} IPMI_GET_FRU_INVENTORY_AREA_INFO_RESPONSE;\r
 \r
 //\r
-//  Definitions for Get Fru Data command\r
+//  Definitions for Read Fru Data command\r
 //\r
 #define IPMI_STORAGE_READ_FRU_DATA 0x11\r
 \r
 //\r
-//  Constants and Structure definitions for "Get Fru Data" command to follow here\r
+//  Constants and Structure definitions for "Read Fru Data" command to follow here\r
 //\r
 typedef struct {\r
   UINT8   FruDeviceId;\r
@@ -64,6 +73,18 @@ typedef struct {
   UINT8                Count;\r
 } IPMI_FRU_READ_COMMAND;\r
 \r
+typedef struct {\r
+  UINT8   DeviceId;\r
+  UINT16  InventoryOffset;\r
+  UINT8   CountToRead;\r
+} IPMI_READ_FRU_DATA_REQUEST;\r
+\r
+typedef struct {\r
+  UINT8   CompletionCode;\r
+  UINT8   CountReturned;\r
+  UINT8   Data[0];\r
+} IPMI_READ_FRU_DATA_RESPONSE;\r
+\r
 //\r
 //  Definitions for Write Fru Data command\r
 //\r
@@ -77,6 +98,17 @@ typedef struct {
   UINT8                FruData[16];\r
 } IPMI_FRU_WRITE_COMMAND;\r
 \r
+typedef struct {\r
+  UINT8   DeviceId;\r
+  UINT16  InventoryOffset;\r
+  UINT8   Data[0];\r
+} IPMI_WRITE_FRU_DATA_REQUEST;\r
+\r
+typedef struct {\r
+  UINT8   CompletionCode;\r
+  UINT8   CountWritten;\r
+} IPMI_WRITE_FRU_DATA_RESPONSE;\r
+\r
 //\r
 //  Below is Definitions for SDR Repository (Chapter 33)\r
 //\r
@@ -103,7 +135,7 @@ typedef struct {
   UINT8   Reserved : 1;\r
   UINT8   SdrRepUpdateOp : 2;\r
   UINT8   Overflow : 1;\r
-} IPMI_GET_SDR_REPOSITORY_INFO;\r
+} IPMI_GET_SDR_REPOSITORY_INFO_RESPONSE;\r
 \r
 //\r
 //  Definitions for Get SDR Repository Allocateion Info command\r
@@ -122,6 +154,10 @@ typedef struct {
 //\r
 //  Constants and Structure definitions for "Reserve SDR Repository" command to follow here\r
 //\r
+typedef struct {\r
+  UINT8  CompletionCode;\r
+  UINT8  ReservationId[2];  // Reservation ID. LS byte first.\r
+} IPMI_RESERVE_SDR_REPOSITORY_RESPONSE;\r
 \r
 //\r
 //  Definitions for Get SDR command\r
@@ -253,27 +289,25 @@ typedef struct {
 } IPMI_SDR_RECORD_STRUCT_11;\r
 \r
 typedef struct {\r
-  UINT16              NextRecordId;       //1\r
-  UINT16              RecordId;           //3\r
-  UINT8               Version;            //5\r
-  UINT8               RecordType;         //6\r
-  UINT8               RecordLength;       //7\r
-  UINT8               ManufacturerId[3];  //8\r
+  UINT16              RecordId;           //1\r
+  UINT8               Version;            //3\r
+  UINT8               RecordType;         //4\r
+  UINT8               RecordLength;       //5\r
+  UINT8               ManufacturerId[3];  //6\r
   UINT8               StringChars[20];\r
 } IPMI_SDR_RECORD_STRUCT_C0;\r
 \r
 typedef struct {\r
-  UINT16              NextRecordId;       //1\r
-  UINT16              RecordId;           //3\r
-  UINT8               Version;            //5\r
-  UINT8               RecordType;         //6\r
-  UINT8               RecordLength;       //7\r
+  UINT16              RecordId;           //1\r
+  UINT8               Version;            //3\r
+  UINT8               RecordType;         //4\r
+  UINT8               RecordLength;       //5\r
 } IPMI_SDR_RECORD_STRUCT_HEADER;\r
 \r
 typedef union {\r
-  IPMI_SDR_RECORD_STRUCT_1  SensorType1;\r
-  IPMI_SDR_RECORD_STRUCT_2  SensorType2;\r
-  IPMI_SDR_RECORD_STRUCT_11 SensorType11;\r
+  IPMI_SDR_RECORD_STRUCT_1        SensorType1;\r
+  IPMI_SDR_RECORD_STRUCT_2        SensorType2;\r
+  IPMI_SDR_RECORD_STRUCT_11       SensorType11;\r
   IPMI_SDR_RECORD_STRUCT_C0       SensorTypeC0;\r
   IPMI_SDR_RECORD_STRUCT_HEADER   SensorHeader;\r
 } IPMI_SENSOR_RECORD_STRUCT;\r
@@ -285,6 +319,12 @@ typedef struct {
   UINT8       BytesToRead;\r
 } IPMI_GET_SDR_REQUEST;\r
 \r
+typedef struct {\r
+  UINT8                        CompletionCode;\r
+  UINT16                       NextRecordId;\r
+  IPMI_SENSOR_RECORD_STRUCT    RecordData;\r
+} IPMI_GET_SDR_RESPONSE;\r
+\r
 //\r
 //  Definitions for Add SDR command\r
 //\r
@@ -378,6 +418,12 @@ typedef struct {
 //\r
 //  Constants and Structure definitions for "Get SEL Info" command to follow here\r
 //\r
+#define IPMI_GET_SEL_INFO_OPERATION_SUPPORT_GET_SEL_ALLOCATION_INFO_CMD    BIT0\r
+#define IPMI_GET_SEL_INFO_OPERATION_SUPPORT_RESERVE_SEL_CMD                BIT1\r
+#define IPMI_GET_SEL_INFO_OPERATION_SUPPORT_PARTIAL_ADD_SEL_ENTRY_CMD      BIT2\r
+#define IPMI_GET_SEL_INFO_OPERATION_SUPPORT_DELETE_SEL_CMD                 BIT3\r
+#define IPMI_GET_SEL_INFO_OPERATION_SUPPORT_OVERFLOW_FLAG                  BIT7\r
+\r
 typedef struct {\r
   UINT8   CompletionCode;\r
   UINT8   Version;              // Version of SEL\r
@@ -405,6 +451,10 @@ typedef struct {
 //\r
 //  Constants and Structure definitions for "Reserve SEL" command to follow here\r
 //\r
+typedef struct {\r
+  UINT8  CompletionCode;\r
+  UINT8  ReservationId[2];  // Reservation ID. LS byte first.\r
+} IPMI_RESERVE_SEL_RESPONSE;\r
 \r
 //\r
 //  Definitions for Get SEL Entry command\r
@@ -414,6 +464,38 @@ typedef struct {
 //\r
 //  Constants and Structure definitions for "Get SEL Entry" command to follow here\r
 //\r
+\r
+//\r
+//  Below is Definitions for SEL Record Formats (Chapter 32)\r
+//\r
+typedef struct {\r
+  UINT16  RecordId;\r
+  UINT8   RecordType;\r
+  UINT32  TimeStamp;\r
+  UINT16  GeneratorId;\r
+  UINT8   EvMRevision;\r
+  UINT8   SensorType;\r
+  UINT8   SensorNumber;\r
+  UINT8   EventDirType;\r
+  UINT8   OEMEvData1;\r
+  UINT8   OEMEvData2;\r
+  UINT8   OEMEvData3;\r
+} IPMI_SEL_EVENT_RECORD_DATA;\r
+\r
+typedef struct {\r
+  UINT16  RecordId;\r
+  UINT8   RecordType;  // C0h-DFh = OEM system event record\r
+  UINT32  TimeStamp;\r
+  UINT8   ManufacturerId[3];\r
+  UINT8   OEMDefined[6];\r
+} IPMI_TIMESTAMPED_OEM_SEL_RECORD_DATA;\r
+\r
+typedef struct {\r
+  UINT16  RecordId;\r
+  UINT8   RecordType;  // E0h-FFh = OEM system event record\r
+  UINT8   OEMDefined[13];\r
+} IPMI_NON_TIMESTAMPED_OEM_SEL_RECORD_DATA;\r
+\r
 typedef struct {\r
   UINT8 ReserveId[2]; // Reservation ID, LS Byte First\r
   UINT8 SelRecID[2];  // Sel Record ID, LS Byte First\r
@@ -421,6 +503,12 @@ typedef struct {
   UINT8 BytesToRead;  // Bytes to be Read, 0xFF for entire record\r
 } IPMI_GET_SEL_ENTRY_REQUEST;\r
 \r
+typedef struct {\r
+  UINT8                       CompletionCode;\r
+  UINT16                      NextSelRecordId; // Next SEL Record ID, LS Byte first\r
+  IPMI_SEL_EVENT_RECORD_DATA  RecordData;\r
+} IPMI_GET_SEL_ENTRY_RESPONSE;\r
+\r
 //\r
 //  Definitions for Add SEL Entry command\r
 //\r
@@ -429,6 +517,14 @@ typedef struct {
 //\r
 //  Constants and Structure definitions for "Add SEL Entry" command to follow here\r
 //\r
+typedef struct {\r
+  IPMI_SEL_EVENT_RECORD_DATA  RecordData;\r
+} IPMI_ADD_SEL_ENTRY_REQUEST;\r
+\r
+typedef struct {\r
+  UINT8   CompletionCode;\r
+  UINT16  RecordId;  // Record ID for added record, LS Byte first\r
+} IPMI_ADD_SEL_ENTRY_RESPONSE;\r
 \r
 //\r
 //  Definitions for Partial Add SEL Entry command\r
@@ -438,6 +534,18 @@ typedef struct {
 //\r
 //  Constants and Structure definitions for "Partial Add SEL Entry" command to follow here\r
 //\r
+typedef struct {\r
+  UINT16  ReservationId;\r
+  UINT16  RecordId;\r
+  UINT8   OffsetIntoRecord;\r
+  UINT8   InProgress;\r
+  UINT8   RecordData[0];\r
+} IPMI_PARTIAL_ADD_SEL_ENTRY_REQUEST;\r
+\r
+typedef struct {\r
+  UINT8   CompletionCode;\r
+  UINT16  RecordId;\r
+} IPMI_PARTIAL_ADD_SEL_ENTRY_RESPONSE;\r
 \r
 //\r
 //  Definitions for Delete SEL Entry command\r
@@ -450,7 +558,15 @@ typedef struct {
 typedef struct {\r
   UINT8 ReserveId[2];       // Reservation ID, LS byte first\r
   UINT8 RecordToDelete[2];  // Record to Delete, LS Byte First\r
-} IPMI_DELETE_SEL_REQUEST;\r
+} IPMI_DELETE_SEL_ENTRY_REQUEST;\r
+\r
+#define IPMI_DELETE_SEL_ENTRY_RESPONSE_TYPE_UNSUPPORTED     0x80\r
+#define IPMI_DELETE_SEL_ENTRY_RESPONSE_ERASE_IN_PROGRESS    0x81\r
+\r
+typedef struct {\r
+  UINT8   CompletionCode;\r
+  UINT16  RecordId;  // Record ID added. LS byte first\r
+} IPMI_DELETE_SEL_ENTRY_RESPONSE;\r
 \r
 //\r
 //  Definitions for Clear SEL command\r
@@ -460,6 +576,12 @@ typedef struct {
 //\r
 //  Constants and Structure definitions for "Clear SEL" command to follow here\r
 //\r
+#define IPMI_CLEAR_SEL_REQUEST_C_CHAR_ASCII        0x43\r
+#define IPMI_CLEAR_SEL_REQUEST_L_CHAR_ASCII        0x4C\r
+#define IPMI_CLEAR_SEL_REQUEST_R_CHAR_ASCII        0x52\r
+#define IPMI_CLEAR_SEL_REQUEST_INITIALIZE_ERASE    0xAA\r
+#define IPMI_CLEAR_SEL_REQUEST_GET_ERASE_STATUS    0x00\r
+\r
 typedef struct {\r
   UINT8 Reserve[2]; // Reserve ID, LSB first\r
   UINT8 AscC;       // Ascii for 'C' (0x43)\r
@@ -468,6 +590,14 @@ typedef struct {
   UINT8 Erase;      // 0xAA, Initiate Erase, 0x00 Get Erase Status\r
 } IPMI_CLEAR_SEL_REQUEST;\r
 \r
+#define IPMI_CLEAR_SEL_RESPONSE_ERASURE_IN_PROGRESS    0x00\r
+#define IPMI_CLEAR_SEL_RESPONSE_ERASURE_COMPLETED      0x01\r
+\r
+typedef struct {\r
+  UINT8  CompletionCode;\r
+  UINT8  ErasureProgress;\r
+} IPMI_CLEAR_SEL_RESPONSE;\r
+\r
 //\r
 //  Definitions for Get SEL Time command\r
 //\r
@@ -476,6 +606,10 @@ typedef struct {
 //\r
 //  Constants and Structure definitions for "Get SEL Time" command to follow here\r
 //\r
+typedef struct {\r
+  UINT8   CompletionCode;\r
+  UINT32  Timestamp;  // Present Timestamp clock reading. LS byte first.\r
+} IPMI_GET_SEL_TIME_RESPONSE;\r
 \r
 //\r
 //  Definitions for Set SEL Time command\r
@@ -485,6 +619,9 @@ typedef struct {
 //\r
 //  Constants and Structure definitions for "Set SEL Time" command to follow here\r
 //\r
+typedef struct {\r
+  UINT32  Timestamp;\r
+} IPMI_SET_SEL_TIME_REQUEST;\r
 \r
 //\r
 //  Definitions for Get Auxillary Log Status command\r
@@ -504,39 +641,88 @@ typedef struct {
 //  Constants and Structure definitions for "Set Auxillary Log Status" command to follow here\r
 //\r
 \r
-#define IPMI_COMPLETE_SEL_RECORD 0xFF\r
+//\r
+//  Definitions for Get SEL Time UTC Offset command\r
+//\r
+#define IPMI_STORAGE_GET_SEL_TIME_UTC_OFFSET   0x5C\r
 \r
 //\r
-//  Below is Definitions for SEL Record Formats (Chapter 32)\r
+//  Constants and Structure definitions for "Get SEL Time UTC Offset" command to follow here\r
 //\r
 typedef struct {\r
-  UINT16  RecordId;\r
-  UINT8   RecordType;\r
-  UINT32  TimeStamp;\r
-  UINT16  GeneratorId;\r
-  UINT8   EvMRevision;\r
-  UINT8   SensorType;\r
-  UINT8   SensorNumber;\r
-  UINT8   EventDirType;\r
-  UINT8   OEMEvData1;\r
-  UINT8   OEMEvData2;\r
-  UINT8   OEMEvData3;\r
-} IPMI_SEL_EVENT_RECORD_DATA;\r
+  UINT8  CompletionCode;\r
+  //\r
+  // 16-bit, 2s-complement signed integer for the offset in minutes from UTC to SEL Time.\r
+  // LS-byte first. (ranges from -1440 to 1440)\r
+  //\r
+  INT16  UtcOffset;\r
+} IPMI_GET_SEL_TIME_UTC_OFFSET_RESPONSE;\r
 \r
-#define IPMI_SEL_SYSTEM_RECORD                     0x02\r
+//\r
+//  Definitions for Set SEL Time UTC Offset command\r
+//\r
+#define IPMI_STORAGE_SET_SEL_TIME_UTC_OFFSET   0x5D\r
 \r
-#define IPMI_EVM_REVISION                          0x04\r
-#define IPMI_BIOS_ID                               0x18\r
-#define IPMI_FORMAT_REV                            0x00\r
-#define IPMI_FORMAT_REV1                           0x01\r
-#define IPMI_SOFTWARE_ID                           0x01\r
-#define IPMI_PLATFORM_VAL_ID                       0x01\r
-#define IPMI_GENERATOR_ID(i,f)                     ((i << 1) | (f << 1) | IPMI_SOFTWARE_ID)\r
+//\r
+//  Constants and Structure definitions for "Set SEL Time UTC Offset" command to follow here\r
+//\r
 \r
-#define IPMI_SENSOR_TYPE_EVENT_CODE_DISCRETE       0x6F\r
+#define IPMI_COMPLETE_SEL_RECORD 0xFF\r
 \r
-#define IPMI_OEM_SPECIFIC_DATA                     0x02\r
-#define IPMI_SENSOR_SPECIFIC_DATA                  0x03\r
+#define IPMI_SEL_SYSTEM_RECORD                          0x02\r
+#define IPMI_SEL_OEM_TIME_STAMP_RECORD_START            0xC0\r
+#define IPMI_SEL_OEM_TIME_STAMP_RECORD_END              0xDF\r
+#define IPMI_SEL_OEM_NO_TIME_STAMP_RECORD_START         0xE0\r
+#define IPMI_SEL_OEM_NO_TIME_STAMP_RECORD_END           0xFF\r
+\r
+#define IPMI_SEL_EVENT_DIR(EventDirType)                (EventDirType >> 7)\r
+#define IPMI_SEL_EVENT_DIR_ASSERTION_EVENT              0x00\r
+#define IPMI_SEL_EVENT_DIR_DEASSERTION_EVENT            0x01\r
+\r
+#define IPMI_SEL_EVENT_TYPE(EventDirType)               (EventDirType & 0x7F)\r
+//\r
+// Event/Reading Type Code Ranges (Chapter 42)\r
+//\r
+#define IPMI_SEL_EVENT_TYPE_UNSPECIFIED                 0x00\r
+#define IPMI_SEL_EVENT_TYPE_THRESHOLD                   0x01\r
+#define IPMI_SEL_EVENT_TYPE_GENERIC_START               0x02\r
+#define IPMI_SEL_EVENT_TYPE_GENERIC_END                 0x0C\r
+#define IPMI_SEL_EVENT_TYPE_SENSOR_SPECIFIC             0x6F\r
+#define IPMI_SEL_EVENT_TYPE_OEM_START                   0x70\r
+#define IPMI_SEL_EVENT_TYPE_OEM_END                     0x7F\r
+\r
+#define SOFTWARE_ID_FROM_GENERATOR_ID(GeneratorId)      ((GeneratorId & 0xFF) >> 1)\r
+//\r
+// System Software IDs definitions (Section 5.5)\r
+//\r
+#define IPMI_SWID_BIOS_RANGE_START                      0x00\r
+#define IPMI_SWID_BIOS_RANGE_END                        0x0F\r
+#define IPMI_SWID_SMI_HANDLER_RANGE_START               0x10\r
+#define IPMI_SWID_SMI_HANDLER_RANGE_END                 0x1F\r
+#define IPMI_SWID_SMS_RANGE_START                       0x20\r
+#define IPMI_SWID_SMS_RANGE_END                         0x2F\r
+#define IPMI_SWID_OEM_RANGE_START                       0x30\r
+#define IPMI_SWID_OEM_RANGE_END                         0x3F\r
+#define IPMI_SWID_REMOTE_CONSOLE_RANGE_START            0x40\r
+#define IPMI_SWID_REMOTE_CONSOLE_RANGE_END              0x46\r
+#define IPMI_SWID_TERMINAL_REMOTE_CONSOLE_ID            0x47\r
+\r
+#define SLAVE_ADDRESS_FROM_GENERATOR_ID(GeneratorId)    ((GeneratorId & 0xFF) >> 1)\r
+#define LUN_FROM_GENERATOR_ID(GeneratorId)              ((GeneratorId >> 8) & 0x03)\r
+#define CHANNEL_NUMBER_FROM_GENERATOR_ID(GeneratorId)   ((GeneratorId >> 12) & 0x0F)\r
+\r
+#define IPMI_EVM_REVISION                               0x04\r
+#define IPMI_BIOS_ID                                    0x18\r
+#define IPMI_FORMAT_REV                                 0x00\r
+#define IPMI_FORMAT_REV1                                0x01\r
+#define IPMI_SOFTWARE_ID                                0x01\r
+#define IPMI_PLATFORM_VAL_ID                            0x01\r
+#define IPMI_GENERATOR_ID(i,f)                          ((i << 1) | (f << 1) | IPMI_SOFTWARE_ID)\r
+\r
+#define IPMI_SENSOR_TYPE_EVENT_CODE_DISCRETE            0x6F\r
+\r
+#define IPMI_OEM_SPECIFIC_DATA                          0x02\r
+#define IPMI_SENSOR_SPECIFIC_DATA                       0x03\r
 \r
 #pragma pack()\r
 #endif\r
index 1e9bbe2755a63c1580a026d77c5f8828e9394d44..28ede2f63a5a93e27486b3e788d18fbf72be76c3 100644 (file)
@@ -10,7 +10,7 @@
   See IPMI specification, Appendix G, Command Assignments\r
   and Appendix H, Sub-function Assignments.\r
 \r
-  Copyright (c) 1999 - 2015, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 1999 - 2018, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -65,7 +65,22 @@ typedef enum {
   IpmiLanCommunityString,\r
   IpmiLanReserved3,\r
   IpmiLanDestinationType,\r
-  IpmiLanDestinationAddress\r
+  IpmiLanDestinationAddress,\r
+  IpmiIpv4OrIpv6Support = 0x32,\r
+  IpmiIpv4OrIpv6AddressEnable,\r
+  IpmiIpv6HdrStatTrafficClass,\r
+  IpmiIpv6HdrStatHopLimit,\r
+  IpmiIpv6HdrFlowLabel,\r
+  IpmiIpv6Status,\r
+  IpmiIpv6StaticAddress,\r
+  IpmiIpv6DhcpStaticDuidLen,\r
+  IpmiIpv6DhcpStaticDuid,\r
+  IpmiIpv6DhcpAddress,\r
+  IpmiIpv6DhcpDynamicDuidLen,\r
+  IpmiIpv6DhcpDynamicDuid,\r
+  IpmiIpv6RouterConfig = 0x40,\r
+  IpmiIpv6StaticRouter1IpAddr,\r
+  IpmiIpv6DynamicRouterIpAddr = 0x4a\r
 } IPMI_LAN_OPTION_TYPE;\r
 \r
 //\r
@@ -183,6 +198,32 @@ typedef union {
   IPMI_LAN_DEST_ADDRESS              IpmiLanDestAddress;\r
 } IPMI_LAN_OPTIONS;\r
 \r
+typedef struct {\r
+  UINT8  SetSelector;\r
+  UINT8  AddressSourceType : 4;\r
+  UINT8  Reserved : 3;\r
+  UINT8  EnableStatus : 1;\r
+  UINT8  Ipv6Address[16];\r
+  UINT8  AddressPrefixLen;\r
+  UINT8  AddressStatus;\r
+} IPMI_LAN_IPV6_STATIC_ADDRESS;\r
+\r
+//\r
+//  Set in progress parameter\r
+//\r
+typedef struct {\r
+  UINT8  SetInProgress:2;\r
+  UINT8  Reserved:6;\r
+} IPMI_LAN_SET_IN_PROGRESS;\r
+\r
+\r
+typedef struct {\r
+  UINT8  ChannelNo : 4;\r
+  UINT8  Reserved : 4;\r
+  UINT8  ParameterSelector;\r
+  UINT8  ParameterData[0];\r
+} IPMI_SET_LAN_CONFIGURATION_PARAMETERS_COMMAND_REQUEST;\r
+\r
 //\r
 //  Definitions for Get Lan Configuration Parameters command\r
 //\r
@@ -191,6 +232,20 @@ typedef union {
 //\r
 //  Constants and Structure definitions for "Get Lan Configuration Parameters" command to follow here\r
 //\r
+typedef struct {\r
+  UINT8  ChannelNo : 4;\r
+  UINT8  Reserved : 3;\r
+  UINT8  GetParameter : 1;\r
+  UINT8  ParameterSelector;\r
+  UINT8  SetSelector;\r
+  UINT8  BlockSelector;\r
+} IPMI_GET_LAN_CONFIGURATION_PARAMETERS_REQUEST;\r
+\r
+typedef struct {\r
+  UINT8  CompletionCode;\r
+  UINT8  ParameterRevision;\r
+  UINT8  ParameterData[0];\r
+} IPMI_GET_LAN_CONFIGURATION_PARAMETERS_RESPONSE;\r
 \r
 //\r
 //  Definitions for Suspend BMC ARPs command\r
@@ -434,6 +489,26 @@ typedef union {
 //\r
 //  Constants and Structure definitions for "Set Serial/Modem Mux" command to follow here\r
 //\r
+\r
+//\r
+// Set Serial/Modem Mux command request return status\r
+//\r
+#define IPMI_MUX_SETTING_REQUEST_REJECTED  0x00\r
+#define IPMI_MUX_SETTING_REQUEST_ACCEPTED  0x01\r
+\r
+//\r
+//  Definitions for serial multiplex settings\r
+//\r
+#define IPMI_MUX_SETTING_GET_MUX_SETTING              0x0\r
+#define IPMI_MUX_SETTING_REQUEST_MUX_TO_SYSTEM        0x1\r
+#define IPMI_MUX_SETTING_REQUEST_MUX_TO_BMC           0x2\r
+#define IPMI_MUX_SETTING_FORCE_MUX_TO_SYSTEM          0x3\r
+#define IPMI_MUX_SETTING_FORCE_MUX_TO_BMC             0x4\r
+#define IPMI_MUX_SETTING_BLOCK_REQUEST_MUX_TO_SYSTEM  0x5\r
+#define IPMI_MUX_SETTING_ALLOW_REQUEST_MUX_TO_SYSTEM  0x6\r
+#define IPMI_MUX_SETTING_BLOCK_REQUEST_MUX_TO_BMC     0x7\r
+#define IPMI_MUX_SETTING_ALLOW_REQUEST_MUX_TO_BMC     0x8\r
+\r
 typedef struct {\r
   UINT8 ChannelNo : 4;\r
   UINT8 Reserved1 : 4;\r
@@ -442,6 +517,7 @@ typedef struct {
 } IPMI_SET_SERIAL_MODEM_MUX_COMMAND_REQUEST;\r
 \r
 typedef struct {\r
+  UINT8 CompletionCode;\r
   UINT8 MuxSetToBmc : 1;\r
   UINT8 CommandStatus : 1;\r
   UINT8 MessagingSessionActive : 1;\r
@@ -544,6 +620,13 @@ typedef struct {
 //\r
 //  Constants and Structure definitions for "SOL activating" command to follow here\r
 //\r
+typedef struct {\r
+  UINT8  SessionState : 4;\r
+  UINT8  Reserved : 4;\r
+  UINT8  PayloadInstance;\r
+  UINT8  FormatVersionMajor; // 1\r
+  UINT8  FormatVersionMinor; // 0\r
+} IPMI_SOL_ACTIVATING_REQUEST;\r
 \r
 //\r
 //  Definitions for Set SOL Configuration Parameters command\r
@@ -554,6 +637,26 @@ typedef struct {
 //  Constants and Structure definitions for "Set SOL Configuration Parameters" command to follow here\r
 //\r
 \r
+//\r
+// SOL Configuration Parameters selector\r
+//\r
+#define IPMI_SOL_CONFIGURATION_PARAMETER_SET_IN_PROGRESS       0\r
+#define IPMI_SOL_CONFIGURATION_PARAMETER_SOL_ENABLE            1\r
+#define IPMI_SOL_CONFIGURATION_PARAMETER_SOL_AUTHENTICATION    2\r
+#define IPMI_SOL_CONFIGURATION_PARAMETER_SOL_CHARACTER_PARAM   3\r
+#define IPMI_SOL_CONFIGURATION_PARAMETER_SOL_RETRY             4\r
+#define IPMI_SOL_CONFIGURATION_PARAMETER_SOL_NV_BIT_RATE       5\r
+#define IPMI_SOL_CONFIGURATION_PARAMETER_SOL_VOLATILE_BIT_RATE 6\r
+#define IPMI_SOL_CONFIGURATION_PARAMETER_SOL_PAYLOAD_CHANNEL   7\r
+#define IPMI_SOL_CONFIGURATION_PARAMETER_SOL_PAYLOAD_PORT      8\r
+\r
+typedef struct {\r
+  UINT8  ChannelNumber : 4;\r
+  UINT8  Reserved : 4;\r
+  UINT8  ParameterSelector;\r
+  UINT8  ParameterData[0];\r
+} IPMI_SET_SOL_CONFIGURATION_PARAMETERS_REQUEST;\r
+\r
 //\r
 //  Definitions for Get SOL Configuration Parameters command\r
 //\r
@@ -562,5 +665,20 @@ typedef struct {
 //\r
 //  Constants and Structure definitions for "Get SOL Configuration Parameters" command to follow here\r
 //\r
+typedef struct {\r
+  UINT8  ChannelNumber : 4;\r
+  UINT8  Reserved : 3;\r
+  UINT8  GetParameter : 1;\r
+  UINT8  ParameterSelector;\r
+  UINT8  SetSelector;\r
+  UINT8  BlockSelector;\r
+} IPMI_GET_SOL_CONFIGURATION_PARAMETERS_REQUEST;\r
+\r
+typedef struct {\r
+  UINT8  CompletionCode;\r
+  UINT8  ParameterRevision;\r
+  UINT8  ParameterData[0];\r
+} IPMI_GET_SOL_CONFIGURATION_PARAMETERS_RESPONSE;\r
+\r
 #pragma pack()\r
 #endif\r