OpenBIC
OpenSource Bridge-IC
plat_hook.h File Reference
#include "pmbus.h"
#include "sensor.h"
#include "common_i2c_mux.h"
#include "i2c-mux-pca954x.h"
#include "ina238.h"
#include "nct7363.h"
#include "nct214.h"
#include "ads112c.h"
#include "tmp461.h"
#include "hdc1080.h"
#include "ast_tach.h"
#include "xdp710.h"
#include "e50sn12051.h"
#include "bmr4922302_803.h"
Include dependency graph for plat_hook.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _ads112c_post_arg
 

Macros

#define BUS_1_MUX_ADDR   0xE0 >> 1
 
#define BUS_2_MUX_ADDR   0xE2 >> 1
 
#define BUS_6_MUX_ADDR   0xE4 >> 1
 
#define BUS_7_MUX_ADDR   0xE6 >> 1
 
#define BUS_8_MUX_ADDR   0xE8 >> 1
 
#define BUS_9_MUX_ADDR   0xE8 >> 1
 

Typedefs

typedef struct _ads112c_post_arg ads112c_post_arg
 

Enumerations

enum  PLATFORM_ADS112C_SENSOR_TYPE {
  PLATFORM_ADS112C_FLOW = 0x00 , PLATFORM_ADS112C_PRESS = 0x01 , PLATFORM_ADS112C_TEMP_RPU = 0x02 , PLATFORM_ADS112C_TEMP_RACK = 0x03 ,
  PLATFORM_ADS112C_OTHER = 0x04 , PLATFORM_ADS112C_LEAKAGE = 0x05
}
 

Functions

bool post_adm1272_read (sensor_cfg *cfg, void *args, int *reading)
 
bool post_ads112c_read (sensor_cfg *cfg, void *args, int *reading)
 
bool pre_PCA9546A_read (sensor_cfg *cfg, void *args)
 
bool post_PCA9546A_read (sensor_cfg *cfg, void *args, int *reading)
 
bool get_fb_present_status (uint16_t *fb_present_status)
 

Variables

adm1272_init_arg adm1272_init_args []
 
nct7363_init_arg nct7363_init_args []
 
ads112c_init_arg ads112c_init_args []
 
adc_asd_init_arg adc_asd_init_args []
 
ina238_init_arg ina238_init_args []
 
nct214_init_arg nct214_init_args []
 
xdp710_init_arg xdp710_init_args []
 
hdc1080_init_arg hdc1080_init_args []
 
ast_tach_init_arg ast_tach_init_args []
 
e50sn12051_init_arg e50sn12051_init_args []
 
bmr4922302_803_init_arg bmr4922302_803_init_args []
 
ads112c_post_arg ads112c_post_args []
 
mux_config bus_1_PCA9546A_configs []
 
mux_config bus_2_PCA9546A_configs []
 
mux_config bus_6_PCA9546A_configs []
 
mux_config bus_7_PCA9546A_configs []
 
mux_config bus_8_PCA9546A_configs []
 
mux_config bus_9_PCA9546A_configs []
 

Macro Definition Documentation

◆ BUS_1_MUX_ADDR

#define BUS_1_MUX_ADDR   0xE0 >> 1

◆ BUS_2_MUX_ADDR

#define BUS_2_MUX_ADDR   0xE2 >> 1

◆ BUS_6_MUX_ADDR

#define BUS_6_MUX_ADDR   0xE4 >> 1

◆ BUS_7_MUX_ADDR

#define BUS_7_MUX_ADDR   0xE6 >> 1

◆ BUS_8_MUX_ADDR

#define BUS_8_MUX_ADDR   0xE8 >> 1

◆ BUS_9_MUX_ADDR

#define BUS_9_MUX_ADDR   0xE8 >> 1

Typedef Documentation

◆ ads112c_post_arg

Enumeration Type Documentation

◆ PLATFORM_ADS112C_SENSOR_TYPE

Enumerator
PLATFORM_ADS112C_FLOW 
PLATFORM_ADS112C_PRESS 
PLATFORM_ADS112C_TEMP_RPU 
PLATFORM_ADS112C_TEMP_RACK 
PLATFORM_ADS112C_OTHER 
PLATFORM_ADS112C_LEAKAGE 

Function Documentation

◆ get_fb_present_status()

bool get_fb_present_status ( uint16_t *  fb_present_status)

◆ post_adm1272_read()

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

◆ post_ads112c_read()

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

◆ post_PCA9546A_read()

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

◆ pre_PCA9546A_read()

bool pre_PCA9546A_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[]
extern

◆ adm1272_init_args

adm1272_init_arg adm1272_init_args[]
extern

◆ ads112c_init_args

ads112c_init_arg ads112c_init_args[]
extern

◆ ads112c_post_args

ads112c_post_arg ads112c_post_args[]
extern

◆ ast_tach_init_args

ast_tach_init_arg ast_tach_init_args[]
extern

◆ bmr4922302_803_init_args

bmr4922302_803_init_arg bmr4922302_803_init_args[]
extern

◆ bus_1_PCA9546A_configs

mux_config bus_1_PCA9546A_configs[]
extern

◆ bus_2_PCA9546A_configs

mux_config bus_2_PCA9546A_configs[]
extern

◆ bus_6_PCA9546A_configs

mux_config bus_6_PCA9546A_configs[]
extern

◆ bus_7_PCA9546A_configs

mux_config bus_7_PCA9546A_configs[]
extern

◆ bus_8_PCA9546A_configs

mux_config bus_8_PCA9546A_configs[]
extern

◆ bus_9_PCA9546A_configs

mux_config bus_9_PCA9546A_configs[]
extern

◆ e50sn12051_init_args

e50sn12051_init_arg e50sn12051_init_args[]
extern

◆ hdc1080_init_args

hdc1080_init_arg hdc1080_init_args[]
extern

◆ ina238_init_args

ina238_init_arg ina238_init_args[]
extern

◆ nct214_init_args

nct214_init_arg nct214_init_args[]
extern

◆ nct7363_init_args

nct7363_init_arg nct7363_init_args[]
extern

◆ xdp710_init_args

xdp710_init_arg xdp710_init_args[]
extern