OpenBIC
OpenSource Bridge-IC
plat_hook.c File Reference
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <logging/log.h>
#include "ipmi.h"
#include "libutil.h"
#include "sensor.h"
#include "plat_i2c.h"
#include "plat_gpio.h"
#include "plat_hook.h"
#include "plat_sensor_table.h"
#include "pmbus.h"
#include "libipmi.h"
#include "plat_sys.h"
#include "intel_peci.h"
#include "intel_dimm.h"
#include "power_status.h"
Include dependency graph for plat_hook.c:

Functions

 LOG_MODULE_DECLARE (sensor)
 
bool pre_nvme_read (sensor_cfg *cfg, void *args)
 
bool post_cpu_margin_read (sensor_cfg *cfg, void *args, int *reading)
 
bool pre_vol_bat3v_read (sensor_cfg *cfg, void *args)
 
bool post_vol_bat3v_read (sensor_cfg *cfg, void *args, int *reading)
 
bool pre_vr_read (sensor_cfg *cfg, void *args)
 
bool pre_intel_peci_dimm_read (sensor_cfg *cfg, void *args)
 
bool post_xdpe12284c_read (sensor_cfg *cfg, void *args, int *reading)
 
bool post_isl69254_read (sensor_cfg *cfg, void *args, int *reading)
 

Variables

adc_asd_init_arg adc_asd_init_args [] = { [0] = { .is_init = false } }
 
ltc4282_init_arg ltc4282_init_args [] = { [0] = { .is_init = false, .r_sense_mohm = 0.25 } }
 
mp5990_init_arg mp5990_init_args []
 
vr_pre_proc_arg vr_page_select []
 
dimm_pre_proc_arg dimm_pre_proc_args []
 
nvme_pre_proc_arg nvme_pre_proc_args []
 

Function Documentation

◆ LOG_MODULE_DECLARE()

LOG_MODULE_DECLARE ( sensor  )

◆ post_cpu_margin_read()

bool post_cpu_margin_read ( sensor_cfg cfg,
void *  args,
int *  reading 
)

◆ post_isl69254_read()

bool post_isl69254_read ( sensor_cfg cfg,
void *  args,
int *  reading 
)
Here is the call graph for this function:

◆ post_vol_bat3v_read()

bool post_vol_bat3v_read ( sensor_cfg cfg,
void *  args,
int *  reading 
)
Here is the call graph for this function:

◆ post_xdpe12284c_read()

bool post_xdpe12284c_read ( sensor_cfg cfg,
void *  args,
int *  reading 
)
Here is the call graph for this function:

◆ pre_intel_peci_dimm_read()

bool pre_intel_peci_dimm_read ( sensor_cfg cfg,
void *  args 
)
Here is the call graph for this function:

◆ pre_nvme_read()

bool pre_nvme_read ( sensor_cfg cfg,
void *  args 
)
Here is the call graph for this function:

◆ pre_vol_bat3v_read()

bool pre_vol_bat3v_read ( sensor_cfg cfg,
void *  args 
)
Here is the call graph for this function:

◆ pre_vr_read()

bool pre_vr_read ( sensor_cfg cfg,
void *  args 
)
Here is the call graph for this function:

Variable Documentation

◆ adc_asd_init_args

adc_asd_init_arg adc_asd_init_args[] = { [0] = { .is_init = false } }

◆ dimm_pre_proc_args

dimm_pre_proc_arg dimm_pre_proc_args[]
Initial value:
= {
[0] = { .is_present_checked = false }, [1] = { .is_present_checked = false },
[2] = { .is_present_checked = false }, [3] = { .is_present_checked = false },
[4] = { .is_present_checked = false }, [5] = { .is_present_checked = false }
}

◆ ltc4282_init_args

ltc4282_init_arg ltc4282_init_args[] = { [0] = { .is_init = false, .r_sense_mohm = 0.25 } }

◆ mp5990_init_args

mp5990_init_arg mp5990_init_args[]
Initial value:
= { [0] = { .is_init = false,
.iout_cal_gain = 0x0202,
.iout_oc_fault_limit = 0x0028,
.ocw_sc_ref = 0xFFFF } }

◆ nvme_pre_proc_args

nvme_pre_proc_arg nvme_pre_proc_args[]
Initial value:
= {
[0] = { { .addr = 0xe2, .chan = 0 }, .is_present_checked = false },
[1] = { { .addr = 0xe2, .chan = 1 }, .is_present_checked = false },
[2] = { { .addr = 0xe2, .chan = 2 }, .is_present_checked = false },
[3] = { { .addr = 0xe2, .chan = 3 }, .is_present_checked = false },
[4] = { { .addr = 0xe2, .chan = 4 }, .is_present_checked = false },
[5] = { { .addr = 0xe2, .chan = 5 }, .is_present_checked = false },
[6] = { { .addr = 0xe2, .chan = 6 }, .is_present_checked = false },
[7] = { { .addr = 0xe2, .chan = 7 }, .is_present_checked = false },
}

◆ vr_page_select

vr_pre_proc_arg vr_page_select[]
Initial value:
= {
[0] = { 0x0 },
[1] = { 0x1 },
}