26#define MAX_MPRO_DIMM_NUM 16
28enum mpro_sensor_num_table {
30 MPRO_SENSOR_NUM_PWR_DRAM = 1,
32 MPRO_SENSOR_NUM_TMP_DIMM0 = 3,
33 MPRO_SENSOR_NUM_STA_DIMM0,
34 MPRO_SENSOR_NUM_TMP_DIMM1,
35 MPRO_SENSOR_NUM_STA_DIMM1,
36 MPRO_SENSOR_NUM_TMP_DIMM2,
37 MPRO_SENSOR_NUM_STA_DIMM2,
38 MPRO_SENSOR_NUM_TMP_DIMM3,
39 MPRO_SENSOR_NUM_STA_DIMM3,
40 MPRO_SENSOR_NUM_TMP_DIMM4,
41 MPRO_SENSOR_NUM_STA_DIMM4,
42 MPRO_SENSOR_NUM_TMP_DIMM5,
43 MPRO_SENSOR_NUM_STA_DIMM5,
44 MPRO_SENSOR_NUM_TMP_DIMM6,
45 MPRO_SENSOR_NUM_STA_DIMM6,
46 MPRO_SENSOR_NUM_TMP_DIMM7,
47 MPRO_SENSOR_NUM_STA_DIMM7,
48 MPRO_SENSOR_NUM_TMP_DIMM8,
49 MPRO_SENSOR_NUM_STA_DIMM8,
50 MPRO_SENSOR_NUM_TMP_DIMM9,
51 MPRO_SENSOR_NUM_STA_DIMM9,
52 MPRO_SENSOR_NUM_TMP_DIMM10,
53 MPRO_SENSOR_NUM_STA_DIMM10,
54 MPRO_SENSOR_NUM_TMP_DIMM11,
55 MPRO_SENSOR_NUM_STA_DIMM11,
56 MPRO_SENSOR_NUM_TMP_DIMM12,
57 MPRO_SENSOR_NUM_STA_DIMM12,
58 MPRO_SENSOR_NUM_TMP_DIMM13,
59 MPRO_SENSOR_NUM_STA_DIMM13,
60 MPRO_SENSOR_NUM_TMP_DIMM14,
61 MPRO_SENSOR_NUM_STA_DIMM14,
62 MPRO_SENSOR_NUM_TMP_DIMM15,
63 MPRO_SENSOR_NUM_STA_DIMM15,
65 MPRO_SENSOR_NUM_STA_DDR = 51,
68 MPRO_SENSOR_NUM_TMP_VRD0 = 71,
69 MPRO_SENSOR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STA_VRD7,
116 MPRO_SENSOR_NUM_TMP_VRD8,
117 MPRO_SENSOR_NUM_PWR_VRD8,
118 MPRO_SENSOR_NUM_VOL_VRD8,
119 MPRO_SENSOR_NUM_CUR_VRD8,
120 MPRO_SENSOR_NUM_STA_VRD8,
123 MPRO_SENSOR_NUM_PWR_SOC_PKG = 151,
124 MPRO_SENSOR_NUM_TMP_SOC_PKG = 153,
127 MPRO_SENSOR_NUM_STA_OVERALL_BOOT = 175,
134 MPRO_EFFECTER_NUM_I2C_PROXY_CTRL = 250,
135 MPRO_EFFECTER_NUM_I2C_CNT = 251,
136 MPRO_EFFECTER_NUM_I2C_PROXY_DATA = 252,
140struct plat_mpro_sensor_mapping {
142 uint16_t mpro_sensor_num;
149uint16_t copy_mpro_read_buffer(uint16_t start, uint16_t
length, uint8_t *
buffer,
150 uint16_t buffer_len);
151void mpro_postcode_read_init();
152void mpro_postcode_insert(uint32_t postcode);
153void reset_mpro_postcode_buffer();
154bool get_4byte_postcode_ok();
155void reset_4byte_postcode_ok();
ipmi_msg buffer
Definition: ipmb.h:0
uint32_t length
Definition: pldm_firmware_update.h:1
uint8_t sensor_num
Definition: storage_handler.h:6
Definition: pldm_monitor.h:202