OpenBIC
OpenSource Bridge-IC
plat_pldm_monitor.c File Reference
#include <logging/log.h>
#include "sensor.h"
#include "hal_gpio.h"
#include "pldm.h"
#include "pmbus.h"
#include "plat_fru.h"
#include "plat_gpio.h"
#include "plat_sensor_table.h"
#include "plat_pldm_monitor.h"
#include "plat_class.h"
#include "plat_mctp.h"
#include "util_sys.h"
#include "plat_dev.h"
#include "plat_ipmi.h"
Include dependency graph for plat_pldm_monitor.c:

Functions

 LOG_MODULE_REGISTER (plat_pldm_monitor)
 
void plat_pldm_load_state_effecter_table (void)
 
uint8_t plat_pldm_set_state_effecter_state_handler (const uint8_t *buf, uint16_t len, uint8_t *resp, uint16_t *resp_len, struct pldm_state_effecter_info *info_p)
 
uint8_t plat_pldm_get_state_effecter_state_handler (const uint8_t *buf, uint16_t len, uint8_t *resp, uint16_t *resp_len, struct pldm_state_effecter_info *info_p)
 
void plat_send_accl_present_event (uint8_t card_id, uint8_t option)
 
void plat_accl_present_check ()
 
void plat_accl_power_cable_present_check ()
 
void plat_fio_present_check ()
 
void plat_accl_power_good_fail_event (uint8_t card_id, uint8_t currenr_state)
 
void plat_accl_cable_power_good_fail_event (uint8_t card_id, uint8_t status)
 
void plat_asic_nvme_status_event (uint8_t card_id, uint8_t device_id, uint8_t status)
 
void plat_send_event_pre_work ()
 
uint8_t plat_set_effecter_states_req (uint8_t device_type, uint8_t board_info, uint8_t event_type)
 

Variables

struct pldm_state_effecter_info plat_state_effecter_table []
 

Function Documentation

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( plat_pldm_monitor  )

◆ plat_accl_cable_power_good_fail_event()

void plat_accl_cable_power_good_fail_event ( uint8_t  card_id,
uint8_t  status 
)
Here is the call graph for this function:

◆ plat_accl_power_cable_present_check()

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

◆ plat_accl_power_good_fail_event()

void plat_accl_power_good_fail_event ( uint8_t  card_id,
uint8_t  currenr_state 
)
Here is the call graph for this function:

◆ plat_accl_present_check()

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

◆ plat_asic_nvme_status_event()

void plat_asic_nvme_status_event ( uint8_t  card_id,
uint8_t  device_id,
uint8_t  status 
)
Here is the call graph for this function:

◆ plat_fio_present_check()

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

◆ plat_pldm_get_state_effecter_state_handler()

uint8_t plat_pldm_get_state_effecter_state_handler ( const uint8_t *  buf,
uint16_t  len,
uint8_t *  resp,
uint16_t *  resp_len,
struct pldm_state_effecter_info info_p 
)
Here is the call graph for this function:

◆ plat_pldm_load_state_effecter_table()

void plat_pldm_load_state_effecter_table ( void  )

◆ plat_pldm_set_state_effecter_state_handler()

uint8_t plat_pldm_set_state_effecter_state_handler ( const uint8_t *  buf,
uint16_t  len,
uint8_t *  resp,
uint16_t *  resp_len,
struct pldm_state_effecter_info info_p 
)
Here is the call graph for this function:

◆ plat_send_accl_present_event()

void plat_send_accl_present_event ( uint8_t  card_id,
uint8_t  option 
)
Here is the call graph for this function:

◆ plat_send_event_pre_work()

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

◆ plat_set_effecter_states_req()

uint8_t plat_set_effecter_states_req ( uint8_t  device_type,
uint8_t  board_info,
uint8_t  event_type 
)
Here is the call graph for this function:

Variable Documentation

◆ plat_state_effecter_table

struct pldm_state_effecter_info plat_state_effecter_table[]
Initial value:
= {
.entity_type = PLDM_ENTITY_IO_CONTROLLER,
},
}
#define PLDM_PLATFORM_OEM_AST1030_GPIO_PIN_NUM_MAX
Definition: pldm_monitor.h:66
@ PLDM_ENTITY_IO_CONTROLLER
Definition: pldm_monitor.h:197