OpenBIC
OpenSource Bridge-IC
pldm_oem.h File Reference
#include "pldm.h"
#include <stdint.h>
Include dependency graph for pldm_oem.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _cmd_echo_req
 
struct  _cmd_echo_resp
 
struct  _ipmi_cmd_req
 
struct  _ipmi_cmd_resp
 
struct  pldm_oem_write_file_io_req
 
struct  pldm_oem_write_file_io_resp
 
struct  pldm_oem_read_file_data_info
 
struct  pldm_oem_read_file_attr_info
 
struct  pldm_oem_read_file_io_attr_req
 
struct  pldm_oem_read_file_io_data_req
 
struct  pldm_oem_read_file_io_attr_resp
 
struct  pldm_oem_read_file_io_data_resp
 
struct  pldm_addsel_data
 

Macros

#define IANA_LEN   0x03
 
#define OEM_EVENT_LEN   0x05
 
#define EVENT_ASSERTED   0x01
 
#define EVENT_DEASSERTED   0x00
 
#define PLDM_OEM_CMD_ECHO   0x00
 
#define PLDM_OEM_IPMI_BRIDGE   0x01
 
#define PLDM_OEM_WRITE_FILE_IO   0x02
 
#define PLDM_OEM_READ_FILE_IO   0x03
 
#define POWER_CONTROL_LEN   0x01
 

Enumerations

enum  cmd_type {
  POST_CODE = 0x00 , BIOS_VERSION = 0x01 , POWER_CONTROL = 0x02 , HTTP_BOOT = 0X03 ,
  APML_ALERT = 0x04 , EVENT_LOG = 0x05
}
 
enum  POWER_CONTROL_OPTION {
  SLED_CYCLE = 0x00 , SLOT_12V_CYCLE = 0x01 , SLOT_DC_CYCLE = 0x02 , NIC0_POWER_CYCLE = 0x03 ,
  NIC1_POWER_CYCLE = 0x04 , NIC2_POWER_CYCLE = 0x05 , NIC3_POWER_CYCLE = 0x06 , MAX_POWER_OPTION
}
 
enum  oem_event_type {
  CPU_THERMAL_TRIP = 0x00 , HSC_OCP , P12V_STBY_UV , PMALERT_ASSERT ,
  FAST_PROCHOT_ASSERT , FRB3_TIMER_EXPIRE , POWER_ON_SEQUENCE_FAIL , DIMM_PMIC_ERROR ,
  ADDC_DUMP , BMC_COMES_OUT_COLD_RESET , BIOS_FRB2_WDT_EXPIRE , BIC_POWER_FAIL ,
  CPU_POWER_FAIL , BMC_VBOOT_FAIL , BMC_REBOOT_REQUESTED , CHASSIS_POWER_ON_BY_NIC_INSERT ,
  BLADE_POWER_CYCLE_BY_BLADE_BTN , CHASSIS_POWER_CYCLE_BY_SLED_BTN , HSC_FAULT , SYS_THROTTLE ,
  VR_FAULT , SYS_MANAGEMENT_ERROR , POST_COMPLETED , FAN_ERROR ,
  HDT_PRSNT_ASSERT , PLTRST_ASSERT , APML_ALERT_ASSERT
}
 
enum  vr_event_source {
  PVDDCR_CPU0 = 0x00 , PVDDCR_SOC , PVDDCR_CPU1 , PVDDIO ,
  PVDD11_S3
}
 
enum  READ_FILE_OPTION { READ_FILE_ATTR , READ_FILE_DATA }
 

Functions

struct _cmd_echo_req __attribute__ ((packed))
 
uint8_t check_iana (const uint8_t *iana)
 
uint8_t set_iana (uint8_t *buf, uint8_t buf_len)
 
uint8_t send_event_log_to_bmc (struct pldm_addsel_data msg)
 
uint8_t pldm_oem_handler_query (uint8_t code, void **ret_fn)
 

Variables

uint8_t iana [IANA_LEN]
 
uint8_t first_data
 
uint8_t completion_code
 
uint8_t netfn_lun
 
uint8_t cmd
 
uint8_t ipmi_comp_code
 
uint8_t cmd_code
 
uint32_t data_length
 
uint8_t messages []
 
uint8_t transfer_flag
 
uint16_t offset
 
uint16_t size
 
uint32_t crc32
 
uint8_t read_option
 
uint8_t read_info_length
 
struct pldm_oem_read_file_data_info data
 
struct pldm_oem_read_file_attr_info attr
 
uint8_t read_info []
 
uint8_t event_type
 
uint8_t assert_type
 
uint8_t event_data_1
 
uint8_t event_data_2
 
uint8_t event_data_3
 

Macro Definition Documentation

◆ EVENT_ASSERTED

#define EVENT_ASSERTED   0x01

◆ EVENT_DEASSERTED

#define EVENT_DEASSERTED   0x00

◆ IANA_LEN

#define IANA_LEN   0x03

◆ OEM_EVENT_LEN

#define OEM_EVENT_LEN   0x05

◆ PLDM_OEM_CMD_ECHO

#define PLDM_OEM_CMD_ECHO   0x00

◆ PLDM_OEM_IPMI_BRIDGE

#define PLDM_OEM_IPMI_BRIDGE   0x01

◆ PLDM_OEM_READ_FILE_IO

#define PLDM_OEM_READ_FILE_IO   0x03

◆ PLDM_OEM_WRITE_FILE_IO

#define PLDM_OEM_WRITE_FILE_IO   0x02

◆ POWER_CONTROL_LEN

#define POWER_CONTROL_LEN   0x01

Enumeration Type Documentation

◆ cmd_type

enum cmd_type
Enumerator
POST_CODE 
BIOS_VERSION 
POWER_CONTROL 
HTTP_BOOT 
APML_ALERT 
EVENT_LOG 

◆ oem_event_type

Enumerator
CPU_THERMAL_TRIP 
HSC_OCP 
P12V_STBY_UV 
PMALERT_ASSERT 
FAST_PROCHOT_ASSERT 
FRB3_TIMER_EXPIRE 
POWER_ON_SEQUENCE_FAIL 
DIMM_PMIC_ERROR 
ADDC_DUMP 
BMC_COMES_OUT_COLD_RESET 
BIOS_FRB2_WDT_EXPIRE 
BIC_POWER_FAIL 
CPU_POWER_FAIL 
BMC_VBOOT_FAIL 
BMC_REBOOT_REQUESTED 
CHASSIS_POWER_ON_BY_NIC_INSERT 
BLADE_POWER_CYCLE_BY_BLADE_BTN 
CHASSIS_POWER_CYCLE_BY_SLED_BTN 
HSC_FAULT 
SYS_THROTTLE 
VR_FAULT 
SYS_MANAGEMENT_ERROR 
POST_COMPLETED 
FAN_ERROR 
HDT_PRSNT_ASSERT 
PLTRST_ASSERT 
APML_ALERT_ASSERT 

◆ POWER_CONTROL_OPTION

Enumerator
SLED_CYCLE 
SLOT_12V_CYCLE 
SLOT_DC_CYCLE 
NIC0_POWER_CYCLE 
NIC1_POWER_CYCLE 
NIC2_POWER_CYCLE 
NIC3_POWER_CYCLE 
MAX_POWER_OPTION 

◆ READ_FILE_OPTION

Enumerator
READ_FILE_ATTR 
READ_FILE_DATA 

◆ vr_event_source

Enumerator
PVDDCR_CPU0 
PVDDCR_SOC 
PVDDCR_CPU1 
PVDDIO 
PVDD11_S3 

Function Documentation

◆ __attribute__()

struct _cmd_echo_req __attribute__ ( (packed)  )

◆ check_iana()

uint8_t check_iana ( const uint8_t *  iana)

◆ pldm_oem_handler_query()

uint8_t pldm_oem_handler_query ( uint8_t  code,
void **  ret_fn 
)

◆ send_event_log_to_bmc()

uint8_t send_event_log_to_bmc ( struct pldm_addsel_data  msg)

◆ set_iana()

uint8_t set_iana ( uint8_t *  buf,
uint8_t  buf_len 
)

Variable Documentation

◆ assert_type

uint8_t assert_type

◆ attr

◆ cmd

uint8_t cmd

◆ cmd_code

uint8_t cmd_code

◆ completion_code

uint8_t completion_code

◆ crc32

uint32_t crc32

◆ data

◆ data_length

uint32_t data_length

◆ event_data_1

uint8_t event_data_1

◆ event_data_2

uint8_t event_data_2

◆ event_data_3

uint8_t event_data_3

◆ event_type

uint8_t event_type

◆ first_data

uint8_t first_data

◆ iana

uint8_t iana

◆ ipmi_comp_code

uint8_t ipmi_comp_code

◆ messages

uint8_t messages[]

◆ netfn_lun

uint8_t netfn_lun

◆ offset

uint16_t offset

◆ read_info

uint8_t read_info

◆ read_info_length

uint8_t read_info_length

◆ read_option

uint8_t read_option

◆ size

uint16_t size

◆ transfer_flag

uint8_t transfer_flag