![]() |
TT-System-Firmware APIs 19.16.99
Tenstorrent Firmware
|
#include <errno.h>#include <string.h>#include <zephyr/device.h>#include <zephyr/devicetree.h>#include <zephyr/drivers/i3c.h>#include <zephyr/drivers/i3c/target_device.h>#include <zephyr/drivers/misc/tt_bundle_loader.h>#include <zephyr/drivers/misc/tt_d2d.h>#include <zephyr/drivers/misc/tt_grendel_i3c.h>#include <zephyr/kernel.h>#include <zephyr/logging/log.h>#include <zephyr/sys/byteorder.h>#include <zephyr/sys/sys_io.h>
Data Structures | |
| struct | tt_grendel_i3c_target_config |
| struct | tt_grendel_i3c_target_data |
Macros | |
| #define | DT_DRV_COMPAT tenstorrent_grendel_i3c_target |
| #define | TT_GRENDEL_I3C_D2D_FW_ADDR TT_D2D_OCCP_STAGE_ADDR |
| #define | TT_GRENDEL_I3C_TARGET_GET(node_id, prop, idx) |
| #define | TT_GRENDEL_I3C_TARGET_DEFINE(inst) |
Functions | |
| LOG_MODULE_REGISTER (tt_grendel_i3c_target, CONFIG_TT_GRENDEL_I3C_TARGET_LOG_LEVEL) | |
| BUILD_ASSERT (CONFIG_TT_GRENDEL_I3C_TARGET_INIT_PRIO > CONFIG_TT_D2D_INIT_PRIO, "TT_GRENDEL_I3C_TARGET_INIT_PRIO must be higher than TT_D2D_INIT_PRIO") | |
| static int | tt_grendel_i3c_handle_d2d_init (const struct tt_grendel_i3c_target_config *cfg, const struct tt_grendel_i3c_d2d_req *req) |
| static int | tt_grendel_i3c_handle_d2d_start (const struct tt_grendel_i3c_target_config *cfg, const struct tt_grendel_i3c_d2d_req *req) |
| static int | tt_grendel_i3c_dispatch (const struct tt_grendel_i3c_target_config *cfg, uint8_t opcode, const uint8_t *payload) |
| static void | tt_grendel_i3c_target_work (struct k_work *work) |
| static int | tt_grendel_i3c_write_received (struct i3c_target_config *target_cfg, uint8_t val) |
| static int | tt_grendel_i3c_stop (struct i3c_target_config *target_cfg) |
| static int | tt_grendel_i3c_target_init (const struct device *dev) |
Variables | |
| static const struct i3c_target_callbacks | tt_grendel_i3c_target_callbacks |
| #define DT_DRV_COMPAT tenstorrent_grendel_i3c_target |
| #define TT_GRENDEL_I3C_D2D_FW_ADDR TT_D2D_OCCP_STAGE_ADDR |
| #define TT_GRENDEL_I3C_TARGET_DEFINE | ( | inst | ) |
| #define TT_GRENDEL_I3C_TARGET_GET | ( | node_id, | |
| prop, | |||
| idx ) |
| BUILD_ASSERT | ( | CONFIG_TT_GRENDEL_I3C_TARGET_INIT_PRIO | , |
| CONFIG_TT_D2D_INIT_PRIO | , | ||
| "TT_GRENDEL_I3C_TARGET_INIT_PRIO must be higher than TT_D2D_INIT_PRIO" | ) |
| LOG_MODULE_REGISTER | ( | tt_grendel_i3c_target | , |
| CONFIG_TT_GRENDEL_I3C_TARGET_LOG_LEVEL | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |