OpenBIC
OpenSource Bridge-IC
plat_pldm_monitor.c File Reference
#include <logging/log.h>
#include <stdlib.h>
#include <device.h>
#include "sensor.h"
#include "hal_gpio.h"
#include "pldm.h"
#include "plat_gpio.h"
#include "plat_i2c.h"
#include "plat_sensor_table.h"
#include "plat_pldm_monitor.h"
Include dependency graph for plat_pldm_monitor.c:

Functions

 LOG_MODULE_REGISTER (plat_pldm_monitor)
 
void plat_pldm_load_state_effecter_table (void)
 
void plat_pldm_dev_driver_handler (const uint8_t *buf, uint16_t len, uint8_t *resp, uint16_t *resp_len, uint16_t effecter_id)
 
void plat_pldm_switch_uart (const uint8_t *buf, uint16_t len, uint8_t *resp, uint16_t *resp_len)
 
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)
 

Variables

struct pldm_state_effecter_info plat_state_effecter_table []
 

Function Documentation

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( plat_pldm_monitor  )

◆ plat_pldm_dev_driver_handler()

void plat_pldm_dev_driver_handler ( const uint8_t *  buf,
uint16_t  len,
uint8_t *  resp,
uint16_t *  resp_len,
uint16_t  effecter_id 
)
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_pldm_switch_uart()

void plat_pldm_switch_uart ( const uint8_t *  buf,
uint16_t  len,
uint8_t *  resp,
uint16_t *  resp_len 
)
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,
},
.entity_type = PLDM_ENTITY_OTHER_BUS,
},
.entity_type = PLDM_ENTITY_DEVICE_DRIVER,
},
}
#define PLDM_PLATFORM_OEM_AST1030_GPIO_PIN_NUM_MAX
Definition: pldm_monitor.h:66
@ PLDM_ENTITY_OTHER_BUS
Definition: pldm_monitor.h:198
@ PLDM_ENTITY_IO_CONTROLLER
Definition: pldm_monitor.h:197
@ PLDM_ENTITY_DEVICE_DRIVER
Definition: pldm_monitor.h:195
@ PLAT_PLDM_EFFECTER_ID_UART_SWITCH
Definition: plat_pldm_monitor.h:31
@ PLAT_PLDM_EFFECTER_ID_SPI_REINIT
Definition: plat_pldm_monitor.h:32