TT Zephyr Platforms 18.11.99
Tenstorrent Firmware
Loading...
Searching...
No Matches
event.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2024 Tenstorrent AI ULC
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef INCLUDE_TENSTORRENT_LIB_EVENT_H_
8#define INCLUDE_TENSTORRENT_LIB_EVENT_H_
9
10#include <stdint.h>
11
12#include <zephyr/kernel.h>
13#include <zephyr/sys/util.h>
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
36
38#define TT_EVENT_ANY UINT32_MAX
39
51
75
76#ifdef __cplusplus
77}
78#endif
79
80#endif
uint32_t tt_event_wait(uint32_t events, k_timeout_t timeout)
Wait for one or more events to be posted to Tenstorrent firmware.
Definition event.c:18
uint32_t tt_event_post(uint32_t events)
Post an event to Tenstorrent firmware.
Definition event.c:13
tt_event
Event IDs for Tenstorrent firmware.
Definition event.h:25
@ TT_EVENT_FAN_RPM_TO_SMC
20ms: fan RPM sense & send to smc
Definition event.h:31
@ TT_EVENT_THERM_TRIP
ASIC thermal trip detected.
Definition event.h:26
@ TT_EVENT_PGOOD
PGOOD (power good) state change.
Definition event.h:29
@ TT_EVENT_BOARD_POWER_TO_SMC
20ms: board power sense & send to smc
Definition event.h:30
@ TT_EVENT_WATCHDOG_EXPIRED
Watchdog timeout expired.
Definition event.h:27
@ TT_EVENT_LOGS_TO_SMC
20ms: send log chunk to smc
Definition event.h:33
@ TT_EVENT_CM2DM_POLL
20ms: CM2DM message polling
Definition event.h:32
@ TT_EVENT_WAKE
Wake firmware for a generic reason.
Definition event.h:34
@ TT_EVENT_PERST
PERST (pcie reset) signal asserted.
Definition event.h:28
#define BIT(n)
__UINT32_TYPE__ uint32_t