OpenBIC
OpenSource Bridge-IC
plat_pldm_fw_update.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <logging/log.h>
#include "libutil.h"
#include "sensor.h"
#include "pldm.h"
#include "pldm_firmware_update.h"
#include "mctp_ctrl.h"
#include "power_status.h"
#include "util_spi.h"
#include "plat_pldm_fw_update.h"
#include "plat_i2c.h"
#include "plat_gpio.h"
#include "plat_pldm_sensor.h"
#include "mp2971.h"
#include "mp2891.h"
#include "raa229621.h"
#include "raa228249.h"
#include "plat_class.h"
#include "pldm_sensor.h"
#include "mp29816a.h"
#include "plat_hook.h"
Include dependency graph for plat_pldm_fw_update.c:

Classes

struct  si_compnt_mapping_sensor
 

Typedefs

typedef struct si_compnt_mapping_sensor si_compnt_mapping_sensor
 

Functions

 LOG_MODULE_REGISTER (plat_fwupdate)
 
uint8_t plat_pldm_query_device_identifiers (const uint8_t *buf, uint16_t len, uint8_t *resp, uint16_t *resp_len)
 
void load_pldmupdate_comp_config (void)
 
void clear_pending_version (uint8_t activate_method)
 
bool find_sensor_id_and_name_by_firmware_comp_id (uint8_t comp_identifier, uint8_t *sensor_id, char *sensor_name)
 
int get_si_vr_compnt_mapping_sensor_table_count (void)
 

Variables

si_compnt_mapping_sensor si_vr_compnt_mapping_sensor_table []
 
pldm_fw_update_info_t PLDMUPDATE_FW_CONFIG_TABLE []
 

Typedef Documentation

◆ si_compnt_mapping_sensor

Function Documentation

◆ clear_pending_version()

void clear_pending_version ( uint8_t  activate_method)

◆ find_sensor_id_and_name_by_firmware_comp_id()

bool find_sensor_id_and_name_by_firmware_comp_id ( uint8_t  comp_identifier,
uint8_t *  sensor_id,
char *  sensor_name 
)

◆ get_si_vr_compnt_mapping_sensor_table_count()

int get_si_vr_compnt_mapping_sensor_table_count ( void  )

◆ load_pldmupdate_comp_config()

void load_pldmupdate_comp_config ( void  )

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( plat_fwupdate  )

◆ plat_pldm_query_device_identifiers()

uint8_t plat_pldm_query_device_identifiers ( const uint8_t *  buf,
uint16_t  len,
uint8_t *  resp,
uint16_t *  resp_len 
)

Variable Documentation

◆ PLDMUPDATE_FW_CONFIG_TABLE

pldm_fw_update_info_t PLDMUPDATE_FW_CONFIG_TABLE[]

◆ si_vr_compnt_mapping_sensor_table

si_compnt_mapping_sensor si_vr_compnt_mapping_sensor_table[]
Initial value:
= {
}
@ SI_COMPNT_P0V895_PEX
Definition: plat_pldm_fw_update.h:26
@ SI_COMPNT_P0V825_A1
Definition: plat_pldm_fw_update.h:27
@ SENSOR_NUM_VR_ASIC_P0V895_PEX_TEMP_C
Definition: plat_pldm_sensor.h:46
@ SENSOR_NUM_VR_ASIC_P0V825_A1_TEMP_C
Definition: plat_pldm_sensor.h:54