|
OpenBIC
OpenSource Bridge-IC
|
#include <stdio.h>#include <string.h>#include "sensor.h"#include "plat_i2c.h"#include "plat_gpio.h"#include "plat_hook.h"#include "plat_sensor_table.h"#include "i2c-mux-tca9548.h"#include "logging/log.h"#include "libipmi.h"#include "ipmi.h"#include "power_status.h"
Macros | |
| #define | ADJUST_ADM1278_CURRENT(x) (x) |
| #define | ADJUST_ADM1278_POWER(x) (x) |
| #define | ADJUST_LTC4282_CURRENT(x) (x) |
| #define | ADJUST_LTC4282_POWER(x) (x) |
| #define | ADJUST_MP5990_CURRENT(x) (x) |
| #define | ADJUST_MP5990_POWER(x) (x) |
Functions | |
| LOG_MODULE_REGISTER (plat_hook) | |
| bool | pre_nvme_read (sensor_cfg *cfg, void *args) |
| bool | pre_vol_bat3v_read (sensor_cfg *cfg, void *args) |
| bool | post_vol_bat3v_read (sensor_cfg *cfg, void *args, int *reading) |
| bool | post_adm1278_cur_read (sensor_cfg *cfg, void *args, int *reading) |
| bool | post_adm1278_pwr_read (sensor_cfg *cfg, void *args, int *reading) |
| bool | post_ltc4282_cur_read (sensor_cfg *cfg, void *args, int *reading) |
| bool | post_ltc4282_pwr_read (sensor_cfg *cfg, void *args, int *reading) |
| bool | post_mp5990_cur_read (sensor_cfg *cfg, void *args, int *reading) |
| bool | post_mp5990_pwr_read (sensor_cfg *cfg, void *args, int *reading) |
Variables | |
| adc_asd_init_arg | ast_adc_init_args [] = { [0] = { .is_init = false } } |
| adm1278_init_arg | adm1278_init_args [] |
| ltc4282_init_arg | ltc4282_init_args [] = { [0] = { .r_sense_mohm = 0.5 } } |
| mp5990_init_arg | mp5990_init_args [] |
| struct tca9548 | mux_conf_addr_0xe2 [] |
| #define ADJUST_ADM1278_CURRENT | ( | x | ) | (x) |
| #define ADJUST_ADM1278_POWER | ( | x | ) | (x) |
| #define ADJUST_LTC4282_CURRENT | ( | x | ) | (x) |
| #define ADJUST_LTC4282_POWER | ( | x | ) | (x) |
| #define ADJUST_MP5990_CURRENT | ( | x | ) | (x) |
| #define ADJUST_MP5990_POWER | ( | x | ) | (x) |
| LOG_MODULE_REGISTER | ( | plat_hook | ) |
| bool post_adm1278_cur_read | ( | sensor_cfg * | cfg, |
| void * | args, | ||
| int * | reading | ||
| ) |

| bool post_adm1278_pwr_read | ( | sensor_cfg * | cfg, |
| void * | args, | ||
| int * | reading | ||
| ) |

| bool post_ltc4282_cur_read | ( | sensor_cfg * | cfg, |
| void * | args, | ||
| int * | reading | ||
| ) |

| bool post_ltc4282_pwr_read | ( | sensor_cfg * | cfg, |
| void * | args, | ||
| int * | reading | ||
| ) |

| bool post_mp5990_cur_read | ( | sensor_cfg * | cfg, |
| void * | args, | ||
| int * | reading | ||
| ) |

| bool post_mp5990_pwr_read | ( | sensor_cfg * | cfg, |
| void * | args, | ||
| int * | reading | ||
| ) |

| bool post_vol_bat3v_read | ( | sensor_cfg * | cfg, |
| void * | args, | ||
| int * | reading | ||
| ) |

| bool pre_nvme_read | ( | sensor_cfg * | cfg, |
| void * | args | ||
| ) |

| bool pre_vol_bat3v_read | ( | sensor_cfg * | cfg, |
| void * | args | ||
| ) |

| adm1278_init_arg adm1278_init_args[] |
| adc_asd_init_arg ast_adc_init_args[] = { [0] = { .is_init = false } } |
| ltc4282_init_arg ltc4282_init_args[] = { [0] = { .r_sense_mohm = 0.5 } } |
| mp5990_init_arg mp5990_init_args[] |
| struct tca9548 mux_conf_addr_0xe2[] |