OpenBIC
OpenSource Bridge-IC
plat_pldm_monitor.h File Reference
#include "pldm_monitor.h"
#include "plat_sensor_table.h"
Include dependency graph for plat_pldm_monitor.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MAX_STATE_EFFECTER_IDX   187
 
#define PLDM_PLATFORM_OEM_LED_EFFECTER_STATE_FIELD_COUNT   1
 
#define PLDM_PLATFORM_OEM_NIC_TYPE_EFFECTER_STATE_FIELD_COUNT   1
 

Enumerations

enum  pldm_plat_effecter_id_high_byte {
  PLAT_EFFECTER_ID_GPIO_HIGH_BYTE = (0xFF << 8) , PLAT_EFFECTER_ID_GPIO_HIGH_BYTE = (0xFF << 8) , PLAT_EFFECTER_ID_LED_HIGH_BYTE = (0xE0 << 8) , PLAT_EFFECTER_ID_NIC_TYPE_HIGH_BYTE = (0xD0 << 8) ,
  PLAT_EFFECTER_ID_GPIO_HIGH_BYTE = (0xFF << 8) , PLAT_EFFECTER_ID_GPIO_HIGH_BYTE = (0xFF << 8) , PLAT_EFFECTER_ID_GPIO_HIGH_BYTE = (0xFF << 8) , PLAT_EFFECTER_ID_GPIO_HIGH_BYTE = (0xFF << 8)
}
 
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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SOR_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_bic_state_set_offset { PLDM_STATE_SET_OFFSET_BIC_BOOT_RESTART_CAUSE = 0 , PLDM_STATE_SET_OFFSET_BIC_BOOT_RESTART_CAUSE = 0 }
 
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
}
 
enum  plat_effecter_states_set_led_value { EFFECTER_STATE_LED_VALUE_UNKNOWN = 0x00 , EFFECTER_STATE_LED_VALUE_ON = 0x01 , EFFECTER_STATE_LED_VALUE_OFF = 0x02 , EFFECTER_STATE_LED_VALUE_MAX }
 
enum  plat_effecter_states_nic_type_value {
  EFFECTER_STATE_NIC_TYPE_UNKNOWN = 0x00 , EFFECTER_STATE_NIC_TYPE_CX7 = 0x01 , EFFECTER_STATE_NIC_TYPE_CX7_IB = 0x02 , EFFECTER_STATE_NIC_TYPE_THOR2 = 0x03 ,
  EFFECTER_STATE_NIC_TYPE_MAX
}
 
enum  plat_pldm_effecter_id {
  PLAT_EFFECTER_ID_POWER_LED = 0x00 , PLAT_EFFECTER_ID_FAULT_LED = 0x01 , PLAT_EFFECTER_ID_LED_E1S_0 = 0x10 , PLAT_EFFECTER_ID_LED_E1S_1 = 0x11 ,
  PLAT_EFFECTER_ID_LED_E1S_2 = 0x12 , PLAT_EFFECTER_ID_LED_E1S_3 = 0x13 , PLAT_EFFECTER_ID_LED_E1S_4 = 0x14 , PLAT_EFFECTER_ID_LED_E1S_5 = 0x15 ,
  PLAT_EFFECTER_ID_LED_E1S_6 = 0x16 , PLAT_EFFECTER_ID_LED_E1S_7 = 0x17 , PLAT_EFFECTER_ID_LED_E1S_8 = 0x18 , PLAT_EFFECTER_ID_LED_E1S_9 = 0x19 ,
  PLAT_EFFECTER_ID_LED_E1S_10 = 0x1A , PLAT_EFFECTER_ID_LED_E1S_11 = 0x1B , PLAT_EFFECTER_ID_LED_E1S_12 = 0x1C , PLAT_EFFECTER_ID_LED_E1S_13 = 0x1D ,
  PLAT_EFFECTER_ID_LED_E1S_14 = 0x1E , PLAT_EFFECTER_ID_LED_E1S_15 = 0x1F , PLAT_EFFECTER_ID_NIC_TYPE = 0x00 , PLAT_PLDM_EFFECTER_ID_UART_SWITCH = 0x0003 ,
  PLAT_PLDM_EFFECTER_ID_SPI_REINIT = 0x0102 , PLAT_PLDM_EFFECTER_ID_REINIT_I3C_HUB = 0x0101 , PLAT_PLDM_EFFECTER_ID_UART_SWITCH = 0x0003 , PLAT_PLDM_EFFECTER_ID_SPI1_REINIT = 0x0102 ,
  PLAT_PLDM_EFFECTER_ID_SPI2_REINIT = 0x0103 , PLAT_PLDM_EFFECTER_ID_CXL_READY = 0x0104
}
 

Functions

void ssd_alert_check (uint8_t group)
 
void ssd_present_check ()
 
void nic_present_check ()
 
void pal_load_pldm_effcter_table ()
 
void vr_alert_check ()
 
void vr_status_mfr_specific_check_handler ()
 

Variables

uint8_t e1s_prsnt_pin [4][4]
 
uint8_t nic_prsnt_pin []
 
uint8_t pex_sensor_num_table []
 
uint8_t e1s_sensor_table [SSD_MAX_NUMBER]
 
struct pldm_state_effecter_info plat_state_effecter_table []
 

Macro Definition Documentation

◆ MAX_STATE_EFFECTER_IDX

#define MAX_STATE_EFFECTER_IDX   187

◆ PLDM_PLATFORM_OEM_LED_EFFECTER_STATE_FIELD_COUNT

#define PLDM_PLATFORM_OEM_LED_EFFECTER_STATE_FIELD_COUNT   1

◆ PLDM_PLATFORM_OEM_NIC_TYPE_EFFECTER_STATE_FIELD_COUNT

#define PLDM_PLATFORM_OEM_NIC_TYPE_EFFECTER_STATE_FIELD_COUNT   1

Enumeration Type Documentation

◆ plat_effecter_states_nic_type_value

Enumerator
EFFECTER_STATE_NIC_TYPE_UNKNOWN 
EFFECTER_STATE_NIC_TYPE_CX7 
EFFECTER_STATE_NIC_TYPE_CX7_IB 
EFFECTER_STATE_NIC_TYPE_THOR2 
EFFECTER_STATE_NIC_TYPE_MAX 

◆ plat_effecter_states_set_led_value

Enumerator
EFFECTER_STATE_LED_VALUE_UNKNOWN 
EFFECTER_STATE_LED_VALUE_ON 
EFFECTER_STATE_LED_VALUE_OFF 
EFFECTER_STATE_LED_VALUE_MAX 

◆ plat_pldm_bic_state_set_offset

Enumerator
PLDM_STATE_SET_OFFSET_BIC_BOOT_RESTART_CAUSE 
PLDM_STATE_SET_OFFSET_BIC_BOOT_RESTART_CAUSE 

◆ 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_effecter_id

Enumerator
PLAT_EFFECTER_ID_POWER_LED 
PLAT_EFFECTER_ID_FAULT_LED 
PLAT_EFFECTER_ID_LED_E1S_0 
PLAT_EFFECTER_ID_LED_E1S_1 
PLAT_EFFECTER_ID_LED_E1S_2 
PLAT_EFFECTER_ID_LED_E1S_3 
PLAT_EFFECTER_ID_LED_E1S_4 
PLAT_EFFECTER_ID_LED_E1S_5 
PLAT_EFFECTER_ID_LED_E1S_6 
PLAT_EFFECTER_ID_LED_E1S_7 
PLAT_EFFECTER_ID_LED_E1S_8 
PLAT_EFFECTER_ID_LED_E1S_9 
PLAT_EFFECTER_ID_LED_E1S_10 
PLAT_EFFECTER_ID_LED_E1S_11 
PLAT_EFFECTER_ID_LED_E1S_12 
PLAT_EFFECTER_ID_LED_E1S_13 
PLAT_EFFECTER_ID_LED_E1S_14 
PLAT_EFFECTER_ID_LED_E1S_15 
PLAT_EFFECTER_ID_NIC_TYPE 
PLAT_PLDM_EFFECTER_ID_UART_SWITCH 
PLAT_PLDM_EFFECTER_ID_SPI_REINIT 
PLAT_PLDM_EFFECTER_ID_REINIT_I3C_HUB 
PLAT_PLDM_EFFECTER_ID_UART_SWITCH 
PLAT_PLDM_EFFECTER_ID_SPI1_REINIT 
PLAT_PLDM_EFFECTER_ID_SPI2_REINIT 
PLAT_PLDM_EFFECTER_ID_CXL_READY 

◆ 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_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_EVENT_SENSOR_E1S_7 
PLDM_EVENT_SENSOR_E1S_8 
PLDM_EVENT_SENSOR_E1S_9 
PLDM_EVENT_SENSOR_E1S_10 
PLDM_EVENT_SENSOR_E1S_11 
PLDM_EVENT_SENSOR_E1S_12 
PLDM_EVENT_SENSOR_E1S_13 
PLDM_EVENT_SENSOR_E1S_14 
PLDM_EVENT_SENSOR_E1S_15 
PLDM_EVENT_SENSOR_PEX_0 
PLDM_EVENT_SENSOR_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 

◆ pldm_plat_effecter_id_high_byte

Enumerator
PLAT_EFFECTER_ID_GPIO_HIGH_BYTE 
PLAT_EFFECTER_ID_GPIO_HIGH_BYTE 
PLAT_EFFECTER_ID_LED_HIGH_BYTE 
PLAT_EFFECTER_ID_NIC_TYPE_HIGH_BYTE 
PLAT_EFFECTER_ID_GPIO_HIGH_BYTE 
PLAT_EFFECTER_ID_GPIO_HIGH_BYTE 
PLAT_EFFECTER_ID_GPIO_HIGH_BYTE 
PLAT_EFFECTER_ID_GPIO_HIGH_BYTE 

Function Documentation

◆ nic_present_check()

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

◆ pal_load_pldm_effcter_table()

void pal_load_pldm_effcter_table ( )

◆ ssd_alert_check()

void ssd_alert_check ( uint8_t  group)

◆ ssd_present_check()

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

◆ vr_alert_check()

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

◆ vr_status_mfr_specific_check_handler()

void vr_status_mfr_specific_check_handler ( )

Variable Documentation

◆ e1s_prsnt_pin

uint8_t e1s_prsnt_pin[4][4]
extern

◆ e1s_sensor_table

uint8_t e1s_sensor_table[SSD_MAX_NUMBER]
extern

◆ nic_prsnt_pin

uint8_t nic_prsnt_pin[]
extern

◆ pex_sensor_num_table

uint8_t pex_sensor_num_table[]
extern

◆ plat_state_effecter_table

struct pldm_state_effecter_info plat_state_effecter_table[]
extern