OpenBIC
OpenSource Bridge-IC
plat_pldm_sensor.c File Reference
#include <logging/log.h>
#include "pmbus.h"
#include "ast_adc.h"
#include "pdr.h"
#include "sensor.h"
#include "vistara.h"
#include "pldm_sensor.h"
#include "pldm_monitor.h"
#include "plat_i2c.h"
#include "plat_power_seq.h"
#include "plat_hook.h"
#include "plat_pldm_sensor.h"
#include "plat_isr.h"
#include "plat_class.h"
Include dependency graph for plat_pldm_sensor.c:

Macros

#define VR_DEVICE_UNKNOWN   0xFF
 

Functions

 LOG_MODULE_REGISTER (plat_pldm_sensor)
 
void plat_pldm_sensor_change_vr_dev ()
 
void plat_pldm_sensor_change_adc_monitor_dev ()
 
void plat_pldm_sensor_change_asic_tmp_dev ()
 
void plat_pldm_sensor_change_ina233_dev ()
 
uint32_t plat_get_pdr_size (uint8_t pdr_type)
 
pldm_sensor_threadplat_pldm_sensor_load_thread ()
 
pldm_sensor_infoplat_pldm_sensor_load (int thread_id)
 
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)
 
void plat_load_numeric_sensor_pdr_table (PDR_numeric_sensor *numeric_sensor_table)
 
void plat_load_aux_sensor_names_pdr_table (PDR_sensor_auxiliary_names *aux_sensor_name_table)
 
size_t char16_strlen (const char16_t *str)
 
char16_tchar16_strcpy (char16_t *dest, const char16_t *src)
 
void plat_init_entity_aux_names_pdr_table ()
 
void plat_load_entity_aux_names_pdr_table (PDR_entity_auxiliary_names *entity_aux_name_table)
 
void update_entity_name_with_eid (uint8_t eid)
 
uint16_t plat_get_pdr_entity_aux_names_size ()
 
uint8_t plat_pldm_sensor_get_vr_dev (uint8_t *vr_dev)
 
float plat_get_dimm_cache (uint8_t cxl_id, uint8_t dimm_id)
 
void plat_set_dimm_cache (uint8_t *resp_buf, uint8_t cxl_id, uint8_t status)
 

Variables

float cxl_dimm_temp [MAX_CXL_ID][MAX_DIMM_ID] = { { -1, -1, -1, -1 }, { -1, -1, -1, -1 } }
 
pldm_sensor_info plat_pldm_sensor_adc_table []
 
pldm_sensor_info plat_pldm_sensor_adc_monitor_table []
 
pldm_sensor_info plat_pldm_sensor_tmp_table []
 
pldm_sensor_info plat_pldm_sensor_ina233_table []
 
pldm_sensor_info plat_pldm_sensor_vr_table []
 
pldm_sensor_info plat_pldm_sensor_dimm_table []
 
PDR_sensor_auxiliary_names plat_pdr_sensor_aux_names_table []
 
PDR_entity_auxiliary_names plat_pdr_entity_aux_names_table []
 
uint16_t plat_pdr_entity_aux_names_table_size = 0
 

Macro Definition Documentation

◆ VR_DEVICE_UNKNOWN

#define VR_DEVICE_UNKNOWN   0xFF

Function Documentation

◆ char16_strcpy()

char16_t * char16_strcpy ( char16_t dest,
const char16_t src 
)

◆ char16_strlen()

size_t char16_strlen ( const char16_t str)

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( plat_pldm_sensor  )

◆ plat_get_dimm_cache()

float plat_get_dimm_cache ( uint8_t  cxl_id,
uint8_t  dimm_id 
)

◆ plat_get_pdr_entity_aux_names_size()

uint16_t plat_get_pdr_entity_aux_names_size ( )

◆ plat_get_pdr_size()

uint32_t plat_get_pdr_size ( uint8_t  pdr_type)
Here is the call graph for this function:

◆ plat_init_entity_aux_names_pdr_table()

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

◆ plat_load_aux_sensor_names_pdr_table()

void plat_load_aux_sensor_names_pdr_table ( PDR_sensor_auxiliary_names aux_sensor_name_table)

◆ plat_load_entity_aux_names_pdr_table()

void plat_load_entity_aux_names_pdr_table ( PDR_entity_auxiliary_names entity_aux_name_table)

◆ plat_load_numeric_sensor_pdr_table()

void plat_load_numeric_sensor_pdr_table ( PDR_numeric_sensor numeric_sensor_table)
Here is the call graph for this function:

◆ plat_pldm_sensor_change_adc_monitor_dev()

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

◆ plat_pldm_sensor_change_asic_tmp_dev()

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

◆ plat_pldm_sensor_change_ina233_dev()

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

◆ plat_pldm_sensor_change_vr_dev()

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

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

◆ plat_pldm_sensor_load()

pldm_sensor_info * plat_pldm_sensor_load ( int  thread_id)
Here is the call graph for this function:

◆ plat_pldm_sensor_load_thread()

pldm_sensor_thread * plat_pldm_sensor_load_thread ( )

◆ plat_set_dimm_cache()

void plat_set_dimm_cache ( uint8_t *  resp_buf,
uint8_t  cxl_id,
uint8_t  status 
)

◆ update_entity_name_with_eid()

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

Variable Documentation

◆ cxl_dimm_temp

float cxl_dimm_temp[MAX_CXL_ID][MAX_DIMM_ID] = { { -1, -1, -1, -1 }, { -1, -1, -1, -1 } }

◆ plat_pdr_entity_aux_names_table

PDR_entity_auxiliary_names plat_pdr_entity_aux_names_table[]
Initial value:
= { {
{
.record_handle = 0x00000000,
.PDR_header_version = 0x01,
.record_change_number = 0x0000,
.data_length = 0x0000,
},
.entity_type = 0x0000,
.entity_instance_number = 0x0001,
.container_id = 0x0000,
.shared_name_count = 0x0,
.nameStringCount = 0x1,
.nameLanguageTag = "en",
} }
@ PLDM_ENTITY_AUXILIARY_NAMES_PDR
Definition: pdr.h:51

◆ plat_pdr_entity_aux_names_table_size

uint16_t plat_pdr_entity_aux_names_table_size = 0

◆ plat_pdr_sensor_aux_names_table

PDR_sensor_auxiliary_names plat_pdr_sensor_aux_names_table[]

◆ plat_pldm_sensor_adc_monitor_table

pldm_sensor_info plat_pldm_sensor_adc_monitor_table[]

◆ plat_pldm_sensor_adc_table

pldm_sensor_info plat_pldm_sensor_adc_table[]

◆ plat_pldm_sensor_dimm_table

pldm_sensor_info plat_pldm_sensor_dimm_table[]

◆ plat_pldm_sensor_ina233_table

pldm_sensor_info plat_pldm_sensor_ina233_table[]

◆ plat_pldm_sensor_tmp_table

pldm_sensor_info plat_pldm_sensor_tmp_table[]

◆ plat_pldm_sensor_vr_table

pldm_sensor_info plat_pldm_sensor_vr_table[]