17#ifndef PLAT_PLDM_SENSOR_H
18#define PLAT_PLDM_SENSOR_H
22#define ADDR_UNKNOWN (0xFF >> 1)
25#define DC_BRICK_1_ADDR (0x28 >> 1)
26#define DC_BRICK_2_ADDR (0x34 >> 1)
28#define TOP_INLET_TEMP_ADDR (0x92 >> 1)
29#define TOP_OUTLET_TEMP_ADDR (0x9E >> 1)
30#define BOT_INLET_TEMP_ADDR (0x94 >> 1)
31#define BOT_OUTLET_TEMP_ADDR (0X96 >> 1)
33#define ON_DIE_1_TEMP_TMP432_ADDR (0X98 >> 1)
34#define ON_DIE_2_TEMP_TMP432_ADDR (0X98 >> 1)
35#define ON_DIE_3_TEMP_TMP432_ADDR (0X9A >> 1)
36#define ON_DIE_4_TEMP_TMP432_ADDR (0X9A >> 1)
38#define ON_DIE_1_TEMP_EMC1413_ADDR (0XB8 >> 1)
39#define ON_DIE_2_TEMP_EMC1413_ADDR (0XB8 >> 1)
40#define ON_DIE_3_TEMP_EMC1413_ADDR (0X38 >> 1)
41#define ON_DIE_4_TEMP_EMC1413_ADDR (0X38 >> 1)
43#define P3V3_MP2971_ADDR (0xF6 >> 1)
44#define P3V3_MP2971_FAB3_ADDR (0xD6 >> 1)
45#define P3V3_ISL69260_ADDR (0xC0 >> 1)
47#define P0V85_PVDD_MP2891_ADDR (0x4C >> 1)
48#define P0V85_PVDD_RAA228238_ADDR (0xE4 >> 1)
50#define P0V75_PVDD_CH_N_MP2971_ADDR (0xE0 >> 1)
51#define P0V75_PVDD_CH_N_ISL69260_ADDR (0xC0 >> 1)
53#define P0V75_MAX_PHY_N_MP2971_ADDR (0xE0 >> 1)
54#define P0V75_MAX_PHY_N_ISL69260_ADDR (0xC0 >> 1)
56#define P0V75_PVDD_CH_S_MP2971_ADDR (0xE2 >> 1)
57#define P0V75_PVDD_CH_S_ISL69260_ADDR (0xC2 >> 1)
59#define P0V75_MAX_PHY_S_MP2971_ADDR (0xE2 >> 1)
60#define P0V75_MAX_PHY_S_ISL69260_ADDR (0xC2 >> 1)
62#define P0V75_TRVDD_ZONEA_MP2971_ADDR (0xE6 >> 1)
63#define P0V75_TRVDD_ZONEA_ISL69260_ADDR (0xC4 >> 1)
65#define P1V8_VPP_HBM0_HBM2_HBM4_MP2971_ADDR (0xE6 >> 1)
66#define P1V8_VPP_HBM0_HBM2_HBM4_ISL69260_ADDR (0xC4 >> 1)
68#define P0V75_TRVDD_ZONEB_MP2971_ADDR (0xEC >> 1)
69#define P0V75_TRVDD_ZONEB_ISL69260_ADDR (0xC6 >> 1)
71#define P0V4_VDDQL_HBM0_HBM2_HBM4_MP2971_ADDR (0xEC >> 1)
72#define P0V4_VDDQL_HBM0_HBM2_HBM4_ISL69260_ADDR (0xC6 >> 1)
74#define P1V1_VDDC_HBM0_HBM2_HBM4_MP2971_ADDR (0xEA >> 1)
75#define P1V1_VDDC_HBM0_HBM2_HBM4_ISL69260_ADDR (0xE8 >> 1)
77#define P0V75_VDDPHY_HBM0_HBM2_HBM4_MP2971_ADDR (0xEA >> 1)
78#define P0V75_VDDPHY_HBM0_HBM2_HBM4_ISL69260_ADDR (0xE8 >> 1)
80#define P0V9_TRVDD_ZONEA_MP2971_ADDR (0xE4 >> 1)
81#define P0V9_TRVDD_ZONEA_ISL69260_ADDR (0xC0 >> 1)
83#define P1V8_VPP_HBM1_HBM3_HBM5_MP2971_ADDR (0xE4 >> 1)
84#define P1V8_VPP_HBM1_HBM3_HBM5_ISL69260_ADDR (0xC0 >> 1)
86#define P0V9_TRVDD_ZONEB_MP2971_ADDR (0xE8 >> 1)
87#define P0V9_TRVDD_ZONEB_ISL69260_ADDR (0xC2 >> 1)
89#define P0V4_VDDQL_HBM1_HBM3_HBM5_MP2971_ADDR (0xE8 >> 1)
90#define P0V4_VDDQL_HBM1_HBM3_HBM5_ISL69260_ADDR (0xC2 >> 1)
92#define P1V1_VDDC_HBM1_HBM3_HBM5_MP2971_ADDR (0xEE >> 1)
93#define P1V1_VDDC_HBM1_HBM3_HBM5_ISL69260_ADDR (0xC4 >> 1)
95#define P0V75_VDDPHY_HBM1_HBM3_HBM5_MP2971_ADDR (0xEE >> 1)
96#define P0V75_VDDPHY_HBM1_HBM3_HBM5_ISL69260_ADDR (0xC4 >> 1)
98#define P0V8_VDDA_PCIE_MP2971_ADDR (0xF2 >> 1)
99#define P0V8_VDDA_PCIE_MP2971_FAB3_ADDR (0xD2 >> 1)
100#define P0V8_VDDA_PCIE_ISL69260_ADDR (0xC6 >> 1)
102#define P1V2_VDDHTX_PCIE_MP2971_ADDR (0xF2 >> 1)
103#define P1V2_VDDHTX_PCIE_MP2971_FAB3_ADDR (0xD2 >> 1)
104#define P1V2_VDDHTX_PCIE_ISL69260_ADDR (0xC6 >> 1)
107#define SENSOR_NUM_UBC_1_TEMP_C 0x01
108#define SENSOR_NUM_UBC_1_P50V_VIN_VOLT_V 0x02
109#define SENSOR_NUM_UBC_1_P12V_VOUT_VOLT_V 0x03
110#define SENSOR_NUM_UBC_1_P12V_CURR_A 0x04
111#define SENSOR_NUM_UBC_1_P12V_PWR_W 0x05
113#define SENSOR_NUM_UBC_2_TEMP_C 0x06
114#define SENSOR_NUM_UBC_2_P50V_VIN_VOLT_V 0x07
115#define SENSOR_NUM_UBC_2_P12V_VOUT_VOLT_V 0x08
116#define SENSOR_NUM_UBC_2_P12V_CURR_A 0x09
117#define SENSOR_NUM_UBC_2_P12V_PWR_W 0x0A
119#define SENSOR_NUM_TOP_INLET_TEMP_C 0x0B
120#define SENSOR_NUM_TOP_OUTLET_TEMP_C 0x0C
121#define SENSOR_NUM_BOT_INLET_TEMP_C 0x0D
122#define SENSOR_NUM_BOT_OUTLET_TEMP_C 0x0E
123#define SENSOR_NUM_ON_DIE_1_TEMP_C 0x0F
124#define SENSOR_NUM_ON_DIE_2_TEMP_C 0x10
125#define SENSOR_NUM_ON_DIE_3_TEMP_C 0x11
126#define SENSOR_NUM_ON_DIE_4_TEMP_C 0x12
128#define SENSOR_NUM_OSFP_P3V3_TEMP_C 0x13
129#define SENSOR_NUM_OSFP_P3V3_VOLT_V 0x14
130#define SENSOR_NUM_OSFP_P3V3_CURR_A 0x15
131#define SENSOR_NUM_OSFP_P3V3_PWR_W 0x16
133#define SENSOR_NUM_CPU_P0V85_PVDD_TEMP_C 0x17
134#define SENSOR_NUM_CPU_P0V85_PVDD_VOLT_V 0x18
135#define SENSOR_NUM_CPU_P0V85_PVDD_CURR_A 0x19
136#define SENSOR_NUM_CPU_P0V85_PVDD_PWR_W 0x1A
138#define SENSOR_NUM_CPU_P0V75_PVDD_CH_N_TEMP_C 0x1B
139#define SENSOR_NUM_CPU_P0V75_PVDD_CH_N_VOLT_V 0x1C
140#define SENSOR_NUM_CPU_P0V75_PVDD_CH_N_CURR_A 0x1D
141#define SENSOR_NUM_CPU_P0V75_PVDD_CH_N_PWR_W 0x1E
142#define SENSOR_NUM_CPU_P0V75_MAX_PHY_N_TEMP_C 0x1F
143#define SENSOR_NUM_CPU_P0V75_MAX_PHY_N_VOLT_V 0x20
144#define SENSOR_NUM_CPU_P0V75_MAX_PHY_N_CURR_A 0x21
145#define SENSOR_NUM_CPU_P0V75_MAX_PHY_N_PWR_W 0x22
147#define SENSOR_NUM_CPU_P0V75_PVDD_CH_S_TEMP_C 0x23
148#define SENSOR_NUM_CPU_P0V75_PVDD_CH_S_VOLT_V 0x24
149#define SENSOR_NUM_CPU_P0V75_PVDD_CH_S_CURR_A 0x25
150#define SENSOR_NUM_CPU_P0V75_PVDD_CH_S_PWR_W 0x26
151#define SENSOR_NUM_CPU_P0V75_MAX_PHY_S_TEMP_C 0x27
152#define SENSOR_NUM_CPU_P0V75_MAX_PHY_S_VOLT_V 0x28
153#define SENSOR_NUM_CPU_P0V75_MAX_PHY_S_CURR_A 0x29
154#define SENSOR_NUM_CPU_P0V75_MAX_PHY_S_PWR_W 0x2A
156#define SENSOR_NUM_CPU_P0V75_TRVDD_ZONEA_TEMP_C 0x2B
157#define SENSOR_NUM_CPU_P0V75_TRVDD_ZONEA_VOLT_V 0x2C
158#define SENSOR_NUM_CPU_P0V75_TRVDD_ZONEA_CURR_A 0x2D
159#define SENSOR_NUM_CPU_P0V75_TRVDD_ZONEA_PWR_W 0x2E
160#define SENSOR_NUM_CPU_P1V8_VPP_HBM0_2_4_TEMP_C 0x2F
161#define SENSOR_NUM_CPU_P1V8_VPP_HBM0_2_4_VOLT_V 0x30
162#define SENSOR_NUM_CPU_P1V8_VPP_HBM0_2_4_CURR_A 0x31
163#define SENSOR_NUM_CPU_P1V8_VPP_HBM0_2_4_PWR_W 0x32
165#define SENSOR_NUM_CPU_P0V75_TRVDD_ZONEB_TEMP_C 0x33
166#define SENSOR_NUM_CPU_P0V75_TRVDD_ZONEB_VOLT_V 0x34
167#define SENSOR_NUM_CPU_P0V75_TRVDD_ZONEB_CURR_A 0x35
168#define SENSOR_NUM_CPU_P0V75_TRVDD_ZONEB_PWR_W 0x36
169#define SENSOR_NUM_CPU_P0V4_VDDQL_HBM0_2_4_TEMP_C 0x37
170#define SENSOR_NUM_CPU_P0V4_VDDQL_HBM0_2_4_VOLT_V 0x38
171#define SENSOR_NUM_CPU_P0V4_VDDQL_HBM0_2_4_CURR_A 0x39
172#define SENSOR_NUM_CPU_P0V4_VDDQL_HBM0_2_4_PWR_W 0x3A
174#define SENSOR_NUM_CPU_P1V1_VDDC_HBM0_2_4_TEMP_C 0x3B
175#define SENSOR_NUM_CPU_P1V1_VDDC_HBM0_2_4_VOLT_V 0x3C
176#define SENSOR_NUM_CPU_P1V1_VDDC_HBM0_2_4_CURR_A 0x3D
177#define SENSOR_NUM_CPU_P1V1_VDDC_HBM0_2_4_PWR_W 0x3E
178#define SENSOR_NUM_CPU_P0V75_VDDPHY_HBM0_2_4_TEMP_C 0x3F
179#define SENSOR_NUM_CPU_P0V75_VDDPHY_HBM0_2_4_VOLT_V 0x40
180#define SENSOR_NUM_CPU_P0V75_VDDPHY_HBM0_2_4_CURR_A 0x41
181#define SENSOR_NUM_CPU_P0V75_VDDPHY_HBM0_2_4_PWR_W 0x42
183#define SENSOR_NUM_CPU_P0V9_TRVDD_ZONEA_TEMP_C 0x43
184#define SENSOR_NUM_CPU_P0V9_TRVDD_ZONEA_VOLT_V 0x44
185#define SENSOR_NUM_CPU_P0V9_TRVDD_ZONEA_CURR_A 0x45
186#define SENSOR_NUM_CPU_P0V9_TRVDD_ZONEA_PWR_W 0x46
187#define SENSOR_NUM_CPU_P1V8_VPP_HBM1_3_5_TEMP_C 0x47
188#define SENSOR_NUM_CPU_P1V8_VPP_HBM1_3_5_VOLT_V 0x48
189#define SENSOR_NUM_CPU_P1V8_VPP_HBM1_3_5_CURR_A 0x49
190#define SENSOR_NUM_CPU_P1V8_VPP_HBM1_3_5_PWR_W 0x4A
192#define SENSOR_NUM_CPU_P0V9_TRVDD_ZONEB_TEMP_C 0x4B
193#define SENSOR_NUM_CPU_P0V9_TRVDD_ZONEB_VOLT_V 0x4C
194#define SENSOR_NUM_CPU_P0V9_TRVDD_ZONEB_CURR_A 0x4D
195#define SENSOR_NUM_CPU_P0V9_TRVDD_ZONEB_PWR_W 0x4E
196#define SENSOR_NUM_CPU_P0V4_VDDQL_HBM1_3_5_TEMP_C 0x4F
197#define SENSOR_NUM_CPU_P0V4_VDDQL_HBM1_3_5_VOLT_V 0x50
198#define SENSOR_NUM_CPU_P0V4_VDDQL_HBM1_3_5_CURR_A 0x51
199#define SENSOR_NUM_CPU_P0V4_VDDQL_HBM1_3_5_PWR_W 0x52
201#define SENSOR_NUM_CPU_P1V1_VDDC_HBM1_3_5_TEMP_C 0x53
202#define SENSOR_NUM_CPU_P1V1_VDDC_HBM1_3_5_VOLT_V 0x54
203#define SENSOR_NUM_CPU_P1V1_VDDC_HBM1_3_5_CURR_A 0x55
204#define SENSOR_NUM_CPU_P1V1_VDDC_HBM1_3_5_PWR_W 0x56
205#define SENSOR_NUM_CPU_P0V75_VDDPHY_HBM1_3_5_TEMP_C 0x57
206#define SENSOR_NUM_CPU_P0V75_VDDPHY_HBM1_3_5_VOLT_V 0x58
207#define SENSOR_NUM_CPU_P0V75_VDDPHY_HBM1_3_5_CURR_A 0x59
208#define SENSOR_NUM_CPU_P0V75_VDDPHY_HBM1_3_5_PWR_W 0x5A
210#define SENSOR_NUM_CPU_P0V8_VDDA_PCIE_TEMP_C 0x5B
211#define SENSOR_NUM_CPU_P0V8_VDDA_PCIE_VOLT_V 0x5C
212#define SENSOR_NUM_CPU_P0V8_VDDA_PCIE_CURR_A 0x5D
213#define SENSOR_NUM_CPU_P0V8_VDDA_PCIE_PWR_W 0x5E
214#define SENSOR_NUM_CPU_P1V2_VDDHTX_PCIE_TEMP_C 0x5F
215#define SENSOR_NUM_CPU_P1V2_VDDHTX_PCIE_VOLT_V 0x60
216#define SENSOR_NUM_CPU_P1V2_VDDHTX_PCIE_CURR_A 0x61
217#define SENSOR_NUM_CPU_P1V2_VDDHTX_PCIE_PWR_W 0x62
219#define TMP75_TEMP_OFFSET 0x00
220#define UPDATE_INTERVAL_1S 1
221#define UPDATE_INTERVAL_5S 5
222#define UPDATE_INTERVAL_60S 60
257 uint8_t *sensor_dev);
uint_least16_t char16_t
Definition: libutil.h:86
PDR_numeric_sensor * numeric_sensor_table
Definition: pdr.c:16
PDR_numeric_sensor
Definition: pdr.h:115
uint16_t sensor_id
Definition: pldm_monitor.h:0
uint8_t sensor_num
Definition: storage_handler.h:6