OpenBIC
OpenSource Bridge-IC
|
#include <stdio.h>
#include <string.h>
#include <drivers/peci.h>
#include <logging/log.h>
#include "pmic.h"
#include "ipmi.h"
#include "sensor.h"
#include "libutil.h"
#include "plat_i2c.h"
#include "plat_gpio.h"
#include "plat_hook.h"
#include "plat_sensor_table.h"
#include "plat_dimm.h"
#include "pmbus.h"
#include "intel_peci.h"
#include "intel_dimm.h"
#include "hal_peci.h"
#include "power_status.h"
#include "xdpe15284.h"
#include "util_sys.h"
#include "i2c-mux-tca9548.h"
Macros | |
#define | ADJUST_ADM1278_POWER(x) (x * 0.98) |
#define | ADJUST_ADM1278_CURRENT(x) ((x * 0.98) + 0.1) |
#define | ADJUST_LTC4286_POWER(x) ((x * 0.99) + 1.5) |
#define | ADJUST_LTC4286_CURRENT(x) ((x * 0.99) + 0.3) |
#define | ADJUST_LTC4282_POWER(x) (x * 0.99) |
#define | ADJUST_LTC4282_CURRENT(x) (x * 0.99) |
Functions | |
LOG_MODULE_REGISTER (plat_hook) | |
bool | pre_isl69259_read (sensor_cfg *cfg, void *args) |
bool | pre_nvme_read (sensor_cfg *cfg, void *args) |
bool | pre_vol_bat3v_read (sensor_cfg *cfg, void *args) |
bool | pre_intel_peci_dimm_read (sensor_cfg *cfg, void *args) |
bool | post_vol_bat3v_read (sensor_cfg *cfg, void *args, int *reading) |
bool | post_cpu_margin_read (sensor_cfg *cfg, void *args, int *reading) |
bool | post_adm1278_power_read (sensor_cfg *cfg, void *args, int *reading) |
bool | post_adm1278_current_read (sensor_cfg *cfg, void *args, int *reading) |
bool | post_ltc4286_read (sensor_cfg *cfg, void *args, int *reading) |
bool | post_ltc4282_read (sensor_cfg *cfg, void *args, int *reading) |
bool | pre_intel_dimm_i3c_read (sensor_cfg *cfg, void *args) |
bool | post_intel_dimm_i3c_read (sensor_cfg *cfg, void *args, int *reading) |
bool | pre_ifx_vr_cache_crc (sensor_cfg *cfg, uint8_t index) |
Variables | |
adc_asd_init_arg | adc_asd_init_args [] |
adm1278_init_arg | adm1278_init_args [] |
mp5990_init_arg | mp5990_init_args [] |
ltc4286_init_arg | ltc4286_init_args [] |
ltc4282_init_arg | ltc4282_init_args [] |
pmic_init_arg | pmic_init_args [] |
max16550a_init_arg | max16550a_init_args [] = { [0] = { .r_load = 14000 } } |
ifx_vr_fw_info | ifx_vr_fw_info_table [] |
struct tca9548 | mux_conf_addr_0xe2 [8] |
isl69259_pre_proc_arg | isl69259_pre_read_args [] |
dimm_pre_proc_arg | dimm_pre_proc_args [] |
dimm_post_proc_arg | dimm_post_proc_args [] |
#define ADJUST_ADM1278_CURRENT | ( | x | ) | ((x * 0.98) + 0.1) |
#define ADJUST_ADM1278_POWER | ( | x | ) | (x * 0.98) |
#define ADJUST_LTC4282_CURRENT | ( | x | ) | (x * 0.99) |
#define ADJUST_LTC4282_POWER | ( | x | ) | (x * 0.99) |
#define ADJUST_LTC4286_CURRENT | ( | x | ) | ((x * 0.99) + 0.3) |
#define ADJUST_LTC4286_POWER | ( | x | ) | ((x * 0.99) + 1.5) |
LOG_MODULE_REGISTER | ( | plat_hook | ) |
bool post_adm1278_current_read | ( | sensor_cfg * | cfg, |
void * | args, | ||
int * | reading | ||
) |
bool post_adm1278_power_read | ( | sensor_cfg * | cfg, |
void * | args, | ||
int * | reading | ||
) |
bool post_cpu_margin_read | ( | sensor_cfg * | cfg, |
void * | args, | ||
int * | reading | ||
) |
bool post_intel_dimm_i3c_read | ( | sensor_cfg * | cfg, |
void * | args, | ||
int * | reading | ||
) |
bool post_ltc4282_read | ( | sensor_cfg * | cfg, |
void * | args, | ||
int * | reading | ||
) |
bool post_ltc4286_read | ( | sensor_cfg * | cfg, |
void * | args, | ||
int * | reading | ||
) |
bool post_vol_bat3v_read | ( | sensor_cfg * | cfg, |
void * | args, | ||
int * | reading | ||
) |
bool pre_ifx_vr_cache_crc | ( | sensor_cfg * | cfg, |
uint8_t | index | ||
) |
bool pre_intel_dimm_i3c_read | ( | sensor_cfg * | cfg, |
void * | args | ||
) |
bool pre_intel_peci_dimm_read | ( | sensor_cfg * | cfg, |
void * | args | ||
) |
bool pre_isl69259_read | ( | sensor_cfg * | cfg, |
void * | args | ||
) |
bool pre_nvme_read | ( | sensor_cfg * | cfg, |
void * | args | ||
) |
bool pre_vol_bat3v_read | ( | sensor_cfg * | cfg, |
void * | args | ||
) |
adc_asd_init_arg adc_asd_init_args[] |
adm1278_init_arg adm1278_init_args[] |
dimm_post_proc_arg dimm_post_proc_args[] |
dimm_pre_proc_arg dimm_pre_proc_args[] |
ifx_vr_fw_info ifx_vr_fw_info_table[] |
isl69259_pre_proc_arg isl69259_pre_read_args[] |
ltc4282_init_arg ltc4282_init_args[] |
ltc4286_init_arg ltc4286_init_args[] |
max16550a_init_arg max16550a_init_args[] = { [0] = { .r_load = 14000 } } |
mp5990_init_arg mp5990_init_args[] |
struct tca9548 mux_conf_addr_0xe2[8] |
pmic_init_arg pmic_init_args[] |