OpenBIC
OpenSource Bridge-IC
|
Go to the source code of this file.
Classes | |
struct | _sensor_compatible_cfg |
struct | _sensor_poll_delay_cfg |
Typedefs | |
typedef struct _sensor_compatible_cfg | sensor_compatible_cfg |
typedef struct _sensor_poll_delay_cfg | sensor_poll_delay_cfg |
Enumerations | |
enum | ACCL_POWER_REGISTER_OPTION { ACCL_CARD_12V_POWER_GOOD , ACCL_CARD_3V3_POWER_GOOD , ACCL_CABLE_POWER_GOOD , ACCL_CABLE_POWER_GOOD_TIMEOUT , ACCL_CABLE_POWER_GOOD_FAULT } |
Functions | |
void | load_sensor_config (void) |
bool | is_acb_power_good () |
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) |
sensor_cfg * | get_accl_sensor_cfg_info (uint8_t card_id, uint8_t *cfg_count) |
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) |
sensor_cfg * | get_common_sensor_cfg_info (uint8_t sensor_num) |
void | update_plat_sensor_cfg_by_stage () |
sensor_cfg * | get_artemis_module_sensor_cfg (uint8_t card_id) |
bool | is_time_to_poll_card_sensor (uint8_t card_id) |
bool | get_accl_power_status (uint8_t card_id, uint8_t option) |
#define ACCL_ARTEMIS_MODULE_1_ADDR (0xD4 >> 1) |
#define ACCL_ARTEMIS_MODULE_2_ADDR (0xD8 >> 1) |
#define ACCL_ARTEMIS_MODULE_SENSOR_COUNT 8 |
#define ACCL_FREYA_1_ADDR (0xD6 >> 1) |
ACCL sensor config
#define ACCL_FREYA_2_ADDR (0xD0 >> 1) |
#define ACCL_FREYA_SENSOR_COUNT 6 |
#define ACCL_POWER_GOOD_TIME_DEFAULT 0 |
#define ACCL_SENSOR_POLL_DELAY_MS 10000 |
#define ADM1272_1_ADDR 0x10 |
#define ADM1272_2_ADDR 0x13 |
#define FIO_THERMAL_ADDR 0x48 |
#define INA233_12V_12_ADDR 0x40 |
#define INA233_12V_1_7_ADDR 0x45 |
#define INA233_12V_2_8_ADDR 0x44 |
#define INA233_12V_3_9_ADDR 0x43 |
#define INA233_12V_4_10_ADDR 0x42 |
#define INA233_12V_5_11_ADDR 0x41 |
#define INA233_12V_6_ADDR 0x46 |
#define LM75BD118_TEMP_OFFSET 0x00 |
#define LTC4286_1_ADDR 0x40 |
#define LTC4286_2_ADDR 0x41 |
#define P1V8_PEX_ADC_CHANNEL 4 |
#define P1V8_PEX_LOW_THRESHOLD 1.674 |
#define PEX89144_0_MUX_ADDR 0x70 |
#define PEX89144_1_MUX_ADDR 0x71 |
#define PEX89144_I2C0_ADDR 0x61 |
#define PEX89144_I2CS_ADDR 0x59 |
#define PEX_MAX_NUMBER 2 |
#define POWER_BRICK_1_ADDR 0x60 |
#define POWER_BRICK_2_ADDR 0x61 |
#define SENSOR_NUM_CUR_P0V8_VDD_1 0x59 |
#define SENSOR_NUM_CUR_P0V8_VDD_2 0x5A |
#define SENSOR_NUM_CUR_P12V_1_M_AUX 0x63 |
#define SENSOR_NUM_CUR_P12V_2_M_AUX 0x64 |
#define SENSOR_NUM_CUR_P12V_ACCL_1 0x34 |
#define SENSOR_NUM_CUR_P12V_ACCL_10 0x3E |
#define SENSOR_NUM_CUR_P12V_ACCL_11 0x3F |
#define SENSOR_NUM_CUR_P12V_ACCL_12 0x40 |
#define SENSOR_NUM_CUR_P12V_ACCL_2 0x35 |
#define SENSOR_NUM_CUR_P12V_ACCL_3 0x36 |
#define SENSOR_NUM_CUR_P12V_ACCL_4 0x37 |
#define SENSOR_NUM_CUR_P12V_ACCL_5 0x38 |
#define SENSOR_NUM_CUR_P12V_ACCL_6 0x39 |
#define SENSOR_NUM_CUR_P12V_ACCL_7 0x3A |
#define SENSOR_NUM_CUR_P12V_ACCL_8 0x3C |
#define SENSOR_NUM_CUR_P12V_ACCL_9 0x3D |
#define SENSOR_NUM_CUR_P12V_AUX_1 0x32 |
#define SENSOR_NUM_CUR_P12V_AUX_2 0x33 |
#define SENSOR_NUM_CUR_P51V_AUX_L 0x30 |
#define SENSOR_NUM_CUR_P51V_AUX_R 0x31 |
#define SENSOR_NUM_CUR_P51V_STBY_L 0x5D |
#define SENSOR_NUM_CUR_P51V_STBY_R 0x5E |
#define SENSOR_NUM_PWR_P0V8_VDD_1 0x5B |
#define SENSOR_NUM_PWR_P0V8_VDD_2 0x5C |
#define SENSOR_NUM_PWR_P12V_1_M_AUX 0x65 |
#define SENSOR_NUM_PWR_P12V_2_M_AUX 0x66 |
#define SENSOR_NUM_PWR_P12V_ACCL_1 0x45 |
#define SENSOR_NUM_PWR_P12V_ACCL_10 0x50 |
#define SENSOR_NUM_PWR_P12V_ACCL_11 0x51 |
#define SENSOR_NUM_PWR_P12V_ACCL_12 0x52 |
#define SENSOR_NUM_PWR_P12V_ACCL_2 0x46 |
#define SENSOR_NUM_PWR_P12V_ACCL_3 0x47 |
#define SENSOR_NUM_PWR_P12V_ACCL_4 0x48 |
#define SENSOR_NUM_PWR_P12V_ACCL_5 0x49 |
#define SENSOR_NUM_PWR_P12V_ACCL_6 0x4A |
#define SENSOR_NUM_PWR_P12V_ACCL_7 0x4B |
#define SENSOR_NUM_PWR_P12V_ACCL_8 0x4C |
#define SENSOR_NUM_PWR_P12V_ACCL_9 0x4D |
#define SENSOR_NUM_PWR_P12V_AUX_1 0x43 |
#define SENSOR_NUM_PWR_P12V_AUX_2 0x44 |
#define SENSOR_NUM_PWR_P51V_AUX_L 0x41 |
#define SENSOR_NUM_PWR_P51V_AUX_R 0x42 |
#define SENSOR_NUM_PWR_P51V_STBY_L 0x55 |
#define SENSOR_NUM_PWR_P51V_STBY_R 0x56 |
#define SENSOR_NUM_TEMP_ACCL_10_FREYA_1 0xA6 |
ACCL card 10 sensor number
#define SENSOR_NUM_TEMP_ACCL_10_FREYA_2 0xA9 |
#define SENSOR_NUM_TEMP_ACCL_11_FREYA_1 0xAC |
ACCL card 11 sensor number
#define SENSOR_NUM_TEMP_ACCL_11_FREYA_2 0xAF |
#define SENSOR_NUM_TEMP_ACCL_12_FREYA_1 0xB2 |
ACCL card 12 sensor number
#define SENSOR_NUM_TEMP_ACCL_12_FREYA_2 0xB5 |
#define SENSOR_NUM_TEMP_ACCL_1_FREYA_1 0x70 |
ACCL card 1 sensor number
#define SENSOR_NUM_TEMP_ACCL_1_FREYA_2 0x73 |
#define SENSOR_NUM_TEMP_ACCL_2_FREYA_1 0x76 |
ACCL card 2 sensor number
#define SENSOR_NUM_TEMP_ACCL_2_FREYA_2 0x79 |
#define SENSOR_NUM_TEMP_ACCL_3_FREYA_1 0x7C |
ACCL card 3 sensor number
#define SENSOR_NUM_TEMP_ACCL_3_FREYA_2 0x7F |
#define SENSOR_NUM_TEMP_ACCL_4_FREYA_1 0x82 |
ACCL card 4 sensor number
#define SENSOR_NUM_TEMP_ACCL_4_FREYA_2 0x85 |
#define SENSOR_NUM_TEMP_ACCL_5_FREYA_1 0x88 |
ACCL card 5 sensor number
#define SENSOR_NUM_TEMP_ACCL_5_FREYA_2 0x8B |
#define SENSOR_NUM_TEMP_ACCL_6_FREYA_1 0x8E |
ACCL card 6 sensor number
#define SENSOR_NUM_TEMP_ACCL_6_FREYA_2 0x91 |
#define SENSOR_NUM_TEMP_ACCL_7_FREYA_1 0x94 |
ACCL card 7 sensor number
#define SENSOR_NUM_TEMP_ACCL_7_FREYA_2 0x97 |
#define SENSOR_NUM_TEMP_ACCL_8_FREYA_1 0x9A |
ACCL card 8 sensor number
#define SENSOR_NUM_TEMP_ACCL_8_FREYA_2 0x9D |
#define SENSOR_NUM_TEMP_ACCL_9_FREYA_1 0xA0 |
ACCL card 9 sensor number
#define SENSOR_NUM_TEMP_ACCL_9_FREYA_2 0xA3 |
#define SENSOR_NUM_TEMP_FIO_INLET 0x67 |
#define SENSOR_NUM_TEMP_HSC_1 0x03 |
#define SENSOR_NUM_TEMP_HSC_2 0x04 |
#define SENSOR_NUM_TEMP_OUTLET_1 0x01 |
#define SENSOR_NUM_TEMP_OUTLET_2 0x02 |
#define SENSOR_NUM_TEMP_P0V8_VDD_1 0x5F |
#define SENSOR_NUM_TEMP_P0V8_VDD_2 0x60 |
#define SENSOR_NUM_TEMP_PEX_0 0x05 |
#define SENSOR_NUM_TEMP_PEX_1 0x06 |
#define SENSOR_NUM_TEMP_POWER_BRICK_1 0x09 |
#define SENSOR_NUM_TEMP_POWER_BRICK_2 0x0A |
#define SENSOR_NUM_TEMP_XDPE15284 0x07 |
#define SENSOR_NUM_VOL_ACCL_10_ASIC_1_P12V_AUX 0xCA |
#define SENSOR_NUM_VOL_ACCL_10_ASIC_2_P12V_AUX 0xCB |
#define SENSOR_NUM_VOL_ACCL_10_FREYA_1_1 0xA7 |
#define SENSOR_NUM_VOL_ACCL_10_FREYA_1_2 0xA8 |
#define SENSOR_NUM_VOL_ACCL_10_FREYA_2_1 0xAA |
#define SENSOR_NUM_VOL_ACCL_10_FREYA_2_2 0xAB |
#define SENSOR_NUM_VOL_ACCL_11_ASIC_1_P12V_AUX 0xCC |
#define SENSOR_NUM_VOL_ACCL_11_ASIC_2_P12V_AUX 0xCD |
#define SENSOR_NUM_VOL_ACCL_11_FREYA_1_1 0xAD |
#define SENSOR_NUM_VOL_ACCL_11_FREYA_1_2 0xAE |
#define SENSOR_NUM_VOL_ACCL_11_FREYA_2_1 0xB0 |
#define SENSOR_NUM_VOL_ACCL_11_FREYA_2_2 0xB1 |
#define SENSOR_NUM_VOL_ACCL_12_ASIC_1_P12V_AUX 0xCE |
#define SENSOR_NUM_VOL_ACCL_12_ASIC_2_P12V_AUX 0xCF |
#define SENSOR_NUM_VOL_ACCL_12_FREYA_1_1 0xB3 |
#define SENSOR_NUM_VOL_ACCL_12_FREYA_1_2 0xB4 |
#define SENSOR_NUM_VOL_ACCL_12_FREYA_2_1 0xB6 |
#define SENSOR_NUM_VOL_ACCL_12_FREYA_2_2 0xB7 |
#define SENSOR_NUM_VOL_ACCL_1_ASIC_1_P12V_AUX 0xB8 |
#define SENSOR_NUM_VOL_ACCL_1_ASIC_2_P12V_AUX 0xB9 |
#define SENSOR_NUM_VOL_ACCL_1_FREYA_1_1 0x71 |
#define SENSOR_NUM_VOL_ACCL_1_FREYA_1_2 0x72 |
#define SENSOR_NUM_VOL_ACCL_1_FREYA_2_1 0x74 |
#define SENSOR_NUM_VOL_ACCL_1_FREYA_2_2 0x75 |
#define SENSOR_NUM_VOL_ACCL_2_ASIC_1_P12V_AUX 0xBA |
#define SENSOR_NUM_VOL_ACCL_2_ASIC_2_P12V_AUX 0xBB |
#define SENSOR_NUM_VOL_ACCL_2_FREYA_1_1 0x77 |
#define SENSOR_NUM_VOL_ACCL_2_FREYA_1_2 0x78 |
#define SENSOR_NUM_VOL_ACCL_2_FREYA_2_1 0x7A |
#define SENSOR_NUM_VOL_ACCL_2_FREYA_2_2 0x7B |
#define SENSOR_NUM_VOL_ACCL_3_ASIC_1_P12V_AUX 0xBC |
#define SENSOR_NUM_VOL_ACCL_3_ASIC_2_P12V_AUX 0xBD |
#define SENSOR_NUM_VOL_ACCL_3_FREYA_1_1 0x7D |
#define SENSOR_NUM_VOL_ACCL_3_FREYA_1_2 0x7E |
#define SENSOR_NUM_VOL_ACCL_3_FREYA_2_1 0x80 |
#define SENSOR_NUM_VOL_ACCL_3_FREYA_2_2 0x81 |
#define SENSOR_NUM_VOL_ACCL_4_ASIC_1_P12V_AUX 0xBE |
#define SENSOR_NUM_VOL_ACCL_4_ASIC_2_P12V_AUX 0xBF |
#define SENSOR_NUM_VOL_ACCL_4_FREYA_1_1 0x83 |
#define SENSOR_NUM_VOL_ACCL_4_FREYA_1_2 0x84 |
#define SENSOR_NUM_VOL_ACCL_4_FREYA_2_1 0x86 |
#define SENSOR_NUM_VOL_ACCL_4_FREYA_2_2 0x87 |
#define SENSOR_NUM_VOL_ACCL_5_ASIC_1_P12V_AUX 0xC0 |
#define SENSOR_NUM_VOL_ACCL_5_ASIC_2_P12V_AUX 0xC1 |
#define SENSOR_NUM_VOL_ACCL_5_FREYA_1_1 0x89 |
#define SENSOR_NUM_VOL_ACCL_5_FREYA_1_2 0x8A |
#define SENSOR_NUM_VOL_ACCL_5_FREYA_2_1 0x8C |
#define SENSOR_NUM_VOL_ACCL_5_FREYA_2_2 0x8D |
#define SENSOR_NUM_VOL_ACCL_6_ASIC_1_P12V_AUX 0xC2 |
#define SENSOR_NUM_VOL_ACCL_6_ASIC_2_P12V_AUX 0xC3 |
#define SENSOR_NUM_VOL_ACCL_6_FREYA_1_1 0x8F |
#define SENSOR_NUM_VOL_ACCL_6_FREYA_1_2 0x90 |
#define SENSOR_NUM_VOL_ACCL_6_FREYA_2_1 0x92 |
#define SENSOR_NUM_VOL_ACCL_6_FREYA_2_2 0x93 |
#define SENSOR_NUM_VOL_ACCL_7_ASIC_1_P12V_AUX 0xC4 |
#define SENSOR_NUM_VOL_ACCL_7_ASIC_2_P12V_AUX 0xC5 |
#define SENSOR_NUM_VOL_ACCL_7_FREYA_1_1 0x95 |
#define SENSOR_NUM_VOL_ACCL_7_FREYA_1_2 0x96 |
#define SENSOR_NUM_VOL_ACCL_7_FREYA_2_1 0x98 |
#define SENSOR_NUM_VOL_ACCL_7_FREYA_2_2 0x99 |
#define SENSOR_NUM_VOL_ACCL_8_ASIC_1_P12V_AUX 0xC6 |
#define SENSOR_NUM_VOL_ACCL_8_ASIC_2_P12V_AUX 0xC7 |
#define SENSOR_NUM_VOL_ACCL_8_FREYA_1_1 0x9B |
#define SENSOR_NUM_VOL_ACCL_8_FREYA_1_2 0x9C |
#define SENSOR_NUM_VOL_ACCL_8_FREYA_2_1 0x9E |
#define SENSOR_NUM_VOL_ACCL_8_FREYA_2_2 0x9F |
#define SENSOR_NUM_VOL_ACCL_9_ASIC_1_P12V_AUX 0xC8 |
#define SENSOR_NUM_VOL_ACCL_9_ASIC_2_P12V_AUX 0xC9 |
#define SENSOR_NUM_VOL_ACCL_9_FREYA_1_1 0xA1 |
#define SENSOR_NUM_VOL_ACCL_9_FREYA_1_2 0xA2 |
#define SENSOR_NUM_VOL_ACCL_9_FREYA_2_1 0xA4 |
#define SENSOR_NUM_VOL_ACCL_9_FREYA_2_2 0xA5 |
#define SENSOR_NUM_VOL_P0V8_VDD_1 0x57 |
#define SENSOR_NUM_VOL_P0V8_VDD_2 0x58 |
#define SENSOR_NUM_VOL_P12V_1_M_AUX 0x61 |
#define SENSOR_NUM_VOL_P12V_2_M_AUX 0x62 |
#define SENSOR_NUM_VOL_P12V_ACCL_1 0x23 |
#define SENSOR_NUM_VOL_P12V_ACCL_10 0x2D |
#define SENSOR_NUM_VOL_P12V_ACCL_11 0x2E |
#define SENSOR_NUM_VOL_P12V_ACCL_12 0x2F |
#define SENSOR_NUM_VOL_P12V_ACCL_2 0x24 |
#define SENSOR_NUM_VOL_P12V_ACCL_3 0x25 |
#define SENSOR_NUM_VOL_P12V_ACCL_4 0x26 |
#define SENSOR_NUM_VOL_P12V_ACCL_5 0x27 |
#define SENSOR_NUM_VOL_P12V_ACCL_6 0x28 |
#define SENSOR_NUM_VOL_P12V_ACCL_7 0x29 |
#define SENSOR_NUM_VOL_P12V_ACCL_8 0x2A |
#define SENSOR_NUM_VOL_P12V_ACCL_9 0x2C |
#define SENSOR_NUM_VOL_P12V_AUX_1 0x0D |
#define SENSOR_NUM_VOL_P12V_AUX_2 0x0E |
#define SENSOR_NUM_VOL_P1V25_VDD_1 0x20 |
#define SENSOR_NUM_VOL_P1V25_VDD_2 0x21 |
#define SENSOR_NUM_VOL_P1V2_AUX 0x12 |
#define SENSOR_NUM_VOL_P1V8_PEX 0x13 |
#define SENSOR_NUM_VOL_P1V8_VDD_1 0x1E |
#define SENSOR_NUM_VOL_P1V8_VDD_2 0x1F |
#define SENSOR_NUM_VOL_P3V3_AUX 0x11 |
#define SENSOR_NUM_VOL_P51V_AUX_L 0x0B |
#define SENSOR_NUM_VOL_P51V_AUX_R 0x0C |
#define SENSOR_NUM_VOL_P51V_STBY_L 0x53 |
#define SENSOR_NUM_VOL_P51V_STBY_R 0x54 |
#define SENSOR_NUM_VOL_P5V_AUX 0x10 |
#define SQ52205_P1V25_1_ADDR 0x40 |
#define SQ52205_P1V25_2_ADDR 0x41 |
#define TMP75_IN_ADDR 0x48 |
#define TMP75_OUT_ADDR 0x4A |
#define TMP75_TEMP_OFFSET 0x00 |
#define XDPE15284D_ADDR 0x64 |
typedef struct _sensor_compatible_cfg sensor_compatible_cfg |
typedef struct _sensor_poll_delay_cfg sensor_poll_delay_cfg |
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_artemis_module_sensor_cfg | ( | uint8_t | card_id | ) |
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 | ) |
void update_plat_sensor_cfg_by_stage | ( | ) |