TianoCore EDK2 master
Loading...
Searching...
No Matches
IpmiNetFnSensorEvent.h
Go to the documentation of this file.
1
17#ifndef _IPMI_NET_FN_SENSOR_EVENT_H_
18#define _IPMI_NET_FN_SENSOR_EVENT_H_
19
20#pragma pack(1)
21//
22// Net function definition for Sensor command
23//
24#define IPMI_NETFN_SENSOR_EVENT 0x04
25
26//
27// All Sensor commands and their structure definitions to follow here
28//
29
30//
31// Definitions for Send Platform Event Message command
32//
33#define IPMI_SENSOR_PLATFORM_EVENT_MESSAGE 0x02
34
35typedef struct {
36 UINT8 GeneratorId;
37 UINT8 EvMRevision;
38 UINT8 SensorType;
39 UINT8 SensorNumber;
40 UINT8 EventDirType;
41 UINT8 OEMEvData1;
42 UINT8 OEMEvData2;
43 UINT8 OEMEvData3;
45
46//
47// Definitions for Set Sensor Thresholds command
48//
49#define IPMI_SENSOR_SET_SENSOR_THRESHOLDS 0x26
50
51typedef union {
52 struct _SENSOR_BITS {
53 UINT8 LowerNonCriticalThreshold : 1;
54 UINT8 LowerCriticalThreshold : 1;
55 UINT8 LowerNonRecoverableThreshold : 1;
56 UINT8 UpperNonCriticalThreshold : 1;
57 UINT8 UpperCriticalThreshold : 1;
58 UINT8 UpperNonRecoverableThreshold : 1;
59 UINT8 Reserved : 2;
60 } Bits;
61 UINT8 Uint8;
63
65 UINT8 SensorNumber;
66 SENSOR_BITS SetBitEnable;
67 UINT8 LowerNonCriticalThreshold;
68 UINT8 LowerCriticalThreshold;
69 UINT8 LowerNonRecoverableThreshold;
70 UINT8 UpperNonCriticalThreshold;
71 UINT8 UpperCriticalThreshold;
72 UINT8 UpperNonRecoverableThreshold;
74
75//
76// Definitions for Get Sensor Thresholds command
77//
78#define IPMI_SENSOR_GET_SENSOR_THRESHOLDS 0x27
79
81 UINT8 CompletionCode;
82 SENSOR_BITS GetBitEnable;
83 UINT8 LowerNonCriticalThreshold;
84 UINT8 LowerCriticalThreshold;
85 UINT8 LowerNonRecoverableThreshold;
86 UINT8 UpperNonCriticalThreshold;
87 UINT8 UpperCriticalThreshold;
88 UINT8 UpperNonRecoverableThreshold;
90
91#pragma pack()
92#endif