24#define PLDM_SENSOR_POLL_STACK_SIZE 3056
26#define PLDM_SENSOR_POLL_TIME_DEFAULT_MS 1000
52 int pldm_sensor_count,
int thread_id,
int sensor_num);
59 uint8_t *
type,
int *cache, uint8_t *cache_status,
char *check_access);
float real32_t
Definition: pdr.h:13
PDR_numeric_sensor
Definition: pdr.h:111
uint8_t type
Definition: pldm_base.h:0
uint32_t offset
Definition: pldm_firmware_update.h:0
uint8_t sensor_operational_state
Definition: pldm_monitor.h:2
uint8_t reading[1]
Definition: pldm_monitor.h:3
uint16_t sensor_id
Definition: pldm_monitor.h:0
uint8_t update_time[TIMESTAMP104_SIZE]
Definition: pldm_monitor.h:2
struct pldm_sensor_info pldm_sensor_info
pldm_sensor_info * plat_pldm_sensor_load(int thread_id)
Definition: plat_pldm_sensor.c:9053
int pldm_sensor_get_info_via_sensor_thread_and_sensor_pdr_index(int thread_id, int sensor_pdr_index, uint16_t *sensor_id, real32_t *resolution, real32_t *offset, int8_t *unit_modifier, real32_t *poll_time, uint32_t *update_time, uint8_t *type, int *cache, uint8_t *cache_status, char *check_access)
void pldm_sensor_monitor_init()
uint8_t pldm_sensor_get_reading_from_cache(uint16_t sensor_id, int *reading, uint8_t *sensor_operational_state)
int plat_pldm_sensor_get_sensor_count(int thread_id)
Definition: plat_pldm_sensor.c:9074
void pldm_sensor_get_reading(sensor_cfg *pldm_sensor_cfg, uint32_t *update_time, int pldm_sensor_count, int thread_id, int sensor_num)
int pldm_polling_sensor_reading(pldm_sensor_info *pldm_snr_list, int pldm_sensor_count, int thread_id, int sensor_num)
@ UP_THRESHOLD_CRIT
Definition: pldm_sensor.h:30
@ UP_THRESHOLD_WARN
Definition: pldm_sensor.h:29
@ LOW_THRESHOLD_WARN
Definition: pldm_sensor.h:32
@ LOW_THRESHOLD_FATAL
Definition: pldm_sensor.h:34
@ UP_THRESHOLD_FATAL
Definition: pldm_sensor.h:31
@ LOW_THRESHOLD_CRIT
Definition: pldm_sensor.h:33
struct pldm_sensor_thread pldm_sensor_thread
void pldm_sensor_poll_thread_init()
pldm_sensor_thread * plat_pldm_sensor_load_thread()
Definition: plat_pldm_sensor.c:9048
void pldm_sensor_polling_handler(void *arug0, void *arug1, void *arug2)
bool pldm_sensor_is_interval_ready(pldm_sensor_info *pldm_sensor_list)
int pldm_sensor_polling_pre_check(pldm_sensor_info *pldm_snr_list, int sensor_num)
uint8_t sensor_num
Definition: storage_handler.h:6
Definition: pldm_sensor.h:37
PDR_numeric_sensor pdr_numeric_sensor
Definition: pldm_sensor.h:38
sensor_cfg pldm_sensor_cfg
Definition: pldm_sensor.h:40
uint32_t update_time
Definition: pldm_sensor.h:39
Definition: pldm_sensor.h:43
char * thread_name
Definition: pldm_sensor.h:45
int thread_id
Definition: pldm_sensor.h:44