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 "plat_apml.h"
#include "power_status.h"
Macros | |
#define | ADJUST_ADM1278_CURRENT(x) (x * 0.94) |
#define | ADJUST_ADM1278_POWER(x) (x * 0.95) |
#define | ADJUST_LTC4282_CURRENT(x) ((x * 0.96) - 0.04) |
#define | ADJUST_LTC4282_POWER(x) ((x * 0.96) - 0.6) |
#define | ADJUST_MP5990_CURRENT(x) ((x * 1.0029) + 0.0542) |
#define | ADJUST_MP5990_POWER(x) ((x * 1.0081) + 1.8285) |
#define | DIMM_HIGH_TEMP_THRESHOLD 80 |
#define | DRAM_THROTTLE_PERCENT 50 |
Variables | |
adc_asd_init_arg | ast_adc_init_args [] |
adm1278_init_arg | adm1278_init_args [] |
ltc4282_init_arg | ltc4282_init_args [] = { [0] = { .r_sense_mohm = 0.5 } } |
mp5990_init_arg | mp5990_init_args [] |
nct7718w_init_arg | nct7718w_init_args [] |
g788p81u_init_arg | g788p81u_init_args [] |
struct tca9548 | mux_conf_addr_0xe2 [] |
vr_pre_proc_arg | vr_pre_read_args [] |
apml_mailbox_init_arg | apml_mailbox_init_args [] = { [0] = { .data = 0x00000000, .retry = 0 } } |
ddr5_init_temp_arg | ddr5_init_temp_args [] |
ddr5_init_power_arg | ddr5_init_power_args [] |
#define ADJUST_ADM1278_CURRENT | ( | x | ) | (x * 0.94) |
#define ADJUST_ADM1278_POWER | ( | x | ) | (x * 0.95) |
#define ADJUST_LTC4282_CURRENT | ( | x | ) | ((x * 0.96) - 0.04) |
#define ADJUST_LTC4282_POWER | ( | x | ) | ((x * 0.96) - 0.6) |
#define ADJUST_MP5990_CURRENT | ( | x | ) | ((x * 1.0029) + 0.0542) |
#define ADJUST_MP5990_POWER | ( | x | ) | ((x * 1.0081) + 1.8285) |
#define DIMM_HIGH_TEMP_THRESHOLD 80 |
#define DRAM_THROTTLE_PERCENT 50 |
void apml_report_fail_cb | ( | apml_msg * | msg | ) |
void apml_report_result_check | ( | apml_msg * | msg | ) |
void check_dram_throttle | ( | uint8_t | sensor_num, |
int *const | reading | ||
) |
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_amd_tsi_read | ( | sensor_cfg * | cfg, |
void * | args, | ||
int *const | reading | ||
) |
bool post_ddr5_pwr_read | ( | sensor_cfg * | cfg, |
void * | args, | ||
int * | reading | ||
) |
bool post_ddr5_temp_read | ( | sensor_cfg * | cfg, |
void * | args, | ||
int *const | 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 | ||
) |
bool pre_vr_read | ( | sensor_cfg * | cfg, |
void * | args | ||
) |
void set_dram_throttle_cb | ( | apml_msg * | msg | ) |
void set_dram_throttle_fail_cb | ( | apml_msg * | msg | ) |
void set_dram_throttle_value | ( | uint8_t | throttle_percent | ) |
adm1278_init_arg adm1278_init_args[] |
apml_mailbox_init_arg apml_mailbox_init_args[] = { [0] = { .data = 0x00000000, .retry = 0 } } |
adc_asd_init_arg ast_adc_init_args[] |
ddr5_init_power_arg ddr5_init_power_args[] |
ddr5_init_temp_arg ddr5_init_temp_args[] |
g788p81u_init_arg g788p81u_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[] |
nct7718w_init_arg nct7718w_init_args[] |
vr_pre_proc_arg vr_pre_read_args[] |