diff options
author | Kristofer Jonsson <kristofer.jonsson@arm.com> | 2022-03-14 16:09:12 +0100 |
---|---|---|
committer | Kristofer Jonsson <kristofer.jonsson@arm.com> | 2022-03-23 13:16:25 +0100 |
commit | f5b98c965c51def4f63d7fb198f70180e195b2e8 (patch) | |
tree | d8457be3deed68b1c729b998c0720e9a5a63ecd9 /kernel/ethosu_mailbox.h | |
parent | 3c6a260a705a668b5ff8e8159f04c257273fb458 (diff) | |
download | ethos-u-linux-driver-stack-f5b98c965c51def4f63d7fb198f70180e195b2e8.tar.gz |
Kernel watchdog timeout
Implement kernel watchdog that detects when firmware becomes
unresponsive.
Change-Id: I5c5b58a56a2ce629e1fd7cabae83b61823239ea6
Diffstat (limited to 'kernel/ethosu_mailbox.h')
-rw-r--r-- | kernel/ethosu_mailbox.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/kernel/ethosu_mailbox.h b/kernel/ethosu_mailbox.h index f004f92..956685b 100644 --- a/kernel/ethosu_mailbox.h +++ b/kernel/ethosu_mailbox.h @@ -39,6 +39,7 @@ struct ethosu_buffer; struct ethosu_device; struct ethosu_core_msg; struct ethosu_core_queue; +struct ethosu_watchdog; struct resource; typedef void (*ethosu_mailbox_cb)(void *user_arg); @@ -54,6 +55,7 @@ struct ethosu_mailbox { struct mbox_chan *tx; ethosu_mailbox_cb callback; void *user_arg; + struct ethosu_watchdog *wdog; }; /**************************************************************************** @@ -70,7 +72,8 @@ int ethosu_mailbox_init(struct ethosu_mailbox *mbox, struct resource *in_queue, struct resource *out_queue, ethosu_mailbox_cb callback, - void *user_arg); + void *user_arg, + struct ethosu_watchdog *wdog); /** * ethosu_mailbox_deinit() - Deinitialize mailbox |