OpenBIC
OpenSource Bridge-IC
sensor.h File Reference
#include <stdbool.h>
#include <stdint.h>
#include <kernel.h>
#include "plat_def.h"
#include "sdr.h"
#include "pldm_monitor.h"
#include "libutil.h"
#include "sensor_shell.h"
Include dependency graph for sensor.h:

Go to the source code of this file.

Classes

struct  _sensor_val
 
struct  tca9548
 
struct  _sensor_cfg_
 
struct  _sensor_monitor_table_info
 
struct  _sensor_drive_api
 
struct  _sensor_poll_time_cfg
 
struct  _vr_page_cfg
 
struct  _isl28022_init_arg
 
struct  _isl28022_init_arg::bus_volt_threshold_config
 
struct  _isl28022_init_arg::aux_control_config
 
struct  _adc_asd_deglitch_arg
 
struct  _adc_asd_init_arg
 
struct  _adm1278_init_arg
 
struct  _pex89000_init_arg
 
struct  _ltc4282_init_arg
 
struct  _ltc4286_init_arg
 
struct  _mp5990_init_arg
 
struct  _rs31380r_init_arg
 
struct  _pmic_init_arg
 
struct  _rtq6056_init_arg_
 
struct  _vistara_init_arg_
 
struct  _ina233_init_arg_
 
struct  _max16550a_init_arg_
 
struct  _ina230_init_arg
 
struct  _apml_mailbox_init_arg_
 
struct  _pm8702_dimm_init_arg
 
struct  _ddr5_init_power_arg_
 
struct  _ddr5_init_temp_arg_
 
struct  _adm1272_init_arg
 
struct  _sq52205_init_arg_
 
struct  _ltc2991_init_arg_
 
struct  _nct7718w_init_arg_
 
struct  _g788p81u_init_arg_
 
struct  _pt5161l_init_arg_
 
struct  _mp2985_init_arg
 
struct  _cx7_init_arg
 
struct  _max11617_init_arg
 
struct  _nv_satmc_init_arg
 
struct  _adc128d818_init_arg
 
struct  mp2971_init_args
 
struct  isl69259_init_args
 

Macros

#define sensor_name_to_num(x)   #x,
 
#define SENSOR_POLL_STACK_SIZE   2048
 
#define NONE   0
 
#define GET_FROM_CACHE   0x00
 
#define GET_FROM_SENSOR   0x01
 
#define SENSOR_NULL   0xFF
 
#define SENSOR_FAIL   0xFF
 
#define SENSOR_NUM_MAX   0xFF
 
#define SENSOR_NOT_SUPPORT   0xFF
 
#define DIMM_NOT_PRESENT   0xFF
 
#define DEBUG_SENSOR   0
 
#define SAMPLE_COUNT_DEFAULT   1
 
#define POLL_TIME_DEFAULT   1
 

Typedefs

typedef struct _sensor_val sensor_val
 
typedef struct _sensor_cfg_ sensor_cfg
 
typedef struct _sensor_monitor_table_info sensor_monitor_table_info
 
typedef struct _sensor_drive_api sensor_drive_api
 
typedef struct _sensor_poll_time_cfg sensor_poll_time_cfg
 
typedef struct _vr_page_cfg vr_page_cfg
 
typedef struct _isl28022_init_arg isl28022_init_arg
 
typedef struct _adc_asd_deglitch_arg adc_asd_deglitch_arg
 
typedef struct _adc_asd_init_arg adc_asd_init_arg
 
typedef struct _adm1278_init_arg adm1278_init_arg
 
typedef struct _pex89000_init_arg pex89000_init_arg
 
typedef struct _ltc4282_init_arg ltc4282_init_arg
 
typedef struct _ltc4286_init_arg ltc4286_init_arg
 
typedef struct _mp5990_init_arg mp5990_init_arg
 
typedef struct _rs31380r_init_arg rs31380r_init_arg
 
typedef struct _pmic_init_arg pmic_init_arg
 
typedef struct _rtq6056_init_arg_ rtq6056_init_arg
 
typedef struct _vistara_init_arg_ vistara_init_arg
 
typedef struct _ina233_init_arg_ ina233_init_arg
 
typedef struct _max16550a_init_arg_ max16550a_init_arg
 
typedef struct _ina230_init_arg ina230_init_arg
 
typedef struct _apml_mailbox_init_arg_ apml_mailbox_init_arg
 
typedef struct _pm8702_dimm_init_arg pm8702_dimm_init_arg
 
typedef struct _ddr5_init_power_arg_ ddr5_init_power_arg
 
typedef struct _ddr5_init_temp_arg_ ddr5_init_temp_arg
 
typedef struct _adm1272_init_arg adm1272_init_arg
 
typedef struct _sq52205_init_arg_ sq52205_init_arg
 
typedef struct _ltc2991_init_arg_ ltc2991_init_arg
 
typedef struct _nct7718w_init_arg_ nct7718w_init_arg
 
typedef struct _g788p81u_init_arg_ g788p81u_init_arg
 
typedef struct _pt5161l_init_arg_ pt5161l_init_arg
 
typedef struct _mp2985_init_arg mp2985_init_arg
 
typedef struct _cx7_init_arg cx7_init_arg
 
typedef struct _max11617_init_arg max11617_init_arg
 
typedef struct _nv_satmc_init_arg nv_satmc_init_arg
 
typedef struct _adc128d818_init_arg adc128d818_init_arg
 
typedef struct mp2971_init_args mp2971_init_arg
 
typedef struct isl69259_init_args isl69259_init_arg
 

Enumerations

enum  LTC4282_OFFSET {
  LTC4282_ILIM_ADJUST_OFFSET = 0x11 , LTC4282_VSENSE_OFFSET = 0x40 , LTC4282_POWER_OFFSET = 0x46 , LTC4282_VSOURCE_OFFSET = 0x3A ,
  LTC4282_ADC_CONTROL_OFFSET = 0x1D , LTC4282_ENERGY_OFFSET = 0x12 , LTC4282_STATUS_OFFSET_BYTE1 = 0x1E , LTC4282_STATUS_OFFSET_BYTE2 = 0x1F
}
 
enum  ADM1278_OFFSET { ADM1278_PEAK_IOUT_OFFSET = 0xD0 , ADM1278_PEAK_PIN_OFFSET = 0xDA , ADM1278_EIN_EXT_OFFSET = 0xDC }
 
enum  NCT7718W_OFFSET {
  NCT7718W_LOCAL_TEMP_OFFSET = 0x00 , NCT7718W_REMOTE_TEMP_MSB_OFFSET = 0x01 , NCT7718W_CONFIGURATION_OFFSET = 0x03 , NCT7718W_RT1_HIGH_ALERT_TEMP_OFFSET = 0x0D ,
  NCT7718W_REMOTE_TEMP_LSB_OFFSET = 0x10 , NCT7718W_ALERT_MASK_OFFSET = 0x16 , NCT7718W_RT1_CRITICAL_TEMP_OFFSET = 0x19 , NCT7718W_LT_CRITICAL_TEMP_OFFSET = 0x20 ,
  NCT7718W_RT_FILTER_ALERT_MODE_OFFSET = 0xBF , NCT7718W_CHIP_ID_OFFSET = 0xFD , NCT7718W_VENDOR_ID_OFFSET = 0xFE
}
 
enum  INA230_OFFSET {
  INA230_CFG_OFFSET = 0x00 , INA230_VSH_VOL_OFFSET = 0x01 , INA230_BUS_VOL_OFFSET = 0x02 , INA230_PWR_OFFSET = 0x03 ,
  INA230_CUR_OFFSET = 0x04 , INA230_CAL_OFFSET = 0x05 , INA230_MSK_OFFSET = 0x06 , INA230_ALT_OFFSET = 0x07
}
 
enum  G788P81U_OFFSET {
  G788P81U_LOCAL_TEMP_OFFSET = 0x00 , G788P81U_REMOTE_TEMP_OFFSET = 0x01 , G788P81U_CONFIGURATION_OFFSET = 0x03 , G788P81U_REMOTE_THIGH_LIMIT_OFFSET = 0x0D ,
  G788P81U_REMOTE_TEMP_EXT_OFFSET = 0x10 , G788P81U_ALERT_MASK_OFFSET = 0x16 , G788P81U_REMOTE_TEMP_THERM_LIMIT_OFFSET = 0x19 , G788P81U_LOCAL_TEMP_THERM_LIMIT_OFFSET = 0x20 ,
  G788P81U_ALERT_MODE_OFFSET = 0xBF
}
 
enum  DIMM_RELATED_OFFSET { DIMM_PMIC_SWA_PWR = 0x0C , DIMM_SPD_TEMP = 0x31 }
 
enum  ADS112C_OFFSET { ADS112C_MUX_1_CON = 0x80 , ADS112C_MUX_2_CON = 0x90 , ADS112C_MUX_3_CON = 0xA0 , ADS112C_MUX_4_CON = 0xA1 }
 
enum  SENSOR_DEV {
  sensor_dev_tmp75 = 0 , sensor_dev_ast_adc = 0x01 , sensor_dev_intel_peci = 0x02 , sensor_dev_isl69259 = 0x03 ,
  sensor_dev_adm1278 = 0x04 , sensor_dev_nvme = 0x05 , sensor_dev_pch = 0x06 , sensor_dev_mp5990 = 0x07 ,
  sensor_dev_isl28022 = 0x08 , sensor_dev_pex89000 = 0x09 , sensor_dev_tps53689 = 0x0A , sensor_dev_xdpe15284 = 0x0B ,
  sensor_dev_ltc4282 = 0x0C , sensor_dev_ast_fan = 0x0D , sensor_dev_tmp431 = 0x0E , sensor_dev_pmic = 0x0F ,
  sensor_dev_ina233 = 0x10 , sensor_dev_isl69254iraz_t = 0x11 , sensor_dev_max16550a = 0x12 , sensor_dev_ina230 = 0x13 ,
  sensor_dev_xdpe12284c = 0x14 , sensor_dev_raa229621 = 0x15 , sensor_dev_nct7718w = 0x16 , sensor_dev_ltc4286 = 0x17 ,
  sensor_dev_amd_tsi = 0x18 , sensor_dev_apml_mailbox = 0x19 , sensor_dev_xdpe19283b = 0x1A , sensor_dev_g788p81u = 0x1B ,
  sensor_dev_mp2856gut = 0x1C , sensor_dev_ddr5_power = 0x1D , sensor_dev_ddr5_temp = 0x1E , sensor_dev_adm1272 = 0x1F ,
  sensor_dev_q50sn120a1 = 0x20 , sensor_dev_mp2971 = 0x21 , sensor_dev_pm8702 = 0x22 , sensor_dev_ltc2991 = 0x23 ,
  sensor_dev_sq52205 = 0x24 , sensor_dev_emc1412 = 0x25 , sensor_dev_i3c_dimm = 0x26 , sensor_dev_pt5161l = 0x27 ,
  sensor_dev_lm75bd118 = 0x28 , sensor_dev_tmp461 = 0x29 , sensor_dev_mp2985 = 0x2A , sensor_dev_m88rt51632 = 0x2B ,
  sensor_dev_mpro = 0x2C , sensor_dev_bmr351 = 0x2D , sensor_dev_cx7 = 0x2E , sensor_dev_vistara = 0x2F ,
  sensor_dev_max11617 = 0x30 , sensor_dev_nv_satmc = 0x31 , sensor_dev_nct7363 = 0x32 , sensor_dev_ads112c = 0x33 ,
  sensor_dev_hdc1080 = 0x34 , sensor_dev_ina238 = 0x35 , sensor_dev_nct214 = 0x36 , sensor_dev_ast_tach = 0x37 ,
  sensor_dev_xdp710 = 0x38 , sensor_dev_ds160pt801 = 0x39 , sensor_dev_rs31380r = 0x3A , sensor_dev_adc128d818 = 0x3B ,
  sensor_dev_ads1015 = 0x3C , sensor_dev_plat_def_sensor = 0x3D , sensor_dev_e50sn12051 = 0x3E , sensor_dev_u50su4p180pmdafc = 0x3F ,
  sensor_dev_bmr313 = 0x40 , sensor_dev_mp2891 = 0x41 , sensor_dev_raa228238 = 0x42 , sensor_dev_mpc12109 = 0x43 ,
  sensor_dev_rtq6056 = 0x44 , sensor_dev_mp29816a = 0x45 , sensor_dev_raa228249 = 0x46 , sensor_dev_bmr4922302_803 = 0x47 ,
  sensor_dev_emc1413 = 0x48 , sensor_dev_max
}
 
enum  CONTROL_SENSOR_POLLING_OPTION { DISABLE_SENSOR_POLLING = false , ENABLE_SENSOR_POLLING = true }
 
enum  {
  SENSOR_READ_SUCCESS , SENSOR_READ_ACUR_SUCCESS , SENSOR_NOT_FOUND , SENSOR_NOT_ACCESSIBLE ,
  SENSOR_FAIL_TO_ACCESS , SENSOR_INIT_STATUS , SENSOR_UNSPECIFIED_ERROR , SENSOR_POLLING_DISABLE ,
  SENSOR_PRE_READ_ERROR , SENSOR_POST_READ_ERROR , SENSOR_READ_API_UNREGISTER , SENSOR_READ_4BYTE_ACUR_SUCCESS ,
  SENSOR_NOT_PRESENT , SENSOR_PEC_ERROR , SENSOR_PARAMETER_NOT_VALID , SENSOR_UNAVAILABLE
}
 
enum  { SENSOR_INIT_SUCCESS , SENSOR_INIT_UNSPECIFIED_ERROR }
 

Functions

void clear_unaccessible_sensor_cache (sensor_cfg *cfg)
 
uint8_t get_sensor_reading (sensor_cfg *cfg_table, uint8_t cfg_count, uint8_t sensor_num, int *reading, uint8_t read_mode)
 
void pal_set_sensor_poll_interval (int *interval_ms)
 
bool stby_access (uint8_t sensor_num)
 
bool dc_access (uint8_t sensor_num)
 
bool e1s_pwrgd_access (uint8_t sensor_num)
 
bool post_access (uint8_t sensor_num)
 
bool me_access (uint8_t sensor_num)
 
bool vr_access (uint8_t sensor_num)
 
bool vr_stby_access (uint8_t sensor_num)
 
bool sensor_init (void)
 
void disable_sensor_poll ()
 
void enable_sensor_poll ()
 
bool get_sensor_poll_enable_flag ()
 
void pal_extend_sensor_config (void)
 
bool check_sensor_num_exist (uint8_t sensor_num)
 
void add_sensor_config (sensor_cfg config)
 
bool check_is_sensor_ready ()
 
bool pal_is_time_to_poll (uint8_t sensor_num, int poll_time)
 
uint8_t plat_get_config_size ()
 
void load_sensor_config (void)
 
void control_sensor_polling (uint8_t sensor_num, uint8_t optional, uint8_t cache_status)
 
bool check_reading_pointer_null_is_allowed (sensor_cfg *cfg)
 
bool init_drive_type_delayed (sensor_cfg *cfg)
 
uint8_t pal_get_monitor_sensor_count ()
 
void plat_fill_monitor_sensor_table ()
 
sensor_cfgfind_sensor_cfg_via_sensor_num (sensor_cfg *cfg_table, uint8_t cfg_count, uint8_t sensor_num)
 
bool get_sensor_init_done_flag ()
 
sensor_cfgget_common_sensor_cfg_info (uint8_t sensor_num)
 
uint8_t common_tbl_sen_reinit (uint8_t sen_num)
 
void plat_sensor_poll_post ()
 

Variables

bool enable_sensor_poll_thread
 
sensor_cfgsensor_config
 
uint8_t sensor_config_index_map [SENSOR_NUM_MAX]
 
uint8_t sensor_config_count
 
sensor_monitor_table_infosensor_monitor_table
 
uint16_t sensor_monitor_count
 
const char *const sensor_type_name []
 
sensor_drive_api sensor_drive_tbl []
 

Macro Definition Documentation

◆ DEBUG_SENSOR

#define DEBUG_SENSOR   0

◆ DIMM_NOT_PRESENT

#define DIMM_NOT_PRESENT   0xFF

◆ GET_FROM_CACHE

#define GET_FROM_CACHE   0x00

◆ GET_FROM_SENSOR

#define GET_FROM_SENSOR   0x01

◆ NONE

#define NONE   0

◆ POLL_TIME_DEFAULT

#define POLL_TIME_DEFAULT   1

◆ SAMPLE_COUNT_DEFAULT

#define SAMPLE_COUNT_DEFAULT   1

◆ SENSOR_FAIL

#define SENSOR_FAIL   0xFF

◆ sensor_name_to_num

#define sensor_name_to_num (   x)    #x,

◆ SENSOR_NOT_SUPPORT

#define SENSOR_NOT_SUPPORT   0xFF

◆ SENSOR_NULL

#define SENSOR_NULL   0xFF

◆ SENSOR_NUM_MAX

#define SENSOR_NUM_MAX   0xFF

◆ SENSOR_POLL_STACK_SIZE

#define SENSOR_POLL_STACK_SIZE   2048

Typedef Documentation

◆ adc128d818_init_arg

◆ adc_asd_deglitch_arg

◆ adc_asd_init_arg

◆ adm1272_init_arg

◆ adm1278_init_arg

◆ apml_mailbox_init_arg

◆ cx7_init_arg

typedef struct _cx7_init_arg cx7_init_arg

◆ ddr5_init_power_arg

◆ ddr5_init_temp_arg

◆ g788p81u_init_arg

◆ ina230_init_arg

◆ ina233_init_arg

◆ isl28022_init_arg

◆ isl69259_init_arg

◆ ltc2991_init_arg

◆ ltc4282_init_arg

◆ ltc4286_init_arg

◆ max11617_init_arg

◆ max16550a_init_arg

◆ mp2971_init_arg

◆ mp2985_init_arg

◆ mp5990_init_arg

◆ nct7718w_init_arg

◆ nv_satmc_init_arg

◆ pex89000_init_arg

◆ pm8702_dimm_init_arg

◆ pmic_init_arg

typedef struct _pmic_init_arg pmic_init_arg

◆ pt5161l_init_arg

◆ rs31380r_init_arg

◆ rtq6056_init_arg

◆ sensor_cfg

typedef struct _sensor_cfg_ sensor_cfg

◆ sensor_drive_api

◆ sensor_monitor_table_info

◆ sensor_poll_time_cfg

◆ sensor_val

typedef struct _sensor_val sensor_val

◆ sq52205_init_arg

◆ vistara_init_arg

◆ vr_page_cfg

typedef struct _vr_page_cfg vr_page_cfg

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
SENSOR_READ_SUCCESS 
SENSOR_READ_ACUR_SUCCESS 
SENSOR_NOT_FOUND 
SENSOR_NOT_ACCESSIBLE 
SENSOR_FAIL_TO_ACCESS 
SENSOR_INIT_STATUS 
SENSOR_UNSPECIFIED_ERROR 
SENSOR_POLLING_DISABLE 
SENSOR_PRE_READ_ERROR 
SENSOR_POST_READ_ERROR 
SENSOR_READ_API_UNREGISTER 
SENSOR_READ_4BYTE_ACUR_SUCCESS 
SENSOR_NOT_PRESENT 
SENSOR_PEC_ERROR 
SENSOR_PARAMETER_NOT_VALID 
SENSOR_UNAVAILABLE 

◆ anonymous enum

anonymous enum
Enumerator
SENSOR_INIT_SUCCESS 
SENSOR_INIT_UNSPECIFIED_ERROR 

◆ ADM1278_OFFSET

Enumerator
ADM1278_PEAK_IOUT_OFFSET 
ADM1278_PEAK_PIN_OFFSET 
ADM1278_EIN_EXT_OFFSET 

◆ ADS112C_OFFSET

Enumerator
ADS112C_MUX_1_CON 
ADS112C_MUX_2_CON 
ADS112C_MUX_3_CON 
ADS112C_MUX_4_CON 

◆ CONTROL_SENSOR_POLLING_OPTION

Enumerator
DISABLE_SENSOR_POLLING 
ENABLE_SENSOR_POLLING 

◆ DIMM_RELATED_OFFSET

Enumerator
DIMM_PMIC_SWA_PWR 
DIMM_SPD_TEMP 

◆ G788P81U_OFFSET

Enumerator
G788P81U_LOCAL_TEMP_OFFSET 
G788P81U_REMOTE_TEMP_OFFSET 
G788P81U_CONFIGURATION_OFFSET 
G788P81U_REMOTE_THIGH_LIMIT_OFFSET 
G788P81U_REMOTE_TEMP_EXT_OFFSET 
G788P81U_ALERT_MASK_OFFSET 
G788P81U_REMOTE_TEMP_THERM_LIMIT_OFFSET 
G788P81U_LOCAL_TEMP_THERM_LIMIT_OFFSET 
G788P81U_ALERT_MODE_OFFSET 

◆ INA230_OFFSET

Enumerator
INA230_CFG_OFFSET 
INA230_VSH_VOL_OFFSET 
INA230_BUS_VOL_OFFSET 
INA230_PWR_OFFSET 
INA230_CUR_OFFSET 
INA230_CAL_OFFSET 
INA230_MSK_OFFSET 
INA230_ALT_OFFSET 

◆ LTC4282_OFFSET

Enumerator
LTC4282_ILIM_ADJUST_OFFSET 
LTC4282_VSENSE_OFFSET 
LTC4282_POWER_OFFSET 
LTC4282_VSOURCE_OFFSET 
LTC4282_ADC_CONTROL_OFFSET 
LTC4282_ENERGY_OFFSET 
LTC4282_STATUS_OFFSET_BYTE1 
LTC4282_STATUS_OFFSET_BYTE2 

◆ NCT7718W_OFFSET

Enumerator
NCT7718W_LOCAL_TEMP_OFFSET 
NCT7718W_REMOTE_TEMP_MSB_OFFSET 
NCT7718W_CONFIGURATION_OFFSET 
NCT7718W_RT1_HIGH_ALERT_TEMP_OFFSET 
NCT7718W_REMOTE_TEMP_LSB_OFFSET 
NCT7718W_ALERT_MASK_OFFSET 
NCT7718W_RT1_CRITICAL_TEMP_OFFSET 
NCT7718W_LT_CRITICAL_TEMP_OFFSET 
NCT7718W_RT_FILTER_ALERT_MODE_OFFSET 
NCT7718W_CHIP_ID_OFFSET 
NCT7718W_VENDOR_ID_OFFSET 

◆ SENSOR_DEV

enum SENSOR_DEV
Enumerator
sensor_dev_tmp75 
sensor_dev_ast_adc 
sensor_dev_intel_peci 
sensor_dev_isl69259 
sensor_dev_adm1278 
sensor_dev_nvme 
sensor_dev_pch 
sensor_dev_mp5990 
sensor_dev_isl28022 
sensor_dev_pex89000 
sensor_dev_tps53689 
sensor_dev_xdpe15284 
sensor_dev_ltc4282 
sensor_dev_ast_fan 
sensor_dev_tmp431 
sensor_dev_pmic 
sensor_dev_ina233 
sensor_dev_isl69254iraz_t 
sensor_dev_max16550a 
sensor_dev_ina230 
sensor_dev_xdpe12284c 
sensor_dev_raa229621 
sensor_dev_nct7718w 
sensor_dev_ltc4286 
sensor_dev_amd_tsi 
sensor_dev_apml_mailbox 
sensor_dev_xdpe19283b 
sensor_dev_g788p81u 
sensor_dev_mp2856gut 
sensor_dev_ddr5_power 
sensor_dev_ddr5_temp 
sensor_dev_adm1272 
sensor_dev_q50sn120a1 
sensor_dev_mp2971 
sensor_dev_pm8702 
sensor_dev_ltc2991 
sensor_dev_sq52205 
sensor_dev_emc1412 
sensor_dev_i3c_dimm 
sensor_dev_pt5161l 
sensor_dev_lm75bd118 
sensor_dev_tmp461 
sensor_dev_mp2985 
sensor_dev_m88rt51632 
sensor_dev_mpro 
sensor_dev_bmr351 
sensor_dev_cx7 
sensor_dev_vistara 
sensor_dev_max11617 
sensor_dev_nv_satmc 
sensor_dev_nct7363 
sensor_dev_ads112c 
sensor_dev_hdc1080 
sensor_dev_ina238 
sensor_dev_nct214 
sensor_dev_ast_tach 
sensor_dev_xdp710 
sensor_dev_ds160pt801 
sensor_dev_rs31380r 
sensor_dev_adc128d818 
sensor_dev_ads1015 
sensor_dev_plat_def_sensor 
sensor_dev_e50sn12051 
sensor_dev_u50su4p180pmdafc 
sensor_dev_bmr313 
sensor_dev_mp2891 
sensor_dev_raa228238 
sensor_dev_mpc12109 
sensor_dev_rtq6056 
sensor_dev_mp29816a 
sensor_dev_raa228249 
sensor_dev_bmr4922302_803 
sensor_dev_emc1413 
sensor_dev_max 

Function Documentation

◆ add_sensor_config()

void add_sensor_config ( sensor_cfg  config)
Here is the call graph for this function:

◆ check_is_sensor_ready()

bool check_is_sensor_ready ( )

◆ check_reading_pointer_null_is_allowed()

bool check_reading_pointer_null_is_allowed ( sensor_cfg cfg)

◆ check_sensor_num_exist()

bool check_sensor_num_exist ( uint8_t  sensor_num)

◆ clear_unaccessible_sensor_cache()

void clear_unaccessible_sensor_cache ( sensor_cfg cfg)

◆ common_tbl_sen_reinit()

uint8_t common_tbl_sen_reinit ( uint8_t  sen_num)
Here is the call graph for this function:

◆ control_sensor_polling()

void control_sensor_polling ( uint8_t  sensor_num,
uint8_t  optional,
uint8_t  cache_status 
)

◆ dc_access()

bool dc_access ( uint8_t  sensor_num)
Here is the call graph for this function:

◆ disable_sensor_poll()

void disable_sensor_poll ( )

◆ e1s_pwrgd_access()

bool e1s_pwrgd_access ( uint8_t  sensor_num)
Here is the call graph for this function:

◆ enable_sensor_poll()

void enable_sensor_poll ( )

◆ find_sensor_cfg_via_sensor_num()

sensor_cfg * find_sensor_cfg_via_sensor_num ( sensor_cfg cfg_table,
uint8_t  cfg_count,
uint8_t  sensor_num 
)

◆ get_common_sensor_cfg_info()

sensor_cfg * get_common_sensor_cfg_info ( uint8_t  sensor_num)

◆ get_sensor_init_done_flag()

bool get_sensor_init_done_flag ( )

◆ get_sensor_poll_enable_flag()

bool get_sensor_poll_enable_flag ( )

◆ get_sensor_reading()

uint8_t get_sensor_reading ( sensor_cfg cfg_table,
uint8_t  cfg_count,
uint8_t  sensor_num,
int *  reading,
uint8_t  read_mode 
)
Here is the call graph for this function:

◆ init_drive_type_delayed()

bool init_drive_type_delayed ( sensor_cfg cfg)

◆ load_sensor_config()

void load_sensor_config ( void  )

◆ me_access()

bool me_access ( uint8_t  sensor_num)
Here is the call graph for this function:

◆ pal_extend_sensor_config()

void pal_extend_sensor_config ( void  )

EVT2 switch board has two configurations that will cause the need to load different sensor table.

1st : ISL69259(VR) + MPS5990(HSC) + ISL28022(Power monitor IC) 2nd : XDPE12284(VR) + LTC4282(HSC) + INA230(Power monitor IC)

Since the BOARD_ID pins were originally used to identify which configuration has no function in this stage, so the current configuration is identified by IC_DEVICE_ID which gets from the VR chip.

The way to identify different configurations by BOARD_ID will be added back in the next stage.

◆ pal_get_monitor_sensor_count()

uint8_t pal_get_monitor_sensor_count ( )

◆ pal_is_time_to_poll()

bool pal_is_time_to_poll ( uint8_t  sensor_num,
int  poll_time 
)

◆ pal_set_sensor_poll_interval()

void pal_set_sensor_poll_interval ( int *  interval_ms)

◆ plat_fill_monitor_sensor_table()

void plat_fill_monitor_sensor_table ( )

◆ plat_get_config_size()

uint8_t plat_get_config_size ( )

◆ plat_sensor_poll_post()

void plat_sensor_poll_post ( )
Here is the call graph for this function:

◆ post_access()

bool post_access ( uint8_t  sensor_num)
Here is the call graph for this function:

◆ sensor_init()

bool sensor_init ( void  )

◆ stby_access()

bool stby_access ( uint8_t  sensor_num)

◆ vr_access()

bool vr_access ( uint8_t  sensor_num)
Here is the call graph for this function:

◆ vr_stby_access()

bool vr_stby_access ( uint8_t  sensor_num)
Here is the call graph for this function:

Variable Documentation

◆ enable_sensor_poll_thread

bool enable_sensor_poll_thread
extern

◆ sensor_config

sensor_cfg* sensor_config
extern

◆ sensor_config_count

uint8_t sensor_config_count
extern

◆ sensor_config_index_map

uint8_t sensor_config_index_map[SENSOR_NUM_MAX]
extern

◆ sensor_drive_tbl

sensor_drive_api sensor_drive_tbl[]
extern

◆ sensor_monitor_count

uint16_t sensor_monitor_count
extern

◆ sensor_monitor_table

sensor_monitor_table_info* sensor_monitor_table
extern

◆ sensor_type_name

const char* const sensor_type_name[]
extern