]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/IndustryStandard/IpmiNetFnApp.h
MdePkg: Disable some Level 4 warnings for VS2017/ARM64
[mirror_edk2.git] / MdePkg / Include / IndustryStandard / IpmiNetFnApp.h
index c0865dae41bdb711c41610b99734a93a1b005144..31f9e839ea8145e8d035d78c2fc7e6c531d1818b 100644 (file)
@@ -43,6 +43,7 @@
 //  Constants and Structure definitions for "Get Device ID" command to follow here\r
 //\r
 typedef struct {\r
+  UINT8   CompletionCode;\r
   UINT8   DeviceId;\r
   UINT8   DeviceRevision : 4;\r
   UINT8   Reserved : 3;\r
@@ -62,7 +63,7 @@ typedef struct {
   UINT8   ManufacturerId[3];\r
   UINT16  ProductId;\r
   UINT32  AuxFirmwareRevInfo;\r
-} IPMI_MSG_GET_DEVICE_ID_RSP;\r
+} IPMI_GET_DEVICE_ID_RESPONSE;\r
 \r
 \r
 //\r
@@ -89,12 +90,13 @@ typedef struct {
 #define IPMI_APP_GET_SELFTEST_RESULTS  0x4\r
 \r
 //\r
-//  Constants and Structure definitions for "Get Self Results" command to follow here\r
+//  Constants and Structure definitions for "Get Self Test Results" command to follow here\r
 //\r
 typedef struct {\r
+  UINT8  CompletionCode;\r
   UINT8  Result;\r
   UINT8  Param;\r
-} IPMI_MSG_SELFTEST_RESULT_RSP;\r
+} IPMI_SELF_TEST_RESULT_RESPONSE;\r
 \r
 #define IPMI_APP_SELFTEST_NO_ERROR             0x55\r
 #define IPMI_APP_SELFTEST_NOT_IMPLEMENTED      0x56\r
@@ -127,11 +129,11 @@ typedef struct {
 //  Constants and Structure definitions for "Set ACPI Power State" command to follow here\r
 //\r
 typedef struct {\r
-  UINT8 SystemPowerState : 7;\r
-  UINT8 SystemStateChange : 1;\r
-  UINT8 DevicePowerState : 7;\r
-  UINT8 DeviceStateChange : 1;\r
-} IPMI_ACPI_POWER_STATE;\r
+  UINT8  AcpiSystemPowerState  : 7;\r
+  UINT8  AcpiSystemStateChange : 1;\r
+  UINT8  AcpiDevicePowerState  : 7;\r
+  UINT8  AcpiDeviceStateChange : 1;\r
+} IPMI_SET_ACPI_POWER_STATE_REQUEST;\r
 \r
 //\r
 //  Definitions for Get ACPI Power State command\r
@@ -154,8 +156,9 @@ typedef struct {
 //  Message structure definition for "Get Device Guid" IPMI command\r
 //\r
 typedef struct {\r
-  UINT8 Guid[16];\r
-} IPMI_MSG_GET_DEVICE_GUID_RSP;\r
+  UINT8  CompletionCode;\r
+  UINT8  Guid[16];\r
+} IPMI_GET_DEVICE_GUID_RESPONSE;\r
 \r
 //\r
 //  Below is Definitions for BMC Watchdog Timer Commands (Chapter 27)\r
@@ -190,7 +193,7 @@ typedef struct {
   UINT8                           PretimeoutInterval;\r
   UINT8                           TimerUseExpirationFlagsClear;\r
   UINT16                          InitialCountdownValue;\r
-} IPMI_SET_WATCHDOG_TIMER;\r
+} IPMI_SET_WATCHDOG_TIMER_REQUEST;\r
 \r
 //\r
 //  Definitions for Get WatchDog Timer command\r
@@ -201,13 +204,14 @@ typedef struct {
 //  Constants and Structure definitions for "Get WatchDog Timer" command to follow here\r
 //\r
 typedef struct {\r
+  UINT8                           CompletionCode;\r
   IPMI_WATCHDOG_TIMER_USE         TimerUse;\r
   UINT8                           TimerActions;\r
   UINT8                           PretimeoutInterval;\r
   UINT8                           TimerUseExpirationFlagsClear;\r
   UINT16                          InitialCountdownValue;\r
   UINT16                          PresentCountdownValue;\r
-} IPMI_GET_WATCHDOG_TIMER;\r
+} IPMI_GET_WATCHDOG_TIMER_RESPONSE;\r
 \r
 //\r
 //  Below is Definitions for IPMI Messaging Support Commands (Chapter 22)\r
@@ -384,20 +388,21 @@ typedef struct {
 //  Constants and Structure definitions for "Get Channel Access" command to follow here\r
 //\r
 typedef struct {\r
-  UINT8 ChannelNo : 4;\r
-  UINT8 Reserve1 : 4;\r
-  UINT8 Reserve2 : 6;\r
-  UINT8 MemoryType : 2;\r
-} IPMI_GET_CHANNEL_ACCESS_COMMAND;\r
+  UINT8  ChannelNo : 4;\r
+  UINT8  Reserve1 : 4;\r
+  UINT8  Reserve2 : 6;\r
+  UINT8  MemoryType : 2;\r
+} IPMI_GET_CHANNEL_ACCESS_REQUEST;\r
 \r
 typedef struct {\r
-  UINT8 AccessMode : 3;\r
-  UINT8 UserLevelAuthEnabled : 1;\r
-  UINT8 MessageAuthEnable : 1;\r
-  UINT8 Alert : 1;\r
-  UINT8 Reserve1 : 2;\r
-  UINT8 ChannelPriviledgeLimit : 4;\r
-  UINT8 Reserve2 : 4;\r
+  UINT8  CompletionCode;\r
+  UINT8  AccessMode : 3;\r
+  UINT8  UserLevelAuthEnabled : 1;\r
+  UINT8  MessageAuthEnable : 1;\r
+  UINT8  Alert : 1;\r
+  UINT8  Reserve1 : 2;\r
+  UINT8  ChannelPriviledgeLimit : 4;\r
+  UINT8  Reserve2 : 4;\r
 } IPMI_GET_CHANNEL_ACCESS_RESPONSE;\r
 \r
 //\r
@@ -409,6 +414,7 @@ typedef struct {
 //  Constants and Structure definitions for "Get Channel Info" command to follow here\r
 //\r
 typedef struct {\r
+  UINT8   CompletionCode;\r
   UINT8   ChannelNo : 4;\r
   UINT8   Reserve1 : 4;\r
   UINT8   ChannelMediumType : 7;\r
@@ -417,10 +423,9 @@ typedef struct {
   UINT8   Reserve3 : 3;\r
   UINT8   ActiveSessionCount : 6;\r
   UINT8   SessionSupport : 2;\r
-  UINT32  VendorId : 24;\r
-  UINT16  AuxChannelInfo : 16;\r
-  UINT8   Dummy;\r
-} IPMI_CHANNEL_INFO;\r
+  UINT8   VendorId[3];\r
+  UINT16  AuxChannelInfo;\r
+} IPMI_GET_CHANNEL_INFO_RESPONSE;\r
 \r
 //\r
 //  Definitions for Get Channel Info command\r