mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-31 01:24:12 +02:00
MdePkg: Add Ipmi Net Sensor Thresholds command defines.
Adding definitions for Ipmi Net Sensor Get/Set Thresholds commands and structures as found in Ipmi specification v2.0 Signed-off-by: Aaron Pop <aaronpop@microsoft.com>
This commit is contained in:
parent
7772e339bd
commit
e2e09d8512
@ -10,6 +10,7 @@
|
|||||||
and Appendix H, Sub-function Assignments.
|
and Appendix H, Sub-function Assignments.
|
||||||
|
|
||||||
Copyright (c) 1999 - 2015, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 1999 - 2015, Intel Corporation. All rights reserved.<BR>
|
||||||
|
Copyright (c) Microsoft Corporation.
|
||||||
SPDX-License-Identifier: BSD-2-Clause-Patent
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||||
**/
|
**/
|
||||||
|
|
||||||
@ -42,5 +43,50 @@ typedef struct {
|
|||||||
UINT8 OEMEvData3;
|
UINT8 OEMEvData3;
|
||||||
} IPMI_PLATFORM_EVENT_MESSAGE_DATA_REQUEST;
|
} IPMI_PLATFORM_EVENT_MESSAGE_DATA_REQUEST;
|
||||||
|
|
||||||
|
//
|
||||||
|
// Definitions for Set Sensor Thresholds command
|
||||||
|
//
|
||||||
|
#define IPMI_SENSOR_SET_SENSOR_THRESHOLDS 0x26
|
||||||
|
|
||||||
|
typedef union {
|
||||||
|
struct _SENSOR_BITS {
|
||||||
|
UINT8 LowerNonCriticalThreshold : 1;
|
||||||
|
UINT8 LowerCriticalThreshold : 1;
|
||||||
|
UINT8 LowerNonRecoverableThreshold : 1;
|
||||||
|
UINT8 UpperNonCriticalThreshold : 1;
|
||||||
|
UINT8 UpperCriticalThreshold : 1;
|
||||||
|
UINT8 UpperNonRecoverableThreshold : 1;
|
||||||
|
UINT8 Reserved : 2;
|
||||||
|
} Bits;
|
||||||
|
UINT8 Uint8;
|
||||||
|
} SENSOR_BITS;
|
||||||
|
|
||||||
|
typedef struct _IPMI_SENSOR_SET_SENSOR_THRESHOLD_REQUEST_DATA {
|
||||||
|
UINT8 SensorNumber;
|
||||||
|
SENSOR_BITS SetBitEnable;
|
||||||
|
UINT8 LowerNonCriticalThreshold;
|
||||||
|
UINT8 LowerCriticalThreshold;
|
||||||
|
UINT8 LowerNonRecoverableThreshold;
|
||||||
|
UINT8 UpperNonCriticalThreshold;
|
||||||
|
UINT8 UpperCriticalThreshold;
|
||||||
|
UINT8 UpperNonRecoverableThreshold;
|
||||||
|
} IPMI_SENSOR_SET_SENSOR_THRESHOLD_REQUEST_DATA;
|
||||||
|
|
||||||
|
//
|
||||||
|
// Definitions for Get Sensor Thresholds command
|
||||||
|
//
|
||||||
|
#define IPMI_SENSOR_GET_SENSOR_THRESHOLDS 0x27
|
||||||
|
|
||||||
|
typedef struct _IPMI_SENSOR_GET_SENSOR_THRESHOLD_RESPONSE_DATA {
|
||||||
|
UINT8 CompletionCode;
|
||||||
|
SENSOR_BITS GetBitEnable;
|
||||||
|
UINT8 LowerNonCriticalThreshold;
|
||||||
|
UINT8 LowerCriticalThreshold;
|
||||||
|
UINT8 LowerNonRecoverableThreshold;
|
||||||
|
UINT8 UpperNonCriticalThreshold;
|
||||||
|
UINT8 UpperCriticalThreshold;
|
||||||
|
UINT8 UpperNonRecoverableThreshold;
|
||||||
|
} IPMI_SENSOR_GET_SENSOR_THRESHOLD_RESPONSE_DATA;
|
||||||
|
|
||||||
#pragma pack()
|
#pragma pack()
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user