OpenBIC
OpenSource Bridge-IC
plat_sensor_table.h File Reference
#include <stdint.h>
Include dependency graph for plat_sensor_table.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define TMP75_IN_ADDR   (0x9C >> 1)
 
#define TMP75_OUT_ADDR   (0x9E >> 1)
 
#define HSC_ADDR   (0x80 >> 1)
 
#define MEDUSA_ADDR   (0x88 >> 1)
 
#define FAN_ADDR   0x00
 
#define TMP75_TEMP_OFFSET   0x00
 
#define HSC_VOL_OFFSET   0x88
 
#define HSC_CUR_OFFSET   0x8C
 
#define HSC_TEMP_OFFSET   0x8D
 
#define HSC_PWR_OFFSET   0x97
 
#define HSC_PEAK_IOUT_OFFSET   0xD0
 
#define HSC_PEAK_PIN_OFFSET   0xDA
 
#define HSC_EIN_EXT_OFFSET   0xDC
 
#define MEDUSA_VOL_OUT_OFFSET   0x3A
 
#define MEDUSA_VOL_IN_OFFSET   0x3A
 
#define MEDUSA_CUR_OFFSET   0x40
 
#define MEDUSA_PWR_OFFSET   0x46
 
#define SENSOR_NUM_TEMP_TMP75_IN   0xD1
 
#define SENSOR_NUM_TEMP_TMP75_OUT   0xD2
 
#define SENSOR_NUM_TEMP_HSC   0xD3
 
#define SENSOR_NUM_VOL_P5V_STBY   0xD4
 
#define SENSOR_NUM_VOL_P12V_STBY   0xD5
 
#define SENSOR_NUM_VOL_P3V3_STBY   0xD6
 
#define SENSOR_NUM_VOL_P5V_USB   0xE9
 
#define SENSOR_NUM_VOL_P1V2_BIC_STBY   0xD9
 
#define SENSOR_NUM_VOL_P1V0_STBY   0xDA
 
#define SENSOR_NUM_VOL_MEDUSA_12V_IN   0xDB
 
#define SENSOR_NUM_VOL_MEDUSA_12V_OUT   0xD7
 
#define SENSOR_NUM_VOL_HSCIN   0xDC
 
#define SENSOR_NUM_PWR_MEDUSA_12V   0xD8
 
#define SENSOR_NUM_PWR_HSCIN   0xDD
 
#define SENSOR_NUM_CUR_MEDUSA_IOUT   0xDF
 
#define SENSOR_NUM_CUR_HSCOUT   0xDE
 
#define SENSOR_NUM_CUR_P12V_FAN   0xE8
 
#define SENSOR_NUM_HSC_EIN   0xEA
 
#define SENSOR_NUM_HSC_PEAK_IOUT   0xEB
 
#define SENSOR_NUM_HSC_PEAK_PIN   0xEC
 
#define SENSOR_NUM_MEDUSA_VDELTA   0xED
 
#define SENSOR_NUM_PDB_CL_VDELTA   0xEE
 
#define SENSOR_NUM_PDB_BB_VDELTA   0xEF
 
#define SENSOR_NUM_CUR_LEAKAGE   0xF0
 
#define SENSOR_NUM_FAN_PWR   0xF1
 
#define SAMPLE_COUNT_FAN_IOUT   100
 
#define SENSOR_NUM_POWER_DETECT   0xE1
 
#define SENSOR_NUM_BUTTON_DETECT   0xE2
 

Functions

uint8_t plat_get_config_size ()
 
void load_sensor_config (void)
 

Macro Definition Documentation

◆ FAN_ADDR

#define FAN_ADDR   0x00

◆ HSC_ADDR

#define HSC_ADDR   (0x80 >> 1)

◆ HSC_CUR_OFFSET

#define HSC_CUR_OFFSET   0x8C

◆ HSC_EIN_EXT_OFFSET

#define HSC_EIN_EXT_OFFSET   0xDC

◆ HSC_PEAK_IOUT_OFFSET

#define HSC_PEAK_IOUT_OFFSET   0xD0

◆ HSC_PEAK_PIN_OFFSET

#define HSC_PEAK_PIN_OFFSET   0xDA

◆ HSC_PWR_OFFSET

#define HSC_PWR_OFFSET   0x97

◆ HSC_TEMP_OFFSET

#define HSC_TEMP_OFFSET   0x8D

◆ HSC_VOL_OFFSET

#define HSC_VOL_OFFSET   0x88

◆ MEDUSA_ADDR

#define MEDUSA_ADDR   (0x88 >> 1)

◆ MEDUSA_CUR_OFFSET

#define MEDUSA_CUR_OFFSET   0x40

◆ MEDUSA_PWR_OFFSET

#define MEDUSA_PWR_OFFSET   0x46

◆ MEDUSA_VOL_IN_OFFSET

#define MEDUSA_VOL_IN_OFFSET   0x3A

◆ MEDUSA_VOL_OUT_OFFSET

#define MEDUSA_VOL_OUT_OFFSET   0x3A

◆ SAMPLE_COUNT_FAN_IOUT

#define SAMPLE_COUNT_FAN_IOUT   100

◆ SENSOR_NUM_BUTTON_DETECT

#define SENSOR_NUM_BUTTON_DETECT   0xE2

◆ SENSOR_NUM_CUR_HSCOUT

#define SENSOR_NUM_CUR_HSCOUT   0xDE

◆ SENSOR_NUM_CUR_LEAKAGE

#define SENSOR_NUM_CUR_LEAKAGE   0xF0

◆ SENSOR_NUM_CUR_MEDUSA_IOUT

#define SENSOR_NUM_CUR_MEDUSA_IOUT   0xDF

◆ SENSOR_NUM_CUR_P12V_FAN

#define SENSOR_NUM_CUR_P12V_FAN   0xE8

◆ SENSOR_NUM_FAN_PWR

#define SENSOR_NUM_FAN_PWR   0xF1

◆ SENSOR_NUM_HSC_EIN

#define SENSOR_NUM_HSC_EIN   0xEA

◆ SENSOR_NUM_HSC_PEAK_IOUT

#define SENSOR_NUM_HSC_PEAK_IOUT   0xEB

◆ SENSOR_NUM_HSC_PEAK_PIN

#define SENSOR_NUM_HSC_PEAK_PIN   0xEC

◆ SENSOR_NUM_MEDUSA_VDELTA

#define SENSOR_NUM_MEDUSA_VDELTA   0xED

◆ SENSOR_NUM_PDB_BB_VDELTA

#define SENSOR_NUM_PDB_BB_VDELTA   0xEF

◆ SENSOR_NUM_PDB_CL_VDELTA

#define SENSOR_NUM_PDB_CL_VDELTA   0xEE

◆ SENSOR_NUM_POWER_DETECT

#define SENSOR_NUM_POWER_DETECT   0xE1

◆ SENSOR_NUM_PWR_HSCIN

#define SENSOR_NUM_PWR_HSCIN   0xDD

◆ SENSOR_NUM_PWR_MEDUSA_12V

#define SENSOR_NUM_PWR_MEDUSA_12V   0xD8

◆ SENSOR_NUM_TEMP_HSC

#define SENSOR_NUM_TEMP_HSC   0xD3

◆ SENSOR_NUM_TEMP_TMP75_IN

#define SENSOR_NUM_TEMP_TMP75_IN   0xD1

◆ SENSOR_NUM_TEMP_TMP75_OUT

#define SENSOR_NUM_TEMP_TMP75_OUT   0xD2

◆ SENSOR_NUM_VOL_HSCIN

#define SENSOR_NUM_VOL_HSCIN   0xDC

◆ SENSOR_NUM_VOL_MEDUSA_12V_IN

#define SENSOR_NUM_VOL_MEDUSA_12V_IN   0xDB

◆ SENSOR_NUM_VOL_MEDUSA_12V_OUT

#define SENSOR_NUM_VOL_MEDUSA_12V_OUT   0xD7

◆ SENSOR_NUM_VOL_P12V_STBY

#define SENSOR_NUM_VOL_P12V_STBY   0xD5

◆ SENSOR_NUM_VOL_P1V0_STBY

#define SENSOR_NUM_VOL_P1V0_STBY   0xDA

◆ SENSOR_NUM_VOL_P1V2_BIC_STBY

#define SENSOR_NUM_VOL_P1V2_BIC_STBY   0xD9

◆ SENSOR_NUM_VOL_P3V3_STBY

#define SENSOR_NUM_VOL_P3V3_STBY   0xD6

◆ SENSOR_NUM_VOL_P5V_STBY

#define SENSOR_NUM_VOL_P5V_STBY   0xD4

◆ SENSOR_NUM_VOL_P5V_USB

#define SENSOR_NUM_VOL_P5V_USB   0xE9

◆ TMP75_IN_ADDR

#define TMP75_IN_ADDR   (0x9C >> 1)

◆ TMP75_OUT_ADDR

#define TMP75_OUT_ADDR   (0x9E >> 1)

◆ TMP75_TEMP_OFFSET

#define TMP75_TEMP_OFFSET   0x00

Function Documentation

◆ load_sensor_config()

void load_sensor_config ( void  )

◆ plat_get_config_size()

uint8_t plat_get_config_size ( )