text: #ifndef PLAT_SENSOR_TABLE_H
  #define PLAT_SENSOR_TABLE_H
  
  #include <stdint.h>
  
  /*  define config for sensors  */
  #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
  
  /* Temperature sensor number, 1 based  */
  #define SENSOR_NUM_TEMP_TMP75_IN 0xD1
  #define SENSOR_NUM_TEMP_TMP75_OUT 0xD2
  #define SENSOR_NUM_TEMP_HSC 0xD3
  
  /* Voltage sensor number */
  #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
  
  /* Power sensor number */
  #define SENSOR_NUM_PWR_MEDUSA_12V 0xD8
  #define SENSOR_NUM_PWR_HSCIN 0xDD
  
  /* Current sensor number */
  #define SENSOR_NUM_CUR_MEDUSA_IOUT 0xDF
  #define SENSOR_NUM_CUR_HSCOUT 0xDE
  #define SENSOR_NUM_CUR_P12V_FAN 0xE8
  
  /* Fan sensor number */
  #define SENSOR_NUM_FAN_BMC_TACH_0 0xE0
  #define SENSOR_NUM_FAN_BMC_TACH_1 0xE1
  #define SENSOR_NUM_FAN_BMC_TACH_2 0xE2
  #define SENSOR_NUM_FAN_BMC_TACH_3 0xE3
  #define SENSOR_NUM_FAN_BMC_TACH_4 0xE4
  #define SENSOR_NUM_FAN_BMC_TACH_5 0xE5
  #define SENSOR_NUM_FAN_BMC_TACH_6 0xE6
  #define SENSOR_NUM_FAN_BMC_TACH_7 0xE7
  
  #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
  
  uint8_t load_sensor_config(void);
  
  #endif
  