OpenBIC
OpenSource Bridge-IC
plat_pldm_monitor.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  plat_pldm_event_sensor_num {
  PLDM_EVENT_ACCL_1 = 0x01 , PLDM_EVENT_ACCL_2 , PLDM_EVENT_ACCL_3 , PLDM_EVENT_ACCL_4 ,
  PLDM_EVENT_ACCL_5 , PLDM_EVENT_ACCL_6 , PLDM_EVENT_ACCL_7 , PLDM_EVENT_ACCL_8 ,
  PLDM_EVENT_ACCL_9 , PLDM_EVENT_ACCL_10 , PLDM_EVENT_ACCL_11 , PLDM_EVENT_ACCL_12 ,
  PLDM_EVENT_ACCL_PWR_CBL_1 , PLDM_EVENT_ACCL_PWR_CBL_2 , PLDM_EVENT_ACCL_PWR_CBL_3 , PLDM_EVENT_ACCL_PWR_CBL_4 ,
  PLDM_EVENT_ACCL_PWR_CBL_5 , PLDM_EVENT_ACCL_PWR_CBL_6 , PLDM_EVENT_ACCL_PWR_CBL_7 , PLDM_EVENT_ACCL_PWR_CBL_8 ,
  PLDM_EVENT_ACCL_PWR_CBL_9 , PLDM_EVENT_ACCL_PWR_CBL_10 , PLDM_EVENT_ACCL_PWR_CBL_11 , PLDM_EVENT_ACCL_PWR_CBL_12 ,
  PLDM_EVENT_FIO , PLDM_EVENT_ACCL_1_DEV_1 , PLDM_EVENT_ACCL_1_DEV_2 , PLDM_EVENT_ACCL_2_DEV_1 ,
  PLDM_EVENT_ACCL_2_DEV_2 , PLDM_EVENT_ACCL_3_DEV_1 , PLDM_EVENT_ACCL_3_DEV_2 , PLDM_EVENT_ACCL_4_DEV_1 ,
  PLDM_EVENT_ACCL_4_DEV_2 , PLDM_EVENT_ACCL_5_DEV_1 , PLDM_EVENT_ACCL_5_DEV_2 , PLDM_EVENT_ACCL_6_DEV_1 ,
  PLDM_EVENT_ACCL_6_DEV_2 , PLDM_EVENT_ACCL_7_DEV_1 , PLDM_EVENT_ACCL_7_DEV_2 , PLDM_EVENT_ACCL_8_DEV_1 ,
  PLDM_EVENT_ACCL_8_DEV_2 , PLDM_EVENT_ACCL_9_DEV_1 , PLDM_EVENT_ACCL_9_DEV_2 , PLDM_EVENT_ACCL_10_DEV_1 ,
  PLDM_EVENT_ACCL_10_DEV_2 , PLDM_EVENT_ACCL_11_DEV_1 , PLDM_EVENT_ACCL_11_DEV_2 , PLDM_EVENT_ACCL_12_DEV_1 ,
  PLDM_EVENT_ACCL_12_DEV_2 , PLDM_EVENT_SSD_1 = 0x80 , PLDM_EVENT_SSD_2 , PLDM_EVENT_SSD_3 ,
  PLDM_EVENT_SSD_4 , PLDM_EVENT_SENSOR_BIC = 0xFF , PLDM_EVENT_SENSOR_NIC_0 = 0x10 , PLDM_EVENT_SENSOR_NIC_1 = 0x11 ,
  PLDM_EVENT_SENSOR_NIC_2 = 0x12 , PLDM_EVENT_SENSOR_NIC_3 = 0x13 , PLDM_EVENT_SENSOR_NIC_4 = 0x14 , PLDM_EVENT_SENSOR_NIC_5 = 0x15 ,
  PLDM_EVENT_SENSOR_NIC_6 = 0x16 , PLDM_EVENT_SENSOR_NIC_7 = 0x17 , PLDM_EVENT_SENSOR_NIC_0_7 = 0x18 , PLDM_EVENT_SENSOR_E1S_0 = 0x20 ,
  PLDM_EVENT_SENSOR_E1S_1 = 0x21 , PLDM_EVENT_SENSOR_E1S_2 = 0x22 , PLDM_EVENT_SENSOR_E1S_3 = 0x23 , PLDM_EVENT_SENSOR_E1S_4 = 0x24 ,
  PLDM_EVENT_SENSOR_E1S_5 = 0x25 , PLDM_EVENT_SENSOR_E1S_6 = 0x26 , PLDM_EVENT_SENSOR_E1S_7 = 0x27 , PLDM_EVENT_SENSOR_E1S_8 = 0x28 ,
  PLDM_EVENT_SENSOR_E1S_9 = 0x29 , PLDM_EVENT_SENSOR_E1S_10 = 0x2A , PLDM_EVENT_SENSOR_E1S_11 = 0x2B , PLDM_EVENT_SENSOR_E1S_12 = 0x2C ,
  PLDM_EVENT_SENSOR_E1S_13 = 0x2D , PLDM_EVENT_SENSOR_E1S_14 = 0x2E , PLDM_EVENT_SENSOR_E1S_15 = 0x2F , PLDM_EVENT_SENSOR_PEX_0 = 0x40 ,
  PLDM_EVENT_SENSOR_PEX_1 = 0x41 , PLDM_EVENT_SENSOR_PEX_2 = 0x42 , PLDM_EVENT_SENSOR_PEX_3 = 0x43 , PLDM_EVENT_SENSOR_PEX = 0x44 ,
  PLDM_EVENT_SENSOR_VR_0 = 0x50 , PLDM_EVENT_SENSOR_VR_1 = 0x51 , PLDM_EVENT_SENSOR_VR = 0x52 , PLDM_EVENT_SENSOR_CPLD = 0x60 ,
  PLDM_EVENT_SENSOR_HSC = 0x62
}
 
enum  plat_pldm_device_state_set_offset {
  PLDM_STATE_SET_OFFSET_DEVICE_PRESENCE = 0 , PLDM_STATE_SET_OFFSET_DEVICE_STATUS = 1 , PLDM_STATE_SET_OFFSET_DEVICE_POWER_STATUS = 2 , PLDM_STATE_SET_OFFSET_DEVICE_NVME_STATUS = 3 ,
  PLDM_STATE_SET_OFFSET_DEVICE_PRESENCE = 0 , PLDM_STATE_SET_OFFSET_DEVICE_STATUS = 1 , PLDM_STATE_SET_OFFSET_DEVICE_POWER_STATUS = 2 , PLDM_STATE_SET_OFFSET_DEVICE_PRESENCE = 0 ,
  PLDM_STATE_SET_OFFSET_DEVICE_STATUS = 1 , PLDM_STATE_SET_OFFSET_DEVICE_PRESENCE = 0 , PLDM_STATE_SET_OFFSET_DEVICE_STATUS = 1
}
 

Functions

void plat_send_ssd_present_event (uint8_t ssd_id)
 
void plat_ssd_present_check ()
 
void plat_send_ssd_power_fault_event (uint8_t ssd_id, uint8_t status)
 

Enumeration Type Documentation

◆ plat_pldm_device_state_set_offset

Enumerator
PLDM_STATE_SET_OFFSET_DEVICE_PRESENCE 
PLDM_STATE_SET_OFFSET_DEVICE_STATUS 
PLDM_STATE_SET_OFFSET_DEVICE_POWER_STATUS 
PLDM_STATE_SET_OFFSET_DEVICE_NVME_STATUS 
PLDM_STATE_SET_OFFSET_DEVICE_PRESENCE 
PLDM_STATE_SET_OFFSET_DEVICE_STATUS 
PLDM_STATE_SET_OFFSET_DEVICE_POWER_STATUS 
PLDM_STATE_SET_OFFSET_DEVICE_PRESENCE 
PLDM_STATE_SET_OFFSET_DEVICE_STATUS 
PLDM_STATE_SET_OFFSET_DEVICE_PRESENCE 
PLDM_STATE_SET_OFFSET_DEVICE_STATUS 

◆ plat_pldm_event_sensor_num

Enumerator
PLDM_EVENT_ACCL_1 
PLDM_EVENT_ACCL_2 
PLDM_EVENT_ACCL_3 
PLDM_EVENT_ACCL_4 
PLDM_EVENT_ACCL_5 
PLDM_EVENT_ACCL_6 
PLDM_EVENT_ACCL_7 
PLDM_EVENT_ACCL_8 
PLDM_EVENT_ACCL_9 
PLDM_EVENT_ACCL_10 
PLDM_EVENT_ACCL_11 
PLDM_EVENT_ACCL_12 
PLDM_EVENT_ACCL_PWR_CBL_1 
PLDM_EVENT_ACCL_PWR_CBL_2 
PLDM_EVENT_ACCL_PWR_CBL_3 
PLDM_EVENT_ACCL_PWR_CBL_4 
PLDM_EVENT_ACCL_PWR_CBL_5 
PLDM_EVENT_ACCL_PWR_CBL_6 
PLDM_EVENT_ACCL_PWR_CBL_7 
PLDM_EVENT_ACCL_PWR_CBL_8 
PLDM_EVENT_ACCL_PWR_CBL_9 
PLDM_EVENT_ACCL_PWR_CBL_10 
PLDM_EVENT_ACCL_PWR_CBL_11 
PLDM_EVENT_ACCL_PWR_CBL_12 
PLDM_EVENT_FIO 
PLDM_EVENT_ACCL_1_DEV_1 
PLDM_EVENT_ACCL_1_DEV_2 
PLDM_EVENT_ACCL_2_DEV_1 
PLDM_EVENT_ACCL_2_DEV_2 
PLDM_EVENT_ACCL_3_DEV_1 
PLDM_EVENT_ACCL_3_DEV_2 
PLDM_EVENT_ACCL_4_DEV_1 
PLDM_EVENT_ACCL_4_DEV_2 
PLDM_EVENT_ACCL_5_DEV_1 
PLDM_EVENT_ACCL_5_DEV_2 
PLDM_EVENT_ACCL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OR_PEX_1 
PLDM_EVENT_SENSOR_PEX_2 
PLDM_EVENT_SENSOR_PEX_3 
PLDM_EVENT_SENSOR_PEX 
PLDM_EVENT_SENSOR_VR_0 
PLDM_EVENT_SENSOR_VR_1 
PLDM_EVENT_SENSOR_VR 
PLDM_EVENT_SENSOR_CPLD 
PLDM_EVENT_SENSOR_HSC 

Function Documentation

◆ plat_send_ssd_power_fault_event()

void plat_send_ssd_power_fault_event ( uint8_t  ssd_id,
uint8_t  status 
)
Here is the call graph for this function:

◆ plat_send_ssd_present_event()

void plat_send_ssd_present_event ( uint8_t  ssd_id)
Here is the call graph for this function:

◆ plat_ssd_present_check()

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