OpenBIC
OpenSource Bridge-IC
|
#include "plat_sensor_table.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <logging/log.h>
#include "pmbus.h"
#include "ast_adc.h"
#include "sensor.h"
#include "hal_gpio.h"
#include "plat_i2c.h"
#include "pex89000.h"
#include "plat_gpio.h"
#include "plat_hook.h"
#include "plat_class.h"
#include "plat_dev.h"
#include "sq52205.h"
#include "nvme.h"
#include "plat_pldm_monitor.h"
Macros | |
#define | COMMON_SENSOR_MONITOR_INDEX 0 |
Functions | |
LOG_MODULE_REGISTER (plat_sensor_table) | |
void | load_sensor_config (void) |
uint8_t | pal_get_extend_sensor_config () |
void | pal_extend_sensor_config () |
void | update_plat_sensor_cfg_by_stage () |
sensor_cfg * | get_common_sensor_cfg_info (uint8_t sensor_num) |
sensor_cfg * | get_accl_sensor_cfg_info (uint8_t card_id, uint8_t *cfg_count) |
bool | is_acb_power_good () |
bool | get_accl_power_status (uint8_t card_id, uint8_t option) |
bool | is_accl_power_good (uint8_t card_id) |
bool | is_accl_cable_power_good (uint8_t card_id) |
bool | is_accl_cable_power_good_timeout (uint8_t card_id) |
bool | is_accl_cable_power_good_fault (uint8_t card_id) |
bool | is_dc_access (uint8_t sensor_num) |
struct k_mutex * | get_i2c_mux_mutex (uint8_t i2c_bus) |
int | get_accl_bus (uint8_t card_id, uint8_t sensor_number) |
sensor_cfg * | get_accl_sensor_config (uint8_t card_id, uint8_t sensor_num) |
bool | get_accl_mux_config (uint8_t card_id, mux_config *accl_mux) |
bool | is_time_to_poll_card_sensor (uint8_t card_id) |
#define COMMON_SENSOR_MONITOR_INDEX 0 |
int get_accl_bus | ( | uint8_t | card_id, |
uint8_t | sensor_number | ||
) |
bool get_accl_mux_config | ( | uint8_t | card_id, |
mux_config * | accl_mux | ||
) |
bool get_accl_power_status | ( | uint8_t | card_id, |
uint8_t | option | ||
) |
sensor_cfg * get_accl_sensor_cfg_info | ( | uint8_t | card_id, |
uint8_t * | cfg_count | ||
) |
sensor_cfg * get_accl_sensor_config | ( | uint8_t | card_id, |
uint8_t | sensor_num | ||
) |
sensor_cfg * get_common_sensor_cfg_info | ( | uint8_t | sensor_num | ) |
struct k_mutex * get_i2c_mux_mutex | ( | uint8_t | i2c_bus | ) |
bool is_acb_power_good | ( | ) |
bool is_accl_cable_power_good | ( | uint8_t | card_id | ) |
bool is_accl_cable_power_good_fault | ( | uint8_t | card_id | ) |
bool is_accl_cable_power_good_timeout | ( | uint8_t | card_id | ) |
bool is_accl_power_good | ( | uint8_t | card_id | ) |
bool is_dc_access | ( | uint8_t | sensor_num | ) |
bool is_time_to_poll_card_sensor | ( | uint8_t | card_id | ) |
void load_sensor_config | ( | void | ) |
LOG_MODULE_REGISTER | ( | plat_sensor_table | ) |
void pal_extend_sensor_config | ( | void | ) |
uint8_t pal_get_extend_sensor_config | ( | void | ) |
void update_plat_sensor_cfg_by_stage | ( | ) |
sensor_cfg adm1272_sensor_config_table[] |
sensor_cfg bmr351_sensor_config_table[] |
struct k_mutex i2c_4_pi4msd5v9542_mutex |
struct k_mutex i2c_7_accl_mutex |
struct k_mutex i2c_8_accl_mutex |
sensor_cfg ltc4286_sensor_config_table[] |
sensor_cfg plat_sensor_config[] |
sensor_cfg power_monitor_ina233_sq52205_sensor_config_table[] |
sensor_cfg power_monitor_sq52205_ina230_sensor_config_table[] |
sensor_compatible_cfg pre_dvt_update_cfg_table[] |
sensor_cfg q50sn120a1_sensor_config_table[] |
const int SENSOR_CONFIG_SIZE = ARRAY_SIZE(plat_sensor_config) |
sensor_poll_delay_cfg sensor_poll_delay_cfgs[] |
sensor_cfg vr_mp2985h_sensor_config_table[] |
sensor_cfg vr_xdpe15284_sensor_config_table[] |