|
enum | pldm_platform_monitor_commands {
PLDM_MONITOR_CMD_CODE_GET_SENSOR_READING = 0x11
, PLDM_MONITOR_CMD_CODE_GET_STATE_SENSOR_READING = 0x21
, PLDM_MONITOR_CMD_CODE_SET_EVENT_RECEIVER = 0x04
, PLDM_MONITOR_CMD_CODE_PLATFORM_EVENT_MESSAGE = 0x0A
,
PLDM_MONITOR_CMD_CODE_EVENT_MESSAGE_BUFF_SIZE = 0x0D
, PLDM_MONITOR_CMD_CODE_SET_STATE_EFFECTER_STATES = 0x39
, PLDM_MONITOR_CMD_CODE_GET_STATE_EFFECTER_STATES = 0x3A
, PLDM_MONITOR_CMD_CODE_GET_PDR_INFO = 0x50
,
PLDM_MONITOR_CMD_CODE_GET_PDR = 0x51
} |
|
enum | pldm_sensor_readings_data_type {
PLDM_SENSOR_DATA_SIZE_UINT8
, PLDM_SENSOR_DATA_SIZE_SINT8
, PLDM_SENSOR_DATA_SIZE_UINT16
, PLDM_SENSOR_DATA_SIZE_SINT16
,
PLDM_SENSOR_DATA_SIZE_UINT32
, PLDM_SENSOR_DATA_SIZE_SINT32
} |
|
enum | pldm_sensor_operational_state {
PLDM_SENSOR_ENABLED
, PLDM_SENSOR_DISABLED
, PLDM_SENSOR_UNAVAILABLE
, PLDM_SENSOR_STATUSUNKOWN
,
PLDM_SENSOR_FAILED
, PLDM_SENSOR_INITIALIZING
, PLDM_SENSOR_SHUTTINGDOWN
, PLDM_SENSOR_INTEST
} |
|
enum | pldm_effecter_operational_state {
PLDM_EFFECTER_ENABLED_UPDATEPENDING
, PLDM_EFFECTER_ENABLED_NOUPDATEPENDING
, PLDM_EFFECTER_DISABLED
, PLDM_EFFECTER_UNAVAILABLE
,
PLDM_EFFECTER_STATUSUNKNOWN
, PLDM_EFFECTER_FAILED
, PLDM_EFFECTER_INITIALIZING
, PLDM_EFFECTER_SHUTTINGDOWN
,
PLDM_EFFECTER_INTEST
} |
|
enum | set_request { PLDM_NO_CHANGE = 0x00
, PLDM_REQUEST_SET = 0x01
, PLDM_SET_REQUEST_MAX
} |
|
enum | oem_effecter_states_gpio_direction { EFFECTER_STATE_GPIO_DIRECTION_UNKNOWN = 0x00
, EFFECTER_STATE_GPIO_DIRECTION_INPUT = 0x01
, EFFECTER_STATE_GPIO_DIRECTION_OUTPUT = 0x02
, EFFECTER_STATE_GPIO_DIRECTION_MAX
} |
|
enum | oem_effecter_states_gpio_value { EFFECTER_STATE_GPIO_VALUE_UNKNOWN = 0x00
, EFFECTER_STATE_GPIO_VALUE_LOW = 0x01
, EFFECTER_STATE_GPIO_VALUE_HIGH = 0x02
, EFFECTER_STATE_GPIO_VALUE_MAX
} |
|
enum | oem_effecter_states_power_status {
EFFECTER_STATE_POWER_STATUS_UNKNOWN = 0x00
, EFFECTER_STATE_POWER_STATUS_ON = 0x01
, EFFECTER_STATE_POWER_STATUS_OFF = 0x02
, EFFECTER_STATE_POWER_STATUS_CYCLE = 0x03
,
EFFECTER_STATE_POWER_STATUS_RESET = 0x04
, EFFECTER_STATE_POWER_STATUS_GRACEFUL_SHUTDOWN = 0x05
, EFFECTER_STATE_POWER_STATUS_MAX
} |
|
enum | oem_effecter_states_reinit_i3c_hub { EFFECTER_STATE_I3C_HUB_REINIT = 0x01
, EFFECTER_STATE_I3C_HUB_MAX
} |
|
enum | oem_effecter_states_reinit_spi { EFFECTER_STATE_SPI_REINIT = 0x01
, EFFECTER_STATE_SPI_REINIT_MAX
} |
|
enum | pldm_sensor_present_state {
PLDM_SENSOR_UNKNOWN = 0x0
, PLDM_SENSOR_NORMAL = 0x01
, PLDM_SENSOR_WARNING = 0x02
, PLDM_SENSOR_CRITICAL = 0x03
,
PLDM_SENSOR_FATAL = 0x04
, PLDM_SENSOR_LOWERWARNING = 0x05
, PLDM_SENSOR_LOWERCRITICAL = 0x06
, PLDM_SENSOR_LOWERFATAL = 0x07
,
PLDM_SENSOR_UPPERWARNING = 0x08
, PLDM_SENSOR_UPPERCRITICAL = 0x09
, PLDM_SENSOR_UPPERFATAL = 0x0a
} |
|
enum | pldm_sensor_event_message_enable {
PLDM_NO_EVENT_GENERATION
, PLDM_EVENTS_DISABLED
, PLDM_EVENTS_ENABLED
, PLDM_OP_EVENTS_ONLY_ENABLED
,
PLDM_STATE_EVENTS_ONLY_ENABLED
} |
|
enum | pldm_platform_completion_codes {
PLDM_PLATFORM_INVALID_SENSOR_ID = 0x80
, PLDM_PLATFORM_REARM_UNAVAILABLE_IN_PRESENT_STATE = 0x81
, PLDM_PLATFORM_INVALID_PROTOCOL_TYPE = 0x80
, PLDM_PLATFORM_ENABLE_METHOD_NOT_SUPPORTED = 0x81
,
PLDM_PLATFORM_HEARTBEAT_FREQUENCY_TOO_HIGH = 0x82
, PLDM_PLATFORM_INVALID_EFFECTER_ID = 0x80
, PLDM_PLATFORM_INVALID_STATE_VALUE = 0x81
, PLDM_PLATFORM_UNSUPPORTED_EFFECTERSTATE = 0x82
} |
|
enum | pldm_oem_platform_completion_codes { PLDM_OEM_GPIO_UNSUPPORT_RANGE = 0x83
, PLDM_OEM_GPIO_EFFECTER_INVALID_SET_VALUE = 0x84
, PLDM_OEM_GPIO_EFFECTER_VALUE_UNKNOWN = 0x85
} |
|
enum | pldm_entity_types { PLDM_ENTITY_DEVICE_DRIVER = 35
, PLDM_ENTITY_SUB_CHASSIS = 46
, PLDM_ENTITY_IO_CONTROLLER = 145
, PLDM_ENTITY_OTHER_BUS = 160
} |
|
enum | pldm_event_types {
PLDM_SENSOR_EVENT = 0x00
, PLDM_EFFECTER_EVENT = 0x01
, PLDM_REDFISH_TASK_EXECUTED_EVENT = 0x02
, PLDM_REDFISH_MESSAGE_EVENT = 0x03
,
PLDM_PDR_REPOSITORY_CHG_EVENT = 0x04
, PLDM_MESSAGE_POLL_EVENT = 0x05
, PLDM_HEARTBEAT_TIMER_ELAPSED_EVENT = 0x06
} |
|
enum | pldm_sensor_event_class { PLDM_SENSOR_OP_STATE
, PLDM_STATE_SENSOR_STATE
, PLDM_NUMERIC_SENSOR_STATE
} |
|
enum | pldm_effecter_event_class { PLDM_EFFECTER_OP_STATE
} |
|
enum | pldm_platform_event_status {
PLDM_EVENT_NO_LOGGING = 0x00
, PLDM_EVENT_LOGGING_DISABLED = 0x01
, PLDM_EVENT_LOG_FULL = 0x02
, PLDM_EVENT_ACCEPTED_FOR_LOGGING = 0x03
,
PLDM_EVENT_LOGGED = 0x04
, PLDM_EVENT_LOGGING_REJECTED = 0x05
} |
|
enum | pldm_event_message_global_enable { PLDM_EVENT_MESSAGE_GLOBAL_DISABLE
, PLDM_EVENT_MESSAGE_GLOBAL_ENABLE_ASYNC
, PLDM_EVENT_MESSAGE_GLOBAL_ENABLE_POLLING
, PLDM_EVENT_MESSAGE_GLOBAL_ENABLE_ASYNC_KEEP_ALIVE
} |
|
enum | pldm_get_pdr_transfer_flag { PLDM_TRANSFER_FLAG_START = 0x00
, PLDM_TRANSFER_FLAG_MIDDLE = 0x01
, PLDM_TRANSFER_FLAG_END = 0x04
, PLDM_TRANSFER_FLAG_START_AND_END = 0x05
} |
|
enum | pldm_effecter_id_high_byte { PLDM_EFFECTER_ID_FUNC_HIGH_BYTE = 0x00
} |
|
enum | pldm_effecter_id_low_byte { PLDM_EFFECTER_ID_ADDSEL_LOW_BYTE = 0x05
} |
|
|
struct pldm_get_sensor_reading_req | __attribute__ ((packed)) |
|
uint8_t | pldm_monitor_handler_query (uint8_t code, void **ret_fn) |
|
uint8_t | pldm_platform_event_message_req (void *mctp_inst, mctp_ext_params ext_params, uint8_t event_class, const uint8_t *event_data, uint8_t event_data_length) |
|
uint16_t | pldm_platform_monitor_read (void *mctp_inst, mctp_ext_params ext_params, pldm_platform_monitor_commands_t cmd, uint8_t *req, uint16_t req_len, uint8_t *rbuf, uint16_t rbuf_len) |
|
uint8_t | pldm_send_platform_event (uint8_t event_class, uint16_t id, uint8_t ext_class, const uint8_t *event_data, uint8_t event_data_length) |
|
void | set_effecter_state_gpio_handler (const uint8_t *buf, uint16_t len, uint8_t *resp, uint16_t *resp_len, uint8_t gpio_pin) |
|
void | get_effecter_state_gpio_handler (const uint8_t *buf, uint16_t len, uint8_t *resp, uint16_t *resp_len, uint8_t gpio_pin) |
|
void | pldm_spi_reinit (const char *spi_dev_str, 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) |
|
void | plat_pldm_set_effecter_state_host_power_control (const uint8_t *buf, uint16_t len, uint8_t *resp, uint16_t *resp_len) |
|
void | plat_pldm_set_effecter_state_reinit_i3c_hub (const uint8_t *buf, uint16_t len, uint8_t *resp, uint16_t *resp_len) |
|
void | pldm_assign_gpio_effecter_id () |
|
void | pldm_load_state_effecter_table (uint16_t state_effecter_index) |
|
void | plat_pldm_load_state_effecter_table () |
|
struct pldm_state_effecter_info * | find_state_effecter_info (uint16_t effecter_id) |
|
uint8_t | pldm_event_len_check (uint8_t *buf, uint16_t len) |
| PLDM event length check function. More...
|
|
float | pldm_sensor_cal (uint8_t *buf, uint8_t len, pldm_sensor_readings_data_type_t data_type, pldm_sensor_pdr_parm parm) |
|
uint8_t | pldm_send_set_state_effecter_states_req (struct pldm_set_state_effecter_states_req *req, void *mctp_inst, mctp_ext_params ext_params) |
|
uint8_t | pldm_fill_addsel_req (struct pldm_set_state_effecter_states_req *req, uint16_t effecter_id, uint8_t device_type, uint8_t board_info, uint8_t event_type) |
|