![]() |
TT-System-Firmware APIs 19.10.99
Tenstorrent Firmware
|
#include <stdbool.h>#include <stdint.h>#include <zephyr/device.h>#include <zephyr/drivers/reset.h>#include <zephyr/kernel.h>#include <zephyr/sys/sys_io.h>
Data Structures | |
| struct | tt_bh_reset_config |
| struct | tt_bh_reset_data |
Macros | |
| #define | DT_DRV_COMPAT tenstorrent_bh_reset |
| #define | TT_BH_RESET_MASK_FROM_NRESETS(_n) |
| #define | TT_BH_RESET_MASK(_n) |
| #define | TT_BH_NUM_RESET_SPECIFIERS(_n) |
| #define | TT_BH_RESET_MASK_DEFINE(_n) |
| #define | TT_BH_RESET_DEFINE(_n) |
Functions | |
| static bool | tt_bh_reset_is_valid_id (const struct device *dev, uint32_t id) |
| static int | tt_bh_reset_status (const struct device *dev, uint32_t id, uint8_t *status) |
| static int | tt_bh_reset_line_assert (const struct device *dev, uint32_t id) |
| static int | tt_bh_reset_line_deassert (const struct device *dev, uint32_t id) |
| static int | tt_bh_reset_line_toggle (const struct device *dev, uint32_t id) |
| static int | tt_bh_reset_init (const struct device *dev) |
| DT_INST_FOREACH_STATUS_OKAY (TT_BH_RESET_DEFINE) | |
Variables | |
| static const struct reset_driver_api | tt_bh_reset_api |
| #define DT_DRV_COMPAT tenstorrent_bh_reset |
| #define TT_BH_NUM_RESET_SPECIFIERS | ( | _n | ) |
| #define TT_BH_RESET_DEFINE | ( | _n | ) |
| #define TT_BH_RESET_MASK | ( | _n | ) |
| #define TT_BH_RESET_MASK_DEFINE | ( | _n | ) |
| #define TT_BH_RESET_MASK_FROM_NRESETS | ( | _n | ) |
| DT_INST_FOREACH_STATUS_OKAY | ( | TT_BH_RESET_DEFINE | ) |
|
static |
|
static |