OpenBIC
OpenSource Bridge-IC
plat_pldm_sensor.h File Reference
#include "pdr.h"
Include dependency graph for plat_pldm_sensor.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ADDR_TMP75_INLET   (0x92 >> 1)
 
#define ADDR_TMP461AIRUNR   (0x98 >> 1)
 
#define ADDR_INA233   (0x8A >> 1)
 
#define ADDR_VR_PVDDQ_AB   (0xEC >> 1)
 
#define ADDR_VR_P0V85_ASIC   (0xEC >> 1)
 
#define ADDR_VR_P0V8_ASIC   (0xE4 >> 1)
 
#define ADDR_VR_PVDDQ_CD   (0xE4 >> 1)
 
#define OFFSET_TMP75_TEMP   0x00
 
#define OFFSET_TMP461_TEMP   0x00
 
#define UPDATE_INTERVAL_1S   1
 
#define UPDATE_INTERVAL_3S   3
 
#define CXL_ID   0
 
#define SENSOR_ID_CH0_DIMM_A_TEMP   0x0007
 
#define SENSOR_ID_CH0_DIMM_B_TEMP   0x0008
 
#define SENSOR_ID_CH1_DIMM_C_TEMP   0x0009
 
#define SENSOR_ID_CH1_DIMM_D_TEMP   0x000A
 

Enumerations

enum  SENSOR_THREAD_LIST {
  UBC_SENSOR_THREAD_ID = 0 , VR_SENSOR_THREAD_ID , TEMP_SENSOR_THREAD_ID , MAX_SENSOR_THREAD_ID ,
  TMP_SENSOR_THREAD_ID = 0 , ADC_SENSOR_THREAD_ID , INA233_SENSOR_THREAD_ID , VR_SENSOR_THREAD_ID ,
  DIMM_SENSOR_THREAD_ID , MAX_SENSOR_THREAD_ID , ADC_SENSOR_THREAD_ID = 0 , VR_SENSOR_THREAD_ID ,
  MB_TEMP_SENSOR_THREAD_ID , CPU_SENSOR_THREAD_ID , INA233_SENSOR_THREAD_ID , DIMM_SENSOR_THREAD_ID ,
  MAX_SENSOR_THREAD_ID , ADC_SENSOR_THREAD_ID = 0 , TMP_SENSOR_THREAD_ID , INA233_SENSOR_THREAD_ID ,
  VR_SENSOR_THREAD_ID , DIMM_SENSOR_THREAD_ID , ADC_MONITOR_SENSOR_THREAD_ID , MAX_SENSOR_THREAD_ID
}
 

Functions

int plat_pldm_sensor_get_sensor_count (int thread_id)
 
void plat_pldm_sensor_get_pdr_numeric_sensor (int thread_id, int sensor_num, PDR_numeric_sensor *numeric_sensor_table)
 

Macro Definition Documentation

◆ ADDR_INA233

#define ADDR_INA233   (0x8A >> 1)

◆ ADDR_TMP461AIRUNR

#define ADDR_TMP461AIRUNR   (0x98 >> 1)

◆ ADDR_TMP75_INLET

#define ADDR_TMP75_INLET   (0x92 >> 1)

◆ ADDR_VR_P0V85_ASIC

#define ADDR_VR_P0V85_ASIC   (0xEC >> 1)

◆ ADDR_VR_P0V8_ASIC

#define ADDR_VR_P0V8_ASIC   (0xE4 >> 1)

◆ ADDR_VR_PVDDQ_AB

#define ADDR_VR_PVDDQ_AB   (0xEC >> 1)

◆ ADDR_VR_PVDDQ_CD

#define ADDR_VR_PVDDQ_CD   (0xE4 >> 1)

◆ CXL_ID

#define CXL_ID   0

◆ OFFSET_TMP461_TEMP

#define OFFSET_TMP461_TEMP   0x00

◆ OFFSET_TMP75_TEMP

#define OFFSET_TMP75_TEMP   0x00

◆ SENSOR_ID_CH0_DIMM_A_TEMP

#define SENSOR_ID_CH0_DIMM_A_TEMP   0x0007

◆ SENSOR_ID_CH0_DIMM_B_TEMP

#define SENSOR_ID_CH0_DIMM_B_TEMP   0x0008

◆ SENSOR_ID_CH1_DIMM_C_TEMP

#define SENSOR_ID_CH1_DIMM_C_TEMP   0x0009

◆ SENSOR_ID_CH1_DIMM_D_TEMP

#define SENSOR_ID_CH1_DIMM_D_TEMP   0x000A

◆ UPDATE_INTERVAL_1S

#define UPDATE_INTERVAL_1S   1

◆ UPDATE_INTERVAL_3S

#define UPDATE_INTERVAL_3S   3

Enumeration Type Documentation

◆ SENSOR_THREAD_LIST

Enumerator
UBC_SENSOR_THREAD_ID 
VR_SENSOR_THREAD_ID 
TEMP_SENSOR_THREAD_ID 
MAX_SENSOR_THREAD_ID 
TMP_SENSOR_THREAD_ID 
ADC_SENSOR_THREAD_ID 
INA233_SENSOR_THREAD_ID 
VR_SENSOR_THREAD_ID 
DIMM_SENSOR_THREAD_ID 
MAX_SENSOR_THREAD_ID 
ADC_SENSOR_THREAD_ID 
VR_SENSOR_THREAD_ID 
MB_TEMP_SENSOR_THREAD_ID 
CPU_SENSOR_THREAD_ID 
INA233_SENSOR_THREAD_ID 
DIMM_SENSOR_THREAD_ID 
MAX_SENSOR_THREAD_ID 
ADC_SENSOR_THREAD_ID 
TMP_SENSOR_THREAD_ID 
INA233_SENSOR_THREAD_ID 
VR_SENSOR_THREAD_ID 
DIMM_SENSOR_THREAD_ID 
ADC_MONITOR_SENSOR_THREAD_ID 
MAX_SENSOR_THREAD_ID 

Function Documentation

◆ plat_pldm_sensor_get_pdr_numeric_sensor()

void plat_pldm_sensor_get_pdr_numeric_sensor ( int  thread_id,
int  sensor_num,
PDR_numeric_sensor numeric_sensor_table 
)

◆ plat_pldm_sensor_get_sensor_count()

int plat_pldm_sensor_get_sensor_count ( int  thread_id)