![]() |
TT-System-Firmware APIs 19.15.99
Tenstorrent Firmware
|
#include <zephyr/device.h>#include <zephyr/kernel.h>#include <zephyr/logging/log.h>#include <zephyr/pmci/mctp/mctp_i3c_target.h>#include <libmctp.h>#include <libpldm/base.h>#include <errno.h>#include <string.h>#include "pldm_base.h"#include "pldm_mctp_responder.h"#include "pldm_pdr.h"#include "pldm_platform.h"#include <zephyr/drivers/pmci/pldm/pldm_oem_handler.h>
Data Structures | |
| struct | tt_pldm_rx_work_item |
| struct | tt_pldm_mctp_responder_config |
| struct | tt_pldm_mctp_responder_data |
Macros | |
| #define | DT_DRV_COMPAT tenstorrent_pldm_mctp_responder |
| #define | TT_PLDM_MSG_TYPE_PLDM 0x01U |
| #define | TT_PLDM_MAX_MESSAGE_LEN 64U |
| #define | TT_PLDM_RX_QUEUE_DEPTH 8U |
| #define | TT_PLDM_RX_WORKQ_STACK_SIZE 1024U |
| #define | TT_PLDM_MCTP_BINDING(inst) |
| #define | TT_PLDM_MCTP_RESPONDER_DEFINE(inst) |
Functions | |
| LOG_MODULE_REGISTER (tt_pldm_mctp_rsp, CONFIG_TT_APP_LOG_LEVEL) | |
| static int | tt_pldm_build_response (const struct device *dev, const struct pldm_msg *req_msg, size_t req_pldm_len, struct pldm_msg *resp_msg, size_t *resp_pldm_len) |
| static void | tt_pldm_mctp_process_rx_message (const struct device *dev, uint8_t eid, uint8_t msg_tag, const uint8_t *rx_buf, size_t len) |
| static void | tt_pldm_mctp_rx_work_handler (struct k_work *work) |
| bool | dmc_mctp_transport_ready (void) |
| const struct device * | tt_pldm_mctp_responder_oem_handler_get (const struct device *dev) |
| Return the OEM handler device associated with a PLDM MCTP responder. | |
| static void | tt_pldm_mctp_rx_message (uint8_t eid, bool tag_owner, uint8_t msg_tag, void *cb_data, void *msg, size_t len) |
| static int | tt_pldm_mctp_responder_init (const struct device *dev) |
Variables | |
| static bool | g_dmc_mctp_transport_ready |
| #define DT_DRV_COMPAT tenstorrent_pldm_mctp_responder |
| #define TT_PLDM_MAX_MESSAGE_LEN 64U |
| #define TT_PLDM_MCTP_BINDING | ( | inst | ) |
| #define TT_PLDM_MCTP_RESPONDER_DEFINE | ( | inst | ) |
| #define TT_PLDM_MSG_TYPE_PLDM 0x01U |
| #define TT_PLDM_RX_QUEUE_DEPTH 8U |
| #define TT_PLDM_RX_WORKQ_STACK_SIZE 1024U |
| bool dmc_mctp_transport_ready | ( | void | ) |
| LOG_MODULE_REGISTER | ( | tt_pldm_mctp_rsp | , |
| CONFIG_TT_APP_LOG_LEVEL | ) |
|
static |
|
static |
|
static |
Return the OEM handler device associated with a PLDM MCTP responder.
| dev | A tenstorrent,pldm-mctp-responder device instance. |
|
static |
|
static |
|
static |