![]() |
TT-System-Firmware APIs 19.10.99
Tenstorrent Firmware
|
Clock control emulation driver for native simulation. More...
#include <zephyr/device.h>#include <zephyr/drivers/clock_control.h>#include <zephyr/sys/util.h>#include <zephyr/logging/log.h>
Data Structures | |
| struct | clock_control_emul_data |
| struct | clock_control_emul_config |
Macros | |
| #define | DT_DRV_COMPAT tenstorrent_clock_control_emul |
| #define | CLOCK_CONTROL_EMUL_DEVICE(inst) |
Functions | |
| LOG_MODULE_REGISTER (clock_control_emul, CONFIG_CLOCK_CONTROL_LOG_LEVEL) | |
| static int | clock_control_emul_on (const struct device *dev, clock_control_subsys_t sys) |
| static int | clock_control_emul_off (const struct device *dev, clock_control_subsys_t sys) |
| static int | clock_control_emul_get_rate (const struct device *dev, clock_control_subsys_t sys, uint32_t *rate) |
| static int | clock_control_emul_set_rate (const struct device *dev, clock_control_subsys_t sys, clock_control_subsys_rate_t rate) |
| static enum clock_control_status | clock_control_emul_get_status (const struct device *dev, clock_control_subsys_t sys) |
| static int | clock_control_emul_init (const struct device *dev) |
Variables | |
| static const struct clock_control_driver_api | clock_control_emul_api |
Clock control emulation driver for native simulation.
| #define CLOCK_CONTROL_EMUL_DEVICE | ( | inst | ) |
| #define DT_DRV_COMPAT tenstorrent_clock_control_emul |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| LOG_MODULE_REGISTER | ( | clock_control_emul | , |
| CONFIG_CLOCK_CONTROL_LOG_LEVEL | ) |
|
static |