30#define sensor_name_to_num(x) #x,
32#define SENSOR_POLL_STACK_SIZE 2048
35#define GET_FROM_CACHE 0x00
36#define GET_FROM_SENSOR 0x01
38#define SENSOR_NULL 0xFF
39#define SENSOR_FAIL 0xFF
40#define SENSOR_NUM_MAX 0xFF
41#define SENSOR_NOT_SUPPORT 0xFF
42#define DIMM_NOT_PRESENT 0xFF
46#define SAMPLE_COUNT_DEFAULT 1
48#define POLL_TIME_DEFAULT 1
210static inline int calculate_accurate_MBR(uint8_t
sensor_num,
int val)
226static inline float convert_MBR_to_reading(uint8_t
sensor_num, uint8_t
val)
279 uint8_t (*
init)(uint8_t,
int *);
629#ifdef MORE_THAN_ONE_ADM1272
631 uint32_t last_energy;
632 uint32_t last_rollover;
633 uint32_t last_sample;
809 int *
reading, uint8_t read_mode);
uint8_t reading[1]
Definition: pldm_monitor.h:3
#define SDR_M(sensor_num)
Definition: sdr.h:457
#define SDR_Rexp(sensor_num)
Definition: sdr.h:461
struct _sensor_val sensor_val
uint8_t sensor_config_count
Definition: sensor.c:66
struct _ddr5_init_temp_arg_ ddr5_init_temp_arg
sensor_monitor_table_info * sensor_monitor_table
Definition: sensor.c:68
sensor_cfg * get_common_sensor_cfg_info(uint8_t sensor_num)
Definition: sensor.c:771
struct _ltc2991_init_arg_ ltc2991_init_arg
bool check_reading_pointer_null_is_allowed(sensor_cfg *cfg)
Definition: sensor.c:1438
struct _adm1278_init_arg adm1278_init_arg
struct _sensor_cfg_ sensor_cfg
struct _ina230_init_arg ina230_init_arg
struct _apml_mailbox_init_arg_ apml_mailbox_init_arg
struct _rs31380r_init_arg rs31380r_init_arg
bool check_sensor_num_exist(uint8_t sensor_num)
void pal_extend_sensor_config(void)
Definition: sensor.c:1074
struct _max16550a_init_arg_ max16550a_init_arg
TEMP_THRESHOLD_TYPE_E
Definition: sensor.h:784
@ REMOTE_1_LOW_LIMIT
Definition: sensor.h:788
@ TEMP_THRESHOLD_TYPE_E_MAX
Definition: sensor.h:794
@ REMOTE_2_HIGH_LIMIT
Definition: sensor.h:789
@ LOCAL_THERM_LIMIT
Definition: sensor.h:791
@ REMOTE_1_THERM_LIMIT
Definition: sensor.h:792
@ REMOTE_2_LOW_LIMIT
Definition: sensor.h:790
@ LOCAL_LOW_LIMIT
Definition: sensor.h:786
@ REMOTE_2_THERM_LIMIT
Definition: sensor.h:793
@ LOCAL_HIGH_LIMIT
Definition: sensor.h:785
@ REMOTE_1_HIGH_LIMIT
Definition: sensor.h:787
G788P81U_OFFSET
Definition: sensor.h:92
@ G788P81U_ALERT_MODE_OFFSET
Definition: sensor.h:101
@ G788P81U_REMOTE_TEMP_THERM_LIMIT_OFFSET
Definition: sensor.h:99
@ G788P81U_LOCAL_TEMP_THERM_LIMIT_OFFSET
Definition: sensor.h:100
@ G788P81U_REMOTE_THIGH_LIMIT_OFFSET
Definition: sensor.h:96
@ G788P81U_REMOTE_TEMP_OFFSET
Definition: sensor.h:94
@ G788P81U_REMOTE_TEMP_EXT_OFFSET
Definition: sensor.h:97
@ G788P81U_CONFIGURATION_OFFSET
Definition: sensor.h:95
@ G788P81U_ALERT_MASK_OFFSET
Definition: sensor.h:98
@ G788P81U_LOCAL_TEMP_OFFSET
Definition: sensor.h:93
struct _adc128d818_init_arg adc128d818_init_arg
void disable_sensor_poll()
Definition: sensor.c:952
ADM1278_OFFSET
Definition: sensor.h:61
@ ADM1278_PEAK_IOUT_OFFSET
Definition: sensor.h:62
@ ADM1278_PEAK_PIN_OFFSET
Definition: sensor.h:63
@ ADM1278_EIN_EXT_OFFSET
Definition: sensor.h:64
@ SENSOR_INIT_SUCCESS
Definition: sensor.h:254
@ SENSOR_INIT_UNSPECIFIED_ERROR
Definition: sensor.h:254
uint8_t sensor_config_index_map[SENSOR_NUM_MAX]
Definition: sensor.c:53
struct _ltc4286_init_arg ltc4286_init_arg
struct _sensor_poll_time_cfg sensor_poll_time_cfg
NCT7718W_OFFSET
Definition: sensor.h:67
@ NCT7718W_CONFIGURATION_OFFSET
Definition: sensor.h:70
@ NCT7718W_RT1_CRITICAL_TEMP_OFFSET
Definition: sensor.h:74
@ NCT7718W_LOCAL_TEMP_OFFSET
Definition: sensor.h:68
@ NCT7718W_ALERT_MASK_OFFSET
Definition: sensor.h:73
@ NCT7718W_RT_FILTER_ALERT_MODE_OFFSET
Definition: sensor.h:76
@ NCT7718W_CHIP_ID_OFFSET
Definition: sensor.h:77
@ NCT7718W_RT1_HIGH_ALERT_TEMP_OFFSET
Definition: sensor.h:71
@ NCT7718W_REMOTE_TEMP_LSB_OFFSET
Definition: sensor.h:72
@ NCT7718W_REMOTE_TEMP_MSB_OFFSET
Definition: sensor.h:69
@ NCT7718W_LT_CRITICAL_TEMP_OFFSET
Definition: sensor.h:75
@ NCT7718W_VENDOR_ID_OFFSET
Definition: sensor.h:78
struct _pt5161l_init_arg_ pt5161l_init_arg
ADS112C_OFFSET
Definition: sensor.h:109
@ ADS112C_MUX_3_CON
Definition: sensor.h:112
@ ADS112C_MUX_2_CON
Definition: sensor.h:111
@ ADS112C_MUX_1_CON
Definition: sensor.h:110
@ ADS112C_MUX_4_CON
Definition: sensor.h:113
struct _adc_asd_deglitch_arg adc_asd_deglitch_arg
struct _pm8702_dimm_init_arg pm8702_dimm_init_arg
bool vr_access(uint8_t sensor_num)
Definition: sensor.c:1148
void control_sensor_polling(uint8_t sensor_num, uint8_t optional, uint8_t cache_status)
Definition: sensor.c:1421
const char *const sensor_type_name[]
Definition: sensor.c:73
void plat_sensor_poll_post()
Definition: sensor.c:967
CONTROL_SENSOR_POLLING_OPTION
Definition: sensor.h:195
@ ENABLE_SENSOR_POLLING
Definition: sensor.h:197
@ DISABLE_SENSOR_POLLING
Definition: sensor.h:196
struct _sensor_drive_api sensor_drive_api
bool e1s_pwrgd_access(uint8_t sensor_num)
Definition: sensor.c:1129
void clear_unaccessible_sensor_cache(sensor_cfg *cfg)
Definition: sensor.c:810
struct isl69259_init_args isl69259_init_arg
bool init_drive_type_delayed(sensor_cfg *cfg)
Definition: sensor.c:1453
struct _mp2985_init_arg mp2985_init_arg
sensor_drive_api sensor_drive_tbl[]
Definition: sensor.c:368
@ SENSOR_PRE_READ_ERROR
Definition: sensor.h:244
@ SENSOR_READ_API_UNREGISTER
Definition: sensor.h:246
@ SENSOR_NOT_ACCESSIBLE
Definition: sensor.h:239
@ SENSOR_UNAVAILABLE
Definition: sensor.h:251
@ SENSOR_FAIL_TO_ACCESS
Definition: sensor.h:240
@ SENSOR_READ_4BYTE_ACUR_SUCCESS
Definition: sensor.h:247
@ SENSOR_NOT_FOUND
Definition: sensor.h:238
@ SENSOR_PARAMETER_NOT_VALID
Definition: sensor.h:250
@ SENSOR_UNSPECIFIED_ERROR
Definition: sensor.h:242
@ SENSOR_INIT_STATUS
Definition: sensor.h:241
@ SENSOR_READ_SUCCESS
Definition: sensor.h:236
@ SENSOR_POLLING_DISABLE
Definition: sensor.h:243
@ SENSOR_POST_READ_ERROR
Definition: sensor.h:245
@ SENSOR_READ_ACUR_SUCCESS
Definition: sensor.h:237
@ SENSOR_PEC_ERROR
Definition: sensor.h:249
@ SENSOR_NOT_PRESENT
Definition: sensor.h:248
bool get_sensor_init_done_flag()
Definition: sensor.c:1475
struct _vr_page_cfg vr_page_cfg
struct _g788p81u_init_arg_ g788p81u_init_arg
struct _rtq6056_init_arg_ rtq6056_init_arg
void plat_fill_monitor_sensor_table()
Definition: sensor.c:1094
uint16_t sensor_monitor_count
Definition: sensor.c:69
struct mp2971_init_args mp2971_init_arg
void enable_sensor_poll()
Definition: sensor.c:957
struct _pmic_init_arg pmic_init_arg
struct _isl28022_init_arg isl28022_init_arg
sensor_cfg * sensor_config
Definition: sensor.c:65
void add_sensor_config(sensor_cfg config)
Definition: sensor.c:1181
struct _sensor_monitor_table_info sensor_monitor_table_info
bool sensor_init(void)
Definition: sensor.c:1351
DIMM_RELATED_OFFSET
Definition: sensor.h:104
@ DIMM_PMIC_SWA_PWR
Definition: sensor.h:105
@ DIMM_SPD_TEMP
Definition: sensor.h:106
struct _mp5990_init_arg mp5990_init_arg
struct _adc_asd_init_arg adc_asd_init_arg
bool me_access(uint8_t sensor_num)
Definition: sensor.c:1139
bool check_is_sensor_ready()
Definition: sensor.c:1403
SENSOR_DEV
Definition: sensor.h:117
@ sensor_dev_isl69259
Definition: sensor.h:121
@ sensor_dev_mp2985
Definition: sensor.h:160
@ sensor_dev_raa229621
Definition: sensor.h:139
@ sensor_dev_vistara
Definition: sensor.h:165
@ sensor_dev_mp2856gut
Definition: sensor.h:146
@ sensor_dev_ina238
Definition: sensor.h:171
@ sensor_dev_ast_adc
Definition: sensor.h:119
@ sensor_dev_m88rt51632
Definition: sensor.h:161
@ sensor_dev_intel_peci
Definition: sensor.h:120
@ sensor_dev_ads1015
Definition: sensor.h:178
@ sensor_dev_pex89000
Definition: sensor.h:127
@ sensor_dev_amd_tsi
Definition: sensor.h:142
@ sensor_dev_xdpe15284
Definition: sensor.h:129
@ sensor_dev_isl69254iraz_t
Definition: sensor.h:135
@ sensor_dev_xdpe12284c
Definition: sensor.h:138
@ sensor_dev_nct7363
Definition: sensor.h:168
@ sensor_dev_ddr5_temp
Definition: sensor.h:148
@ sensor_dev_ltc4286
Definition: sensor.h:141
@ sensor_dev_hdc1080
Definition: sensor.h:170
@ sensor_dev_nct214
Definition: sensor.h:172
@ sensor_dev_plat_def_sensor
Definition: sensor.h:179
@ sensor_dev_nct7718w
Definition: sensor.h:140
@ sensor_dev_mp5990
Definition: sensor.h:125
@ sensor_dev_ina233
Definition: sensor.h:134
@ sensor_dev_max16550a
Definition: sensor.h:136
@ sensor_dev_ddr5_power
Definition: sensor.h:147
@ sensor_dev_nv_satmc
Definition: sensor.h:167
@ sensor_dev_mp29816a
Definition: sensor.h:187
@ sensor_dev_mp2891
Definition: sensor.h:183
@ sensor_dev_xdp710
Definition: sensor.h:174
@ sensor_dev_apml_mailbox
Definition: sensor.h:143
@ sensor_dev_adm1278
Definition: sensor.h:122
@ sensor_dev_ast_fan
Definition: sensor.h:131
@ sensor_dev_max
Definition: sensor.h:192
@ sensor_dev_bmr313
Definition: sensor.h:182
@ sensor_dev_rtq6056
Definition: sensor.h:186
@ sensor_dev_tmp75
Definition: sensor.h:118
@ sensor_dev_xdpe19283b
Definition: sensor.h:144
@ sensor_dev_pmic
Definition: sensor.h:133
@ sensor_dev_tps53689
Definition: sensor.h:128
@ sensor_dev_pch
Definition: sensor.h:124
@ sensor_dev_max11617
Definition: sensor.h:166
@ sensor_dev_sq52205
Definition: sensor.h:154
@ sensor_dev_cx7
Definition: sensor.h:164
@ sensor_dev_tmp461
Definition: sensor.h:159
@ sensor_dev_raa228238
Definition: sensor.h:184
@ sensor_dev_bmr4922302_803
Definition: sensor.h:189
@ sensor_dev_ads112c
Definition: sensor.h:169
@ sensor_dev_ast_tach
Definition: sensor.h:173
@ sensor_dev_bcm85658
Definition: sensor.h:191
@ sensor_dev_raa228249
Definition: sensor.h:188
@ sensor_dev_emc1412
Definition: sensor.h:155
@ sensor_dev_rs31380r
Definition: sensor.h:176
@ sensor_dev_i3c_dimm
Definition: sensor.h:156
@ sensor_dev_ltc2991
Definition: sensor.h:153
@ sensor_dev_adc128d818
Definition: sensor.h:177
@ sensor_dev_adm1272
Definition: sensor.h:149
@ sensor_dev_u50su4p180pmdafc
Definition: sensor.h:181
@ sensor_dev_e50sn12051
Definition: sensor.h:180
@ sensor_dev_ina230
Definition: sensor.h:137
@ sensor_dev_ds160pt801
Definition: sensor.h:175
@ sensor_dev_mpro
Definition: sensor.h:162
@ sensor_dev_tmp431
Definition: sensor.h:132
@ sensor_dev_mp2971
Definition: sensor.h:151
@ sensor_dev_emc1413
Definition: sensor.h:190
@ sensor_dev_ltc4282
Definition: sensor.h:130
@ sensor_dev_pm8702
Definition: sensor.h:152
@ sensor_dev_lm75bd118
Definition: sensor.h:158
@ sensor_dev_nvme
Definition: sensor.h:123
@ sensor_dev_mpc12109
Definition: sensor.h:185
@ sensor_dev_q50sn120a1
Definition: sensor.h:150
@ sensor_dev_isl28022
Definition: sensor.h:126
@ sensor_dev_g788p81u
Definition: sensor.h:145
@ sensor_dev_bmr351
Definition: sensor.h:163
@ sensor_dev_pt5161l
Definition: sensor.h:157
#define SENSOR_NUM_MAX
Definition: sensor.h:40
void load_sensor_config(void)
Definition: sensor.c:1413
bool enable_sensor_poll_thread
Definition: sensor.c:56
bool get_sensor_poll_enable_flag()
Definition: sensor.c:962
uint8_t pal_get_monitor_sensor_count()
Definition: sensor.c:1089
bool pal_is_time_to_poll(uint8_t sensor_num, int poll_time)
Definition: sensor.c:1063
uint8_t get_sensor_reading(sensor_cfg *cfg_table, uint8_t cfg_count, uint8_t sensor_num, int *reading, uint8_t read_mode)
Definition: sensor.c:820
bool stby_access(uint8_t sensor_num)
Definition: sensor.c:1119
struct _max11617_init_arg max11617_init_arg
bool post_access(uint8_t sensor_num)
Definition: sensor.c:1134
struct _adm1272_init_arg adm1272_init_arg
uint8_t common_tbl_sen_reinit(uint8_t sen_num)
Definition: sensor.c:1258
struct _ina233_init_arg_ ina233_init_arg
bool vr_stby_access(uint8_t sensor_num)
Definition: sensor.c:1156
void pal_set_sensor_poll_interval(int *interval_ms)
Definition: sensor.c:1068
struct _cx7_init_arg cx7_init_arg
sensor_cfg * find_sensor_cfg_via_sensor_num(sensor_cfg *cfg_table, uint8_t cfg_count, uint8_t sensor_num)
Definition: sensor.c:786
struct _sq52205_init_arg_ sq52205_init_arg
struct _vistara_init_arg_ vistara_init_arg
struct _pex89000_init_arg pex89000_init_arg
struct _nct7718w_init_arg_ nct7718w_init_arg
bool dc_access(uint8_t sensor_num)
Definition: sensor.c:1124
LTC4282_OFFSET
Definition: sensor.h:50
@ LTC4282_POWER_OFFSET
Definition: sensor.h:53
@ LTC4282_VSOURCE_OFFSET
Definition: sensor.h:54
@ LTC4282_ADC_CONTROL_OFFSET
Definition: sensor.h:55
@ LTC4282_STATUS_OFFSET_BYTE2
Definition: sensor.h:58
@ LTC4282_ILIM_ADJUST_OFFSET
Definition: sensor.h:51
@ LTC4282_STATUS_OFFSET_BYTE1
Definition: sensor.h:57
@ LTC4282_VSENSE_OFFSET
Definition: sensor.h:52
@ LTC4282_ENERGY_OFFSET
Definition: sensor.h:56
struct _nv_satmc_init_arg nv_satmc_init_arg
uint8_t plat_get_config_size()
Definition: sensor.c:1408
struct _ddr5_init_power_arg_ ddr5_init_power_arg
struct _ltc4282_init_arg ltc4282_init_arg
INA230_OFFSET
Definition: sensor.h:81
@ INA230_ALT_OFFSET
Definition: sensor.h:89
@ INA230_PWR_OFFSET
Definition: sensor.h:85
@ INA230_CFG_OFFSET
Definition: sensor.h:82
@ INA230_CUR_OFFSET
Definition: sensor.h:86
@ INA230_VSH_VOL_OFFSET
Definition: sensor.h:83
@ INA230_BUS_VOL_OFFSET
Definition: sensor.h:84
@ INA230_CAL_OFFSET
Definition: sensor.h:87
@ INA230_MSK_OFFSET
Definition: sensor.h:88
#define MAX_SENSOR_NAME_LENGTH
Definition: sensor_shell.h:23
uint8_t sensor_num
Definition: storage_handler.h:6
bool external_vref
Definition: sensor.h:770
bool is_init
Definition: sensor.h:769
float scalefactor[8]
Definition: sensor.h:772
float vref
Definition: sensor.h:771
uint16_t lower_bound
Definition: sensor.h:360
uint16_t upper_bound
Definition: sensor.h:359
bool deglitch_en
Definition: sensor.h:361
bool is_init
Definition: sensor.h:365
adc_asd_deglitch_arg deglitch[8]
Definition: sensor.h:366
bool is_need_set_pwr_cfg
Definition: sensor.h:626
uint16_t TSFILT
Definition: sensor.h:620
uint16_t IRANGE
Definition: sensor.h:610
bool is_init
Definition: sensor.h:625
uint16_t SIMULTANEOUS
Definition: sensor.h:619
uint16_t VRANGE
Definition: sensor.h:615
uint16_t VOUT_EN
Definition: sensor.h:611
uint16_t VIN_EN
Definition: sensor.h:612
uint16_t value
Definition: sensor.h:608
uint16_t PWR_AVG
Definition: sensor.h:618
uint16_t VI_AVG
Definition: sensor.h:617
uint16_t RSV2
Definition: sensor.h:616
union _adm1272_init_arg::@124 pwr_monitor_cfg
uint16_t PMON_MODE
Definition: sensor.h:614
uint16_t TEMP1_EN
Definition: sensor.h:613
float r_sense_mohm
Definition: sensor.h:627
struct _adm1272_init_arg::@124::@125 fields
uint16_t PMON_MODE
Definition: sensor.h:378
uint16_t RSV2
Definition: sensor.h:379
uint16_t VI_AVG
Definition: sensor.h:380
uint16_t RSV1
Definition: sensor.h:374
uint16_t value
Definition: sensor.h:372
bool is_init
Definition: sensor.h:390
uint16_t SIMULTANEOUS
Definition: sensor.h:382
uint16_t TSFILT
Definition: sensor.h:383
uint16_t PWR_AVG
Definition: sensor.h:381
uint16_t VIN_EN
Definition: sensor.h:376
union _adm1278_init_arg::@106 config
uint16_t VOUT_EN
Definition: sensor.h:375
struct _adm1278_init_arg::@106::@107 fields
uint16_t TEMP1_EN
Definition: sensor.h:377
float r_sense
Definition: sensor.h:387
uint8_t retry
Definition: sensor.h:586
uint32_t data
Definition: sensor.h:585
uint16_t sensor_id
Definition: sensor.h:749
uint8_t endpoint
Definition: sensor.h:748
bool is_init
Definition: sensor.h:747
uint8_t port_number
Definition: sensor.h:596
uint8_t HID_code
Definition: sensor.h:595
float ts1_temp
Definition: sensor.h:603
float ts0_temp
Definition: sensor.h:602
uint8_t HID_code
Definition: sensor.h:600
uint8_t port_number
Definition: sensor.h:601
bool is_init
Definition: sensor.h:726
uint8_t alert_mode
Definition: sensor.h:728
uint8_t local_temp_therm_limit
Definition: sensor.h:732
uint8_t alert_mask
Definition: sensor.h:729
uint8_t remote_temp_therm_limit
Definition: sensor.h:731
uint8_t configuration
Definition: sensor.h:730
uint8_t remote_T_high_limit
Definition: sensor.h:727
double cur_lsb
Definition: sensor.h:576
double i_max
Definition: sensor.h:571
uint16_t CVRF
Definition: sensor.h:558
uint16_t AVG
Definition: sensor.h:537
union _ina230_init_arg::@119 alt_cfg
uint16_t LEN
Definition: sensor.h:555
union _ina230_init_arg::@118 config
uint16_t POL
Definition: sensor.h:562
uint16_t CNVR
Definition: sensor.h:561
uint16_t BUL
Definition: sensor.h:563
double r_shunt
Definition: sensor.h:544
uint16_t reserved
Definition: sensor.h:538
double alert_value
Definition: sensor.h:549
double pwr_lsb
Definition: sensor.h:577
uint16_t VBUS_CT
Definition: sensor.h:536
uint16_t RST
Definition: sensor.h:539
uint16_t SUL
Definition: sensor.h:565
uint16_t value
Definition: sensor.h:532
uint16_t MODE
Definition: sensor.h:534
uint16_t AFF
Definition: sensor.h:559
uint16_t APOL
Definition: sensor.h:556
uint16_t OVF
Definition: sensor.h:557
uint16_t VSH_CT
Definition: sensor.h:535
bool is_init
Definition: sensor.h:580
uint16_t BOL
Definition: sensor.h:564
uint16_t SOL
Definition: sensor.h:566
bool is_init
Definition: sensor.h:490
uint8_t rsvd
Definition: sensor.h:514
float r_shunt
Definition: sensor.h:492
uint16_t rsvd
Definition: sensor.h:502
uint16_t shunt_volt_time
Definition: sensor.h:499
uint8_t ein_status
Definition: sensor.h:515
uint16_t vin_ov_warn_limit
Definition: sensor.h:520
uint16_t value
Definition: sensor.h:496
uint8_t apol
Definition: sensor.h:509
union _ina233_init_arg_::@113 mfr_device_config
uint8_t alert_behavior
Definition: sensor.h:510
uint8_t i2c_filt
Definition: sensor.h:512
float current_lsb
Definition: sensor.h:491
uint16_t operating_mode
Definition: sensor.h:498
uint16_t iout_oc_warn_limit
Definition: sensor.h:519
bool is_need_set_alert_threshold
Definition: sensor.h:518
uint8_t ein_autoclear
Definition: sensor.h:511
uint8_t value
Definition: sensor.h:507
union _ina233_init_arg_::@112 mfr_config
uint16_t pin_op_warn_limit
Definition: sensor.h:522
uint16_t aver_mode
Definition: sensor.h:501
bool mfr_config_init
Definition: sensor.h:493
uint16_t vin_uv_warn_limit
Definition: sensor.h:521
uint16_t bus_volt_time
Definition: sensor.h:500
uint8_t ein_accum
Definition: sensor.h:513
bool is_need_mfr_device_config_init
Definition: sensor.h:505
uint16_t FORCEINTR
Definition: sensor.h:343
uint16_t value
Definition: sensor.h:334
bool do_config
Definition: sensor.h:332
union _isl28022_init_arg::aux_control_config::@104 config
uint16_t resv
Definition: sensor.h:344
uint16_t ExtClkEn
Definition: sensor.h:339
uint16_t ExtCLKDiv
Definition: sensor.h:337
uint16_t INTREN
Definition: sensor.h:341
struct _isl28022_init_arg::aux_control_config::@104::@105 fields
float min_threshold_limit
Definition: sensor.h:327
float max_threshold_limit
Definition: sensor.h:328
bool do_config
Definition: sensor.h:325
struct _isl28022_init_arg::@102::@103 fields
uint16_t MODE
Definition: sensor.h:315
union _isl28022_init_arg::@102 config
bool is_init
Definition: sensor.h:354
uint16_t SADC
Definition: sensor.h:316
uint16_t BADC
Definition: sensor.h:317
struct _isl28022_init_arg::bus_volt_threshold_config bus_volt_threshold_config
uint16_t BRNG
Definition: sensor.h:319
uint16_t PG
Definition: sensor.h:318
uint16_t value
Definition: sensor.h:313
float current_LSB
Definition: sensor.h:352
uint32_t r_shunt
Definition: sensor.h:350
struct _isl28022_init_arg::aux_control_config aux_control_config
uint16_t RST
Definition: sensor.h:320
uint8_t V5_V6_TEMPERATURE
Definition: sensor.h:704
bool is_init
Definition: sensor.h:686
uint8_t V5_V6_DIFFERENTIAL
Definition: sensor.h:703
uint8_t V7_V8_TEMPERATURE
Definition: sensor.h:708
uint8_t T4_KELVIN
Definition: sensor.h:709
uint8_t V3_V4_DIFFERENTIAL
Definition: sensor.h:694
union _ltc2991_init_arg_::@135 v1_v4_control_operation
uint8_t V1_V2_DIFFERENTIAL
Definition: sensor.h:690
struct _ltc2991_init_arg_::@135::@137 fields
uint8_t V5_V6_FILT
Definition: sensor.h:706
uint8_t T1_KELVIN
Definition: sensor.h:692
uint8_t V3_V4_TEMPERATURE
Definition: sensor.h:695
uint8_t T3_KELVIN
Definition: sensor.h:705
uint8_t V1_V2_TEMPERATURE
Definition: sensor.h:691
uint8_t V7_V8_DIFFERENTIAL
Definition: sensor.h:707
int value
Definition: sensor.h:688
union _ltc2991_init_arg_::@136 v5_v8_control_operation
uint8_t V3_V4_FILT
Definition: sensor.h:697
uint8_t T2_KELVIN
Definition: sensor.h:696
uint8_t V7_V8_FILT
Definition: sensor.h:710
uint8_t V1_V2_FILT
Definition: sensor.h:693
uint8_t _16_bit
Definition: sensor.h:408
uint8_t value
Definition: sensor.h:406
uint8_t gpio_mode
Definition: sensor.h:409
bool is_init
Definition: sensor.h:420
float r_sense_mohm
Definition: sensor.h:417
uint8_t vsource_vdd
Definition: sensor.h:410
uint8_t ilim_adjust
Definition: sensor.h:412
uint8_t foldback_mode
Definition: sensor.h:411
uint8_t is_register_setting_needed
Definition: sensor.h:426
struct _ltc4282_init_arg::@108::@109 fields
uint16_t value
Definition: sensor.h:432
uint16_t reserved_2
Definition: sensor.h:438
uint16_t ilim
Definition: sensor.h:437
uint16_t reserved_1
Definition: sensor.h:436
union _ltc4286_init_arg::@110 mfr_config_1
bool is_init
Definition: sensor.h:444
float r_sense_mohm
Definition: sensor.h:442
struct _ltc4286_init_arg::@110::@111 fields
uint16_t vrange_select
Definition: sensor.h:435
uint16_t vpwr_select
Definition: sensor.h:434
uint8_t mode
Definition: sensor.h:754
bool is_init
Definition: sensor.h:753
uint8_t config_byte
Definition: sensor.h:756
float scalefactor[12]
Definition: sensor.h:757
uint8_t setup_byte
Definition: sensor.h:755
float r_load
Definition: sensor.h:526
bool is_init
Definition: sensor.h:743
uint16_t iout_cal_gain
Definition: sensor.h:449
bool is_init
Definition: sensor.h:456
uint16_t iout_oc_fault_limit
Definition: sensor.h:451
uint16_t ocw_sc_ref
Definition: sensor.h:453
uint8_t rt1_critical_temperature
Definition: sensor.h:721
uint8_t alert_mask
Definition: sensor.h:719
uint8_t configuration
Definition: sensor.h:720
uint8_t rt_filter_alert_mode
Definition: sensor.h:718
bool is_init
Definition: sensor.h:716
uint8_t lt_critical_temperature
Definition: sensor.h:722
uint8_t rt1_high_alert_temp
Definition: sensor.h:717
uint8_t state_sensor_idx
Definition: sensor.h:764
uint8_t endpoint
Definition: sensor.h:762
pldm_sensor_pdr_parm parm
Definition: sensor.h:765
bool is_init
Definition: sensor.h:761
uint16_t sensor_id
Definition: sensor.h:763
uint8_t idx
Definition: sensor.h:395
struct k_mutex brcm_pciesw
Definition: sensor.h:396
bool is_init
Definition: sensor.h:399
Definition: pldm_monitor.h:202
uint8_t dimm_id
Definition: sensor.h:591
bool is_init
Definition: sensor.h:590
uint8_t smbus_addr
Definition: sensor.h:476
uint8_t smbus_bus_identifier
Definition: sensor.h:475
bool is_init
Definition: sensor.h:474
bool is_init
Definition: sensor.h:739
uint8_t temp_cal_code_pma_b[4]
Definition: sensor.h:737
uint8_t temp_cal_code_avg
Definition: sensor.h:738
uint8_t temp_cal_code_pma_a[4]
Definition: sensor.h:736
uint16_t iout_oc_fault_limit
Definition: sensor.h:464
bool is_init
Definition: sensor.h:469
uint16_t ocw_sc_ref
Definition: sensor.h:466
uint16_t iout_cal_gain
Definition: sensor.h:462
float current_lsb
Definition: sensor.h:481
bool is_init
Definition: sensor.h:480
float r_shunt
Definition: sensor.h:482
bool(* pre_sensor_read_hook)(struct _sensor_cfg_ *, void *)
Definition: sensor.h:270
uint8_t num
Definition: sensor.h:257
uint8_t target_addr
Definition: sensor.h:260
int cache
Definition: sensor.h:268
bool(* post_sensor_read_hook)(struct _sensor_cfg_ *, void *, int *)
Definition: sensor.h:272
int sample_count
Definition: sensor.h:265
uint8_t(* read)(struct _sensor_cfg_ *, int *)
Definition: sensor.h:280
uint8_t(* init)(uint8_t, int *)
Definition: sensor.h:279
int64_t poll_time
Definition: sensor.h:266
uint16_t offset
Definition: sensor.h:261
uint8_t port
Definition: sensor.h:259
int arg0
Definition: sensor.h:263
void * post_sensor_read_args
Definition: sensor.h:273
void * priv_data
Definition: sensor.h:277
uint8_t cache_status
Definition: sensor.h:269
void * init_args
Definition: sensor.h:274
void * pre_sensor_read_args
Definition: sensor.h:271
bool(* access_checker)(uint8_t)
Definition: sensor.h:262
uint8_t type
Definition: sensor.h:258
bool is_enable_polling
Definition: sensor.h:267
uint8_t retry
Definition: sensor.h:278
int arg1
Definition: sensor.h:264
uint8_t(* init)(struct _sensor_cfg_ *)
Definition: sensor.h:297
enum SENSOR_DEV dev
Definition: sensor.h:296
bool(* post_monitor)(uint8_t, void *)
Definition: sensor.h:289
uint8_t cfg_count
Definition: sensor.h:285
uint8_t access_checker_arg
Definition: sensor.h:287
void * pre_post_monitor_arg
Definition: sensor.h:290
char table_name[MAX_SENSOR_NAME_LENGTH]
Definition: sensor.h:292
bool(* pre_monitor)(uint8_t, void *)
Definition: sensor.h:288
bool(* access_checker)(uint8_t)
Definition: sensor.h:286
void * priv_data
Definition: sensor.h:291
sensor_cfg * monitor_sensor_cfg
Definition: sensor.h:284
uint8_t sensor_num
Definition: sensor.h:301
int64_t last_access_time
Definition: sensor.h:302
int16_t fraction
Definition: sensor.h:202
int16_t integer
Definition: sensor.h:201
union _sq52205_init_arg_::@128 alert_mask_config
uint16_t aver_mode
Definition: sensor.h:647
uint16_t value
Definition: sensor.h:642
uint8_t bus_voltage_ov
Definition: sensor.h:676
uint8_t ein_accum
Definition: sensor.h:663
uint8_t shunt_voltage_ov
Definition: sensor.h:678
float current_lsb
Definition: sensor.h:639
uint16_t shunt_volt_time
Definition: sensor.h:645
uint8_t switch_ein_mode
Definition: sensor.h:658
uint16_t alert_threshold
Definition: sensor.h:682
uint8_t resv
Definition: sensor.h:679
union _sq52205_init_arg_::@127 accum_config
uint8_t ein_auto_clear
Definition: sensor.h:661
uint8_t shunt_voltage_uv
Definition: sensor.h:677
uint8_t value
Definition: sensor.h:672
float r_shunt
Definition: sensor.h:640
uint16_t reset_bit
Definition: sensor.h:649
bool is_need_accum_config_init
Definition: sensor.h:653
uint8_t timer
Definition: sensor.h:660
uint8_t rsvd
Definition: sensor.h:659
bool is_init
Definition: sensor.h:638
uint8_t switch_adc_mode
Definition: sensor.h:662
uint8_t accum_mode
Definition: sensor.h:664
bool is_need_set_alert_threshold
Definition: sensor.h:669
uint8_t bus_voltage_uv
Definition: sensor.h:675
uint16_t rsvd
Definition: sensor.h:648
union _sq52205_init_arg_::@126 config
uint16_t bus_volt_time
Definition: sensor.h:646
uint8_t clear_ein
Definition: sensor.h:657
uint8_t ein_status
Definition: sensor.h:665
uint16_t operating_mode
Definition: sensor.h:644
uint8_t power_over_bit
Definition: sensor.h:674
bool is_cached
Definition: sensor.h:486
uint8_t vr_page
Definition: sensor.h:306
float vout_scale
Definition: sensor.h:781
bool vout_scale_enable
Definition: sensor.h:780
bool vout_scale_enable
Definition: sensor.h:776
uint8_t addr
Definition: sensor.h:206
uint8_t chan
Definition: sensor.h:207