aboutsummaryrefslogtreecommitdiff
path: root/kernel/ethosu_mailbox.h
diff options
context:
space:
mode:
authorKristofer Jonsson <kristofer.jonsson@arm.com>2023-01-04 17:09:28 +0100
committerKristofer Jonsson <kristofer.jonsson@arm.com>2023-02-02 16:11:45 +0100
commitb42bc0b95dcc5fac60d52e956056fd46bfe2beb9 (patch)
tree3e739e1d609a669cdfef21ffb302fcfb92423ada /kernel/ethosu_mailbox.h
parenta70bfde653b44763e2f4d230d30aa8382c1ac5f9 (diff)
downloadethos-u-linux-driver-stack-b42bc0b95dcc5fac60d52e956056fd46bfe2beb9.tar.gz
Removing watchdog and reset
Removing watchdog and firmware reset as a preparations for the migrations to rpmsg. Change-Id: Ic1053e3f4301ecadbde8c59dbaed437625a0a5ea
Diffstat (limited to 'kernel/ethosu_mailbox.h')
-rw-r--r--kernel/ethosu_mailbox.h16
1 files changed, 2 insertions, 14 deletions
diff --git a/kernel/ethosu_mailbox.h b/kernel/ethosu_mailbox.h
index 26367f6..c3f5579 100644
--- a/kernel/ethosu_mailbox.h
+++ b/kernel/ethosu_mailbox.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2020-2022 Arm Limited.
+ * Copyright 2020-2023 Arm Limited and/or its affiliates
*
* This program is free software and is provided to you under the terms of the
* GNU General Public License version 2 as published by the Free Software
@@ -40,7 +40,6 @@ 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);
@@ -57,14 +56,11 @@ struct ethosu_mailbox {
ethosu_mailbox_cb callback;
void *user_arg;
struct idr msg_idr;
- struct ethosu_watchdog *wdog;
- unsigned ping_count;
};
struct ethosu_mailbox_msg {
int id;
void (*fail)(struct ethosu_mailbox_msg *msg);
- int (*resend)(struct ethosu_mailbox_msg *msg);
};
/****************************************************************************
@@ -81,8 +77,7 @@ int ethosu_mailbox_init(struct ethosu_mailbox *mbox,
struct resource *in_queue,
struct resource *out_queue,
ethosu_mailbox_cb callback,
- void *user_arg,
- struct ethosu_watchdog *wdog);
+ void *user_arg);
/**
* ethosu_mailbox_deinit() - Deinitialize mailbox
@@ -149,13 +144,6 @@ struct ethosu_mailbox_msg *ethosu_mailbox_find(struct ethosu_mailbox *mbox,
void ethosu_mailbox_fail(struct ethosu_mailbox *mbox);
/**
- * ethosu_mailbox_resend() - Resend mailbox messages
- *
- * Call resend() callback on all messages in pending list.
- */
-void ethosu_mailbox_resend(struct ethosu_mailbox *mbox);
-
-/**
* ethosu_mailbox_reset() - Reset to end of queue
*/
void ethosu_mailbox_reset(struct ethosu_mailbox *mbox);