![]() |
TT-System-Firmware APIs 19.15.99
Tenstorrent Firmware
|
#include <errno.h>#include <stdatomic.h>#include <tenstorrent/uart_tt_virt.h>#include <zephyr/device.h>#include <zephyr/drivers/uart.h>#include <zephyr/kernel.h>#include <zephyr/logging/log.h>#include <zephyr/sys/util.h>
Data Structures | |
| struct | uart_tt_virt_config |
| struct | uart_tt_virt_data |
Macros | |
| #define | DT_DRV_COMPAT tenstorrent_vuart |
| #define | UART_TT_VIRT_DESC_SIZE(_inst) |
| #define | UART_TT_VIRT_DEFINE_AREA(_inst) |
| #define | UART_TT_VIRT_CHECK_REGION(_inst) |
| #define | UART_TT_VIRT_PTR(_inst) |
| #define | DEFINE_UART_TT_VIRT(_inst) |
Functions | |
| LOG_MODULE_REGISTER (uart_tt_virt, CONFIG_UART_LOG_LEVEL) | |
| static int | uart_tt_virt_err_check (const struct device *dev) |
| static int | uart_tt_virt_poll_in (const struct device *dev, unsigned char *p_char) |
| void | uart_tt_virt_poll_out (const struct device *dev, unsigned char out_char) |
| static | DEVICE_API (uart, uart_tt_virt_api) |
| __weak void | uart_tt_virt_init_callback (const struct device *dev, size_t inst) |
| __weak volatile struct tt_vuart * | uart_tt_virt_lookup_callback (size_t inst) |
| volatile struct tt_vuart * | uart_tt_virt_get (const struct device *dev) |
| static bool | uart_tt_virt_adoptable (const struct uart_tt_virt_config *config, volatile const struct tt_vuart *vuart) |
| static int | uart_tt_virt_init (const struct device *dev) |
| #define DEFINE_UART_TT_VIRT | ( | _inst | ) |
| #define DT_DRV_COMPAT tenstorrent_vuart |
| #define UART_TT_VIRT_CHECK_REGION | ( | _inst | ) |
| #define UART_TT_VIRT_DEFINE_AREA | ( | _inst | ) |
| #define UART_TT_VIRT_DESC_SIZE | ( | _inst | ) |
| #define UART_TT_VIRT_PTR | ( | _inst | ) |
|
static |
| LOG_MODULE_REGISTER | ( | uart_tt_virt | , |
| CONFIG_UART_LOG_LEVEL | ) |
|
static |
|
static |
|
static |
| __weak void uart_tt_virt_init_callback | ( | const struct device * | dev, |
| size_t | inst ) |
| __weak volatile struct tt_vuart * uart_tt_virt_lookup_callback | ( | size_t | inst | ) |