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 "ina233.h"
#include "sq52205.h"
#include "pt5161l.h"
#include "rtq6056.h"
#include "sensor.h"
#include "pldm_sensor.h"
#include "pldm_monitor.h"
#include "plat_apml.h"
#include "plat_hook.h"
#include "plat_i2c.h"
#include "plat_pldm_sensor.h"
#include "plat_dimm.h"
#include "plat_class.h"
#include "plat_gpio.h"
Include dependency graph for plat_pldm_sensor.c:

Functions

 LOG_MODULE_REGISTER (plat_pldm_sensor)
 
void plat_init_pldm_sensor_table ()
 
void plat_pldm_disable_sensor (sensor_cfg *cfg)
 
void plat_init_pldm_disabled_sensors ()
 
uint16_t plat_get_disabled_sensor_count ()
 
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_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)
 
char16_tchar16_strcat_char (char16_t *dest, char16_t ch)
 
void plat_init_entity_aux_names_pdr_table ()
 
void plat_load_entity_aux_names_pdr_table (PDR_entity_auxiliary_names *entity_aux_name_table)
 
uint16_t plat_get_pdr_entity_aux_names_size ()
 
void plat_pldm_sensor_change_vr_dev ()
 
void plat_pldm_sensor_change_ssd_dev ()
 
void plat_pldm_sensor_change_cpu_bus ()
 
void plat_pldm_disable_ina233_sensor_with_no_retimer ()
 
void plat_pldm_sensor_change_retimer_dev ()
 
void plat_pldm_sensor_change_ina_dev ()
 
void plat_pldm_sensor_change_dimm_dev ()
 
uint8_t plat_pldm_sensor_get_vr_dev (uint8_t *vr_dev)
 
void plat_pldm_sensor_clear_vr_fault (uint8_t vr_addr, uint8_t vr_bus, uint8_t page_cnt)
 
uint8_t plat_pldm_sensor_get_ina_dev ()
 

Variables

pldm_sensor_info plat_pldm_sensor_adc_table []
 
pldm_sensor_info plat_pldm_sensor_vr_table []
 
pldm_sensor_info plat_pldm_sensor_mb_temp_table []
 
pldm_sensor_info plat_pldm_sensor_cpu_table []
 
pldm_sensor_info plat_pldm_sensor_ina233_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 total_disable_sensors_count = 0
 
uint16_t * disable_sensors_id_table = NULL
 
uint16_t plat_pdr_entity_aux_names_table_size = 0
 

Function Documentation

◆ char16_strcat_char()

char16_t * char16_strcat_char ( char16_t dest,
char16_t  ch 
)
Here is the call graph for this function:

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

uint16_t plat_get_disabled_sensor_count ( )

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

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

◆ plat_init_pldm_sensor_table()

void plat_init_pldm_sensor_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)
Here is the call graph for this function:

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

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

◆ plat_pldm_disable_sensor()

void plat_pldm_disable_sensor ( sensor_cfg cfg)

◆ plat_pldm_sensor_change_cpu_bus()

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

◆ plat_pldm_sensor_change_dimm_dev()

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

◆ plat_pldm_sensor_change_ina_dev()

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

◆ plat_pldm_sensor_change_retimer_dev()

void plat_pldm_sensor_change_retimer_dev ( )

◆ plat_pldm_sensor_change_ssd_dev()

void plat_pldm_sensor_change_ssd_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_clear_vr_fault()

void plat_pldm_sensor_clear_vr_fault ( uint8_t  vr_addr,
uint8_t  vr_bus,
uint8_t  page_cnt 
)
Here is the call graph for this function:

◆ plat_pldm_sensor_get_ina_dev()

uint8_t plat_pldm_sensor_get_ina_dev ( )
Here is the call graph for this function:

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

◆ plat_pldm_sensor_load()

pldm_sensor_info * plat_pldm_sensor_load ( int  thread_id)

◆ plat_pldm_sensor_load_thread()

pldm_sensor_thread * plat_pldm_sensor_load_thread ( )

Variable Documentation

◆ disable_sensors_id_table

uint16_t* disable_sensors_id_table = NULL

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

pldm_sensor_info plat_pldm_sensor_adc_table[]

◆ plat_pldm_sensor_cpu_table

pldm_sensor_info plat_pldm_sensor_cpu_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_mb_temp_table

pldm_sensor_info plat_pldm_sensor_mb_temp_table[]

◆ plat_pldm_sensor_vr_table

pldm_sensor_info plat_pldm_sensor_vr_table[]

◆ total_disable_sensors_count

uint16_t total_disable_sensors_count = 0