![]() |
TT-System-Firmware APIs 19.15.99
Tenstorrent Firmware
|
#include <errno.h>#include <zephyr/drivers/misc/tt_grendel_filter.h>#include <err.h>#include <firewall.h>
Macros | |
| #define | LOG_ERR(...) |
| #define | LOG_INF(...) |
| #define | LOG_MODULE_REGISTER(...) |
| #define | CONFIG_TT_GRENDEL_FILTER_LOG_LEVEL 0 |
| #define | FILTER_ADDRESS_MASK FIREWALL_ADDR_MASK |
| #define | FILTER_MAX_ENTRIES 16U |
Functions | |
| int | tt_grendel_filter_enable (uint32_t bank, uint32_t entry, uint32_t hsio_tile, uint64_t start, uint64_t end, struct tt_grendel_filter_flags flags) |
| Enable a filter entry for an inclusive address range. | |
| int | tt_grendel_filter_disable (uint32_t bank, uint32_t entry, uint32_t hsio_tile) |
| Disable a filter entry. | |
| #define CONFIG_TT_GRENDEL_FILTER_LOG_LEVEL 0 |
| #define FILTER_ADDRESS_MASK FIREWALL_ADDR_MASK |
| #define FILTER_MAX_ENTRIES 16U |
| #define LOG_ERR | ( | ... | ) |
| #define LOG_INF | ( | ... | ) |
| #define LOG_MODULE_REGISTER | ( | ... | ) |
Disable a filter entry.
| bank | SiVal filter_t bank. |
| entry | Filter entry index. |
| hsio_tile | HSIO/SMN tile (0 for SMC banks). |
| 0 | Entry disabled. |
| -EINVAL | Invalid entry or SiVal parameters. |
| -EIO | Unmapped SiVal error. |
| int tt_grendel_filter_enable | ( | uint32_t | bank, |
| uint32_t | entry, | ||
| uint32_t | hsio_tile, | ||
| uint64_t | start, | ||
| uint64_t | end, | ||
| struct tt_grendel_filter_flags | flags ) |
Enable a filter entry for an inclusive address range.
| bank | SiVal filter_t bank. |
| entry | Filter entry index. |
| hsio_tile | HSIO/SMN tile (0 for SMC banks). |
| start | First address admitted by the entry. |
| end | Last address admitted by the entry. |
| flags | Accesses admitted by the entry. |
| 0 | Entry enabled. |
| -EINVAL | Invalid entry, range, flags, or SiVal parameters. |
| -EIO | Unmapped SiVal error. |