OpenBIC
OpenSource Bridge-IC
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <logging/log.h>
#include "libutil.h"
#include "util_spi.h"
#include "hal_jtag.h"
#include "sensor.h"
#include "pldm_firmware_update.h"
#include "plat_pldm_fw_update.h"
#include "plat_ipmi.h"
#include "plat_gpio.h"
#include "plat_i2c.h"
#include "plat_sensor_table.h"
#include "plat_hook.h"
#include "plat_class.h"
#include "lattice.h"
#include "plat_dev.h"
#include "util_sys.h"
#include "pex89000.h"
#include "plat_fru.h"
#include "mp2985.h"
#include "plat_pldm_device_identifier.h"
Macros | |
#define | CPLD_BUS_5_ADDR 0x40 |
#define | CPLD_USER_CODE_LENGTH 4 |
#define | PLDM_DOWNSTREAM_START_FLAG 1 |
#define | PLDM_PROGESS_PERCENT_DEFAULT 0 |
#define | PLDM_PROGESS_COMPLETE 100 |
#define | DISABLE_SENSOR_POLLING_DELAY_MS 10 |
#define | PLDM_PLAT_ERR_CODE_NO_POWER_ON 8 |
Functions | |
LOG_MODULE_REGISTER (plat_fwupdate) | |
uint8_t | pldm_atm_apply_work (void *arg) |
void | load_pldmupdate_comp_config (void) |
void | clear_pending_version (uint8_t activate_method) |
uint8_t | plat_pldm_query_device_identifiers (const uint8_t *buf, uint16_t len, uint8_t *resp, uint16_t *resp_len) |
uint8_t | plat_pldm_query_downstream_identifiers (const uint8_t *buf, uint16_t len, uint8_t *resp, uint16_t *resp_len) |
uint16_t | plat_find_update_info_work (uint16_t comp_id) |
Variables | |
pldm_fw_update_info_t | PLDMUPDATE_FW_CONFIG_TABLE [] |
#define CPLD_BUS_5_ADDR 0x40 |
#define CPLD_USER_CODE_LENGTH 4 |
#define DISABLE_SENSOR_POLLING_DELAY_MS 10 |
#define PLDM_DOWNSTREAM_START_FLAG 1 |
#define PLDM_PLAT_ERR_CODE_NO_POWER_ON 8 |
#define PLDM_PROGESS_COMPLETE 100 |
#define PLDM_PROGESS_PERCENT_DEFAULT 0 |
void clear_pending_version | ( | uint8_t | activate_method | ) |
void load_pldmupdate_comp_config | ( | void | ) |
LOG_MODULE_REGISTER | ( | plat_fwupdate | ) |
uint16_t plat_find_update_info_work | ( | uint16_t | comp_id | ) |
uint8_t plat_pldm_query_device_identifiers | ( | const uint8_t * | buf, |
uint16_t | len, | ||
uint8_t * | resp, | ||
uint16_t * | resp_len | ||
) |
uint8_t plat_pldm_query_downstream_identifiers | ( | const uint8_t * | buf, |
uint16_t | len, | ||
uint8_t * | resp, | ||
uint16_t * | resp_len | ||
) |
uint8_t pldm_atm_apply_work | ( | void * | arg | ) |
pldm_fw_update_info_t PLDMUPDATE_FW_CONFIG_TABLE[] |