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_TMP461_CXL1   (0x98 >> 1)
 
#define ADDR_TMP461_CXL2   (0x90 >> 1)
 
#define ADDR_INA233_P12V_STBY   (0x80 >> 1)
 
#define ADDR_INA233_E1S   (0x8A >> 1)
 
#define ADDR_VR_P0V85_ASIC1   (0xC4 >> 1)
 
#define ADDR_VR_P0V8_ASIC1   (0xB4 >> 1)
 
#define ADDR_VR_PVDDQ_AB_ASIC1   (0xC4 >> 1)
 
#define ADDR_VR_PVDDQ_CD_ASIC1   (0xB4 >> 1)
 
#define ADDR_VR_P0V85_ASIC2   (0xEC >> 1)
 
#define ADDR_VR_P0V8_ASIC2   (0xE4 >> 1)
 
#define ADDR_VR_PVDDQ_AB_ASIC2   (0xEC >> 1)
 
#define ADDR_VR_PVDDQ_CD_ASIC2   (0xE4 >> 1)
 
#define ADDR_NVME   (0xD4 >> 1)
 
#define ADDR_MAX11617   (0x6A >> 1)
 
#define ADDR_ADC128D818   (0x3A >> 1)
 
#define OFFSET_TMP75_TEMP   0x00
 
#define OFFSET_TMP461_TEMP   0x00
 
#define OFFSET_NVME_TEMP   0x00
 
#define SENSOR_ID_ASIC1_DIMM_A_TEMP   0x000C
 
#define SENSOR_ID_ASIC1_DIMM_B_TEMP   0x000D
 
#define SENSOR_ID_ASIC1_DIMM_C_TEMP   0x000E
 
#define SENSOR_ID_ASIC1_DIMM_D_TEMP   0x000F
 
#define SENSOR_ID_ASIC2_DIMM_A_TEMP   0x0010
 
#define SENSOR_ID_ASIC2_DIMM_B_TEMP   0x0011
 
#define SENSOR_ID_ASIC2_DIMM_C_TEMP   0x0012
 
#define SENSOR_ID_ASIC2_DIMM_D_TEMP   0x0013
 
#define UPDATE_INTERVAL_1S   1
 
#define UPDATE_INTERVAL_3S   3
 
#define UPDATE_INTERVAL_10S   10
 
#define CXL_DIMM_MUTEX_WAITING_TIME_MS   100
 

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
}
 
enum  GET_VR_DEV_STATUS {
  GET_VR_DEV_SUCCESS = 0 , GET_VR_DEV_FAILED , GET_VR_DEV_SUCCESS = 0 , GET_VR_DEV_FAILED ,
  GET_VR_DEV_SUCCESS = 0 , GET_VR_DEV_FAILED
}
 

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)
 
uint8_t plat_pldm_sensor_get_vr_dev (uint8_t *vr_dev)
 
void update_entity_name_with_eid (uint8_t eid)
 

Macro Definition Documentation

◆ ADDR_ADC128D818

#define ADDR_ADC128D818   (0x3A >> 1)

◆ ADDR_INA233_E1S

#define ADDR_INA233_E1S   (0x8A >> 1)

◆ ADDR_INA233_P12V_STBY

#define ADDR_INA233_P12V_STBY   (0x80 >> 1)

◆ ADDR_MAX11617

#define ADDR_MAX11617   (0x6A >> 1)

◆ ADDR_NVME

#define ADDR_NVME   (0xD4 >> 1)

◆ ADDR_TMP461_CXL1

#define ADDR_TMP461_CXL1   (0x98 >> 1)

◆ ADDR_TMP461_CXL2

#define ADDR_TMP461_CXL2   (0x90 >> 1)

◆ ADDR_TMP75_INLET

#define ADDR_TMP75_INLET   (0x92 >> 1)

◆ ADDR_VR_P0V85_ASIC1

#define ADDR_VR_P0V85_ASIC1   (0xC4 >> 1)

◆ ADDR_VR_P0V85_ASIC2

#define ADDR_VR_P0V85_ASIC2   (0xEC >> 1)

◆ ADDR_VR_P0V8_ASIC1

#define ADDR_VR_P0V8_ASIC1   (0xB4 >> 1)

◆ ADDR_VR_P0V8_ASIC2

#define ADDR_VR_P0V8_ASIC2   (0xE4 >> 1)

◆ ADDR_VR_PVDDQ_AB_ASIC1

#define ADDR_VR_PVDDQ_AB_ASIC1   (0xC4 >> 1)

◆ ADDR_VR_PVDDQ_AB_ASIC2

#define ADDR_VR_PVDDQ_AB_ASIC2   (0xEC >> 1)

◆ ADDR_VR_PVDDQ_CD_ASIC1

#define ADDR_VR_PVDDQ_CD_ASIC1   (0xB4 >> 1)

◆ ADDR_VR_PVDDQ_CD_ASIC2

#define ADDR_VR_PVDDQ_CD_ASIC2   (0xE4 >> 1)

◆ CXL_DIMM_MUTEX_WAITING_TIME_MS

#define CXL_DIMM_MUTEX_WAITING_TIME_MS   100

◆ OFFSET_NVME_TEMP

#define OFFSET_NVME_TEMP   0x00

◆ OFFSET_TMP461_TEMP

#define OFFSET_TMP461_TEMP   0x00

◆ OFFSET_TMP75_TEMP

#define OFFSET_TMP75_TEMP   0x00

◆ SENSOR_ID_ASIC1_DIMM_A_TEMP

#define SENSOR_ID_ASIC1_DIMM_A_TEMP   0x000C

◆ SENSOR_ID_ASIC1_DIMM_B_TEMP

#define SENSOR_ID_ASIC1_DIMM_B_TEMP   0x000D

◆ SENSOR_ID_ASIC1_DIMM_C_TEMP

#define SENSOR_ID_ASIC1_DIMM_C_TEMP   0x000E

◆ SENSOR_ID_ASIC1_DIMM_D_TEMP

#define SENSOR_ID_ASIC1_DIMM_D_TEMP   0x000F

◆ SENSOR_ID_ASIC2_DIMM_A_TEMP

#define SENSOR_ID_ASIC2_DIMM_A_TEMP   0x0010

◆ SENSOR_ID_ASIC2_DIMM_B_TEMP

#define SENSOR_ID_ASIC2_DIMM_B_TEMP   0x0011

◆ SENSOR_ID_ASIC2_DIMM_C_TEMP

#define SENSOR_ID_ASIC2_DIMM_C_TEMP   0x0012

◆ SENSOR_ID_ASIC2_DIMM_D_TEMP

#define SENSOR_ID_ASIC2_DIMM_D_TEMP   0x0013

◆ UPDATE_INTERVAL_10S

#define UPDATE_INTERVAL_10S   10

◆ UPDATE_INTERVAL_1S

#define UPDATE_INTERVAL_1S   1

◆ UPDATE_INTERVAL_3S

#define UPDATE_INTERVAL_3S   3

Enumeration Type Documentation

◆ GET_VR_DEV_STATUS

Enumerator
GET_VR_DEV_SUCCESS 
GET_VR_DEV_FAILED 
GET_VR_DEV_SUCCESS 
GET_VR_DEV_FAILED 
GET_VR_DEV_SUCCESS 
GET_VR_DEV_FAILED 

◆ 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)

◆ plat_pldm_sensor_get_vr_dev()

uint8_t plat_pldm_sensor_get_vr_dev ( uint8_t *  vr_dev)
Here is the call graph for this function:

◆ update_entity_name_with_eid()

void update_entity_name_with_eid ( uint8_t  eid)
Here is the call graph for this function: