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

Classes

struct  yv3_change_sdr
 

Macros

#define HSC_SENSOR   0
 

Functions

 LOG_MODULE_REGISTER (plat_sdr_table)
 
void pal_set_SDR (uint8_t *table_ptr)
 

Variables

SDR_Full_sensor plat_sdr_table []
 
yv3_change_sdr sdr_table_in_yv3 []
 
const int SDR_TABLE_SIZE = ARRAY_SIZE(plat_sdr_table)
 

Macro Definition Documentation

◆ HSC_SENSOR

#define HSC_SENSOR   0

Function Documentation

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( plat_sdr_table  )

◆ pal_set_SDR()

void pal_set_SDR ( uint8_t *  table_ptr)

Variable Documentation

◆ plat_sdr_table

SDR_Full_sensor plat_sdr_table[]

◆ sdr_table_in_yv3

yv3_change_sdr sdr_table_in_yv3[]
Initial value:
= {
{ SENSOR_NUM_T_MB_OUTLET_TEMP_T, "E1S Outlet Temp" },
{ SENSOR_NUM_V_12_AUX, "E1S P12V_AUX" },
{ SENSOR_NUM_V_12_EDGE, "E1S P12V_EDGE" },
{ SENSOR_NUM_V_3_3_AUX, "E1S P3V3_AUX" },
{ SENSOR_NUM_ADC_12V_VOL_M2A, "E1S 12V_ADC_DEV0" },
{ SENSOR_NUM_ADC_12V_VOL_M2B, "E1S 12V_ADC_DEV1" },
{ SENSOR_NUM_ADC_12V_VOL_M2C, "E1S 12V_ADC_DEV2" },
{ SENSOR_NUM_ADC_12V_VOL_M2D, "E1S 12V_ADC_DEV3" },
{ SENSOR_NUM_ADC_3V3_VOL_M2A, "E1S 3V3_ADC_DEV0" },
{ SENSOR_NUM_ADC_3V3_VOL_M2B, "E1S 3V3_ADC_DEV1" },
{ SENSOR_NUM_ADC_3V3_VOL_M2C, "E1S 3V3_ADC_DEV2" },
{ SENSOR_NUM_ADC_3V3_VOL_M2D, "E1S 3V3_ADC_DEV3" },
{ SENSOR_NUM_INA231_PWR_M2A, "E1S DEV0 Power" },
{ SENSOR_NUM_INA231_PWR_M2B, "E1S DEV1 Power" },
{ SENSOR_NUM_INA231_PWR_M2C, "E1S DEV2 Power" },
{ SENSOR_NUM_INA231_PWR_M2D, "E1S DEV3 Power" },
{ SENSOR_NUM_INA231_VOL_M2A, "E1S DEV0 Voltage" },
{ SENSOR_NUM_INA231_VOL_M2B, "E1S DEV1 Voltage" },
{ SENSOR_NUM_INA231_VOL_M2C, "E1S DEV2 Voltage" },
{ SENSOR_NUM_INA231_VOL_M2D, "E1S DEV3 Voltage" },
{ SENSOR_NUM_NVME_TEMP_M2A, "E1S DEV0 Temp" },
{ SENSOR_NUM_NVME_TEMP_M2B, "E1S DEV1 Temp" },
{ SENSOR_NUM_NVME_TEMP_M2C, "E1S DEV2 Temp" },
{ SENSOR_NUM_NVME_TEMP_M2D, "E1S DEV3 Temp" },
}
#define SENSOR_NUM_V_3_3_AUX
Definition: plat_sensor_table.h:231
#define SENSOR_NUM_V_12_AUX
Definition: plat_sensor_table.h:229
#define SENSOR_NUM_ADC_3V3_VOL_M2C
Definition: plat_sensor_table.h:126
#define SENSOR_NUM_INA231_VOL_M2B
Definition: plat_sensor_table.h:118
#define SENSOR_NUM_ADC_12V_VOL_M2C
Definition: plat_sensor_table.h:127
#define SENSOR_NUM_NVME_TEMP_M2A
Definition: plat_sensor_table.h:113
#define SENSOR_NUM_ADC_12V_VOL_M2B
Definition: plat_sensor_table.h:121
#define SENSOR_NUM_T_MB_OUTLET_TEMP_T
Definition: plat_sensor_table.h:74
#define SENSOR_NUM_ADC_3V3_VOL_M2A
Definition: plat_sensor_table.h:114
#define SENSOR_NUM_INA231_PWR_M2A
Definition: plat_sensor_table.h:111
#define SENSOR_NUM_INA231_VOL_M2D
Definition: plat_sensor_table.h:130
#define SENSOR_NUM_NVME_TEMP_M2D
Definition: plat_sensor_table.h:131
#define SENSOR_NUM_ADC_3V3_VOL_M2B
Definition: plat_sensor_table.h:120
#define SENSOR_NUM_ADC_12V_VOL_M2A
Definition: plat_sensor_table.h:115
#define SENSOR_NUM_V_12_EDGE
Definition: plat_sensor_table.h:80
#define SENSOR_NUM_ADC_12V_VOL_M2D
Definition: plat_sensor_table.h:133
#define SENSOR_NUM_INA231_PWR_M2B
Definition: plat_sensor_table.h:117
#define SENSOR_NUM_INA231_PWR_M2D
Definition: plat_sensor_table.h:129
#define SENSOR_NUM_ADC_3V3_VOL_M2D
Definition: plat_sensor_table.h:132
#define SENSOR_NUM_NVME_TEMP_M2C
Definition: plat_sensor_table.h:125
#define SENSOR_NUM_NVME_TEMP_M2B
Definition: plat_sensor_table.h:119
#define SENSOR_NUM_INA231_VOL_M2A
Definition: plat_sensor_table.h:112
#define SENSOR_NUM_INA231_PWR_M2C
Definition: plat_sensor_table.h:123
#define SENSOR_NUM_INA231_VOL_M2C
Definition: plat_sensor_table.h:124

◆ SDR_TABLE_SIZE

const int SDR_TABLE_SIZE = ARRAY_SIZE(plat_sdr_table)