OpenBIC
OpenSource Bridge-IC
|
#include "plat_sensor_table.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <logging/log.h>
#include "libutil.h"
#include "ast_adc.h"
#include "sensor.h"
#include "hal_gpio.h"
#include "plat_i2c.h"
#include "plat_gpio.h"
#include "plat_hook.h"
#include "plat_class.h"
#include "pmbus.h"
#include "sq52205.h"
#include "power_status.h"
#include "emc1412.h"
#include "ltc2991.h"
#include "i2c-mux-pca984x.h"
#include "plat_ipmi.h"
#include "plat_dev.h"
#include "cci.h"
#include "plat_mctp.h"
Macros | |
#define | E1S_13_14_MUX_BUS I2C_BUS4 |
#define | E1S_0_SENSOR_CFG_INDEX 0 |
#define | E1S_1_SENSOR_CFG_INDEX 1 |
#define | CARD_13_E1S_0_MUX_CFG_INDEX 4 |
#define | CARD_13_E1S_1_MUX_CFG_INDEX 5 |
#define | CARD_14_E1S_0_MUX_CFG_INDEX 6 |
#define | CARD_14_E1S_1_MUX_CFG_INDEX 7 |
#define | PCIE_CARD_INIT_CFG_OFFSET_0 0 |
#define | PCIE_CARD_INIT_CFG_OFFSET_1 1 |
#define | DELAYED_INIT_SENSOR_RETRY_MAX 5 |
#define | COMMON_SENSOR_MONITOR_INDEX 0 |
Functions | |
LOG_MODULE_REGISTER (plat_sensor_table) | |
void | pal_extend_sensor_config () |
void | load_sensor_config (void) |
uint8_t | pal_get_extend_sensor_config () |
uint8_t | pal_get_monitor_sensor_count () |
void | plat_fill_monitor_sensor_table () |
sensor_cfg * | get_common_sensor_cfg_info (uint8_t sensor_num) |
sensor_cfg * | get_cxl_sensor_cfg_info (uint8_t cxl_id, uint8_t *cfg_count) |
bool | is_dc_access (uint8_t sensor_num) |
bool | is_e1s_access (uint8_t sensor_num) |
bool | is_cxl_access (uint8_t cxl_id) |
struct k_mutex * | get_i2c_mux_mutex (uint8_t i2c_bus) |
bool | get_pcie_card_mux_config (uint8_t cxl_id, uint8_t sensor_num, mux_config *card_mux_cfg, mux_config *cxl_mux_cfg) |
bool | is_time_to_poll_card_sensor (uint8_t pcie_card_id) |
#define CARD_13_E1S_0_MUX_CFG_INDEX 4 |
#define CARD_13_E1S_1_MUX_CFG_INDEX 5 |
#define CARD_14_E1S_0_MUX_CFG_INDEX 6 |
#define CARD_14_E1S_1_MUX_CFG_INDEX 7 |
#define COMMON_SENSOR_MONITOR_INDEX 0 |
#define DELAYED_INIT_SENSOR_RETRY_MAX 5 |
#define E1S_0_SENSOR_CFG_INDEX 0 |
#define E1S_13_14_MUX_BUS I2C_BUS4 |
#define E1S_1_SENSOR_CFG_INDEX 1 |
#define PCIE_CARD_INIT_CFG_OFFSET_0 0 |
#define PCIE_CARD_INIT_CFG_OFFSET_1 1 |
sensor_cfg * get_common_sensor_cfg_info | ( | uint8_t | sensor_num | ) |
sensor_cfg * get_cxl_sensor_cfg_info | ( | uint8_t | cxl_id, |
uint8_t * | cfg_count | ||
) |
struct k_mutex * get_i2c_mux_mutex | ( | uint8_t | i2c_bus | ) |
bool get_pcie_card_mux_config | ( | uint8_t | cxl_id, |
uint8_t | sensor_num, | ||
mux_config * | card_mux_cfg, | ||
mux_config * | cxl_mux_cfg | ||
) |
bool is_cxl_access | ( | uint8_t | cxl_id | ) |
bool is_dc_access | ( | uint8_t | sensor_num | ) |
bool is_e1s_access | ( | uint8_t | sensor_num | ) |
bool is_time_to_poll_card_sensor | ( | uint8_t | pcie_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 | ) |
uint8_t pal_get_monitor_sensor_count | ( | ) |
void plat_fill_monitor_sensor_table | ( | ) |
const int CXL_SENSOR_CONFIG_SIZE = ARRAY_SIZE(plat_cxl1_sensor_config) |
sensor_cfg evt2_extend_sensor_config[] |
const int EVT2_EXTEND_SENSOR_CONFIG_SIZE = ARRAY_SIZE(evt2_extend_sensor_config) |
const int HSC_SENSOR_CONFIG_SIZE = ARRAY_SIZE(plat_hsc_mp5990_sensor_config) |
struct k_mutex i2c_2_pca9548a_mutex |
struct k_mutex i2c_3_pca9546a_mutex |
struct k_mutex i2c_4_pca9548a_mutex |
struct k_mutex i2c_8_pca9548a_mutex |
const int MC_INA233_SENSOR_CONFIG_SIZE = ARRAY_SIZE(plat_mc_ina233_sensor_config) |
const int MC_SQ52205_SENSOR_CONFIG_SIZE = ARRAY_SIZE(plat_mc_sq52205_sensor_config) |
bool pcie_card_init_status[] |
sensor_cfg plat_cxl1_sensor_config[] |
sensor_cfg plat_cxl2_sensor_config[] |
sensor_cfg plat_cxl3_sensor_config[] |
sensor_cfg plat_cxl4_sensor_config[] |
sensor_cfg plat_cxl5_sensor_config[] |
sensor_cfg plat_cxl6_sensor_config[] |
sensor_cfg plat_cxl7_sensor_config[] |
sensor_cfg plat_cxl8_sensor_config[] |
sensor_cfg plat_hsc_mp5990_sensor_config[] |
sensor_cfg plat_mc_ina233_sensor_config[] |
sensor_cfg plat_mc_sq52205_sensor_config[] |
sensor_monitor_table_info plat_monitor_table[] |
sensor_cfg plat_sensor_config[] |
const int SENSOR_CONFIG_SIZE = ARRAY_SIZE(plat_sensor_config) |
sensor_poll_delay_cfg sensor_poll_delay_cfgs[] |