aboutsummaryrefslogtreecommitdiff
path: root/kernel/ethosu_mailbox.h
diff options
context:
space:
mode:
authorMikael Olsson <mikael.olsson@arm.com>2023-08-03 12:41:48 +0200
committerMikael Olsson <mikael.olsson@arm.com>2023-08-09 15:09:38 +0200
commit7c843dc763a175269e810510af57b658ae81c529 (patch)
treee43f8f848e642abb6d448a9ba6399007fbf81bc7 /kernel/ethosu_mailbox.h
parentfab31ebedaa0d2a3026ccb2de453d33780aed7c6 (diff)
downloadethos-u-linux-driver-stack-7c843dc763a175269e810510af57b658ae81c529.tar.gz
Add protocol version check during probing
To ensure that the Linux kernel NPU driver and the firmware used are compatible, the NPU driver will now request and verify the protocol version when setting up the device during the probing. Change-Id: I13bca96bf6f98ca90dc79e11ae637c269c2a5eec Signed-off-by: Mikael Olsson <mikael.olsson@arm.com>
Diffstat (limited to 'kernel/ethosu_mailbox.h')
-rw-r--r--kernel/ethosu_mailbox.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/ethosu_mailbox.h b/kernel/ethosu_mailbox.h
index ea4409f..a3e2c14 100644
--- a/kernel/ethosu_mailbox.h
+++ b/kernel/ethosu_mailbox.h
@@ -140,11 +140,12 @@ int ethosu_mailbox_ping(struct ethosu_mailbox *mbox);
int ethosu_mailbox_pong(struct ethosu_mailbox *mbox);
/**
- * ethosu_mailbox_version_response - Send version request
+ * ethosu_mailbox_version_request() - Send protocol version request
*
* Return: 0 on succes, else error code
*/
-int ethosu_mailbox_version_request(struct ethosu_mailbox *mbox);
+int ethosu_mailbox_version_request(struct ethosu_mailbox *mbox,
+ struct ethosu_mailbox_msg *msg);
/**
* ethosu_mailbox_capabilities_request() - Send capabilities request