OpenBIC
OpenSource Bridge-IC
plat_sdr_table.c File Reference
#include <string.h>
#include <logging/log.h>
#include "sdr.h"
#include "plat_sdr_table.h"
#include "plat_sensor_table.h"
#include "plat_ipmb.h"
#include "plat_class.h"
Include dependency graph for plat_sdr_table.c:

Functions

 LOG_MODULE_REGISTER (plat_sdr)
 
void pal_change_sdr_config_number_and_name (void)
 
uint8_t pal_get_extend_sdr ()
 
void pal_extend_full_sdr_table ()
 
void load_sdr_table (void)
 

Variables

SDR_Full_sensor plat_sdr_table []
 
SDR_Full_sensor plat_EXPA_sdr_table []
 
SDR_Full_sensor plat_EXPB_sdr_table []
 
char change_name_table [][MAX_SDR_SENSOR_NAME_LEN]
 
char change_EXPA_name_table [][MAX_SDR_SENSOR_NAME_LEN]
 
char change_EXPB_name_table [][MAX_SDR_SENSOR_NAME_LEN]
 
const int SDR_TABLE_SIZE = ARRAY_SIZE(plat_sdr_table)
 

Function Documentation

◆ load_sdr_table()

void load_sdr_table ( void  )
Here is the call graph for this function:

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( plat_sdr  )

◆ pal_change_sdr_config_number_and_name()

void pal_change_sdr_config_number_and_name ( void  )

◆ pal_extend_full_sdr_table()

void pal_extend_full_sdr_table ( void  )

◆ pal_get_extend_sdr()

uint8_t pal_get_extend_sdr ( )

Variable Documentation

◆ change_EXPA_name_table

char change_EXPA_name_table[][MAX_SDR_SENSOR_NAME_LEN]
Initial value:
= {
{ "_ADC_P0V9_VOLT_V" },
{ "_E1S_P12V_EDGE_CURR_A" },
{ "_E1S_P12V_EDGE_PWR_W" },
{ "_RETIMER_TEMP_C" },
}

◆ change_EXPB_name_table

char change_EXPB_name_table[][MAX_SDR_SENSOR_NAME_LEN]
Initial value:
= {
{ "_E1S_SSD3_P12V_VOLT_V" }, { "_E1S_SSD4_P12V_VOLT_V" },
{ "_E1S_ADC_SSD3_P3V3_VOLT_V" }, { "_E1S_ADC_SSD4_P3V3_VOLT_V" },
{ "_E1S_SSD3_P12V_CURR_A" }, { "_E1S_SSD4_P12V_CURR_A" },
{ "_BIC_MAIN_P12V_CURR_A" }, { "_E1S_SSD3_P12V_PWR_W" },
{ "_E1S_SSD4_P12V_PWR_W" }, { "_BIC_MAIN_P12V_PWR_W" },
{ "_E1S_SSD3_TEMP_C" }, { "_E1S_SSD4_TEMP_C" },
}

◆ change_name_table

char change_name_table[][MAX_SDR_SENSOR_NAME_LEN]
Initial value:
= {
{ "_BIC_TEMP_C" },
{ "_E1S_SSD0_P12V_VOLT_V" },
{ "_E1S_SSD1_P12V_VOLT_V" },
{ "_E1S_SSD2_P12V_VOLT_V" },
{ "_BIC_MAIN_P12V_VOLT_V" },
{ "_E1S_ADC_SSD0_P3V3_VOLT_V" },
{ "_E1S_ADC_SSD1_P3V3_VOLT_V" },
{ "_E1S_ADC_SSD2_P3V3_VOLT_V" },
{ "_ADC_P3V3_STBY_VOLT_V" },
{ "_ADC_P1V8_VOLT_V" },
{ "_ADC_P1V2_VOLT_V" },
{ "_E1S_SSD0_P12V_CURR_A" },
{ "_E1S_SSD1_P12V_CURR_A" },
{ "_E1S_SSD2_P12V_CURR_A" },
{ "_E1S_SSD0_P12V_PWR_W" },
{ "_E1S_SSD1_P12V_PWR_W" },
{ "_E1S_SSD2_P12V_PWR_W" },
{ "_E1S_SSD0_TEMP_C" },
{ "_E1S_SSD1_TEMP_C" },
{ "_E1S_SSD2_TEMP_C" },
}

◆ plat_EXPA_sdr_table

SDR_Full_sensor plat_EXPA_sdr_table[]

◆ plat_EXPB_sdr_table

SDR_Full_sensor plat_EXPB_sdr_table[]

◆ plat_sdr_table

SDR_Full_sensor plat_sdr_table[]

◆ SDR_TABLE_SIZE

const int SDR_TABLE_SIZE = ARRAY_SIZE(plat_sdr_table)