OpenBIC
OpenSource Bridge-IC
|
#include "plat_hook.h"
#include <stdio.h>
#include <string.h>
#include <logging/log.h>
#include "sensor.h"
#include "pmbus.h"
#include "libutil.h"
#include "plat_i2c.h"
#include "power_status.h"
#include "common_i2c_mux.h"
#include "i2c-mux-tca9543a.h"
#include "i2c-mux-pi4msd5v9542.h"
#include "plat_sensor_table.h"
#include "i2c-mux-pca954x.h"
#include "plat_class.h"
#include "plat_dev.h"
#include "nvme.h"
#include "plat_ipmi.h"
#include "util_sys.h"
#include "plat_fru.h"
#include "xdpe15284.h"
#include "mp2985.h"
#include "sq52205.h"
#include "plat_pldm_monitor.h"
Macros | |
#define | PEX_SWITCH_INIT_RETRY_COUNT 20 |
#define | ACCL_SENSOR_COUNT 6 |
#define | NVME_ERROR_RETRY_COUNT 3 |
Functions | |
LOG_MODULE_REGISTER (plat_hook) | |
bool | pre_ina233_read (sensor_cfg *cfg, void *args) |
bool | post_ina233_read (sensor_cfg *cfg, void *args, int *reading) |
bool | pre_xdpe15284_read (sensor_cfg *cfg, void *args) |
bool | post_xdpe15284_read (sensor_cfg *cfg, void *args, int *reading) |
bool | pre_pex89000_read (sensor_cfg *cfg, void *args) |
bool | pre_accl_nvme_read (sensor_cfg *cfg, void *args) |
bool | post_accl_nvme_read (sensor_cfg *cfg, void *args, int *reading) |
bool | post_adm1272_read (sensor_cfg *cfg, void *args, int *reading) |
#define ACCL_SENSOR_COUNT 6 |
#define NVME_ERROR_RETRY_COUNT 3 |
#define PEX_SWITCH_INIT_RETRY_COUNT 20 |
LOG_MODULE_REGISTER | ( | plat_hook | ) |
bool post_accl_nvme_read | ( | sensor_cfg * | cfg, |
void * | args, | ||
int * | reading | ||
) |
bool post_adm1272_read | ( | sensor_cfg * | cfg, |
void * | args, | ||
int * | reading | ||
) |
bool post_ina233_read | ( | sensor_cfg * | cfg, |
void * | args, | ||
int * | reading | ||
) |
bool post_xdpe15284_read | ( | sensor_cfg * | cfg, |
void * | args, | ||
int * | reading | ||
) |
bool pre_accl_nvme_read | ( | sensor_cfg * | cfg, |
void * | args | ||
) |
Check whether Freya is accessible
Check ACCL card power status
bool pre_ina233_read | ( | sensor_cfg * | cfg, |
void * | args | ||
) |
bool pre_pex89000_read | ( | sensor_cfg * | cfg, |
void * | args | ||
) |
bool pre_xdpe15284_read | ( | sensor_cfg * | cfg, |
void * | args | ||
) |
accl_card_info accl_card_info_args[] |
ina233_init_arg accl_pwr_monitor_ina233_init_args[] |
sq52205_init_arg accl_pwr_monitor_sq52205_init_args[] |
accl_card_sensor_info accl_sensor_info_args[] |
adc_asd_init_arg adc_asd_init_args[] |
adm1272_init_arg adm1272_init_args[] |
mux_config ina233_configs[] |
ltc4286_init_arg ltc4286_init_args[] |
mp2985_init_arg mp2985_init_args[] = { [0] = { .is_init = false } } |
mux_config pca9546_configs[] |
mux_config pca9548_configs[] |
pex89000_init_arg pex_sensor_init_args[] |
uint8_t plat_monitor_table_arg[] |
pwr_monitor_pre_proc_arg pwr_monitor_args[] |
pwr_monitor_pre_proc_arg pwr_monitor_pre_dvt_args[] |
mux_config tca9543_configs[] |
ina230_init_arg u178_179_ina230_init_args[] |
sq52205_init_arg u178_179_sq52205_init_args[] |
struct k_mutex xdpe15284_mutex |
vr_page_cfg xdpe15284_page[] |