diff options
author | Jonny Svärd <jonny.svaerd@arm.com> | 2021-01-14 19:53:17 +0100 |
---|---|---|
committer | Jonny Svärd <jonny.svaerd@arm.com> | 2021-01-26 15:42:49 +0100 |
commit | 7c24c770be3b3e25822cf7c45619ee20ed61c172 (patch) | |
tree | 1d04dd3708100e444e3f8c1e19e61899d75a61f7 /kernel/uapi/ethosu.h | |
parent | 9d8d92cc3ce5fd5ced815a7334b8d500eec42a27 (diff) | |
download | ethos-u-linux-driver-stack-7c24c770be3b3e25822cf7c45619ee20ed61c172.tar.gz |
Improve mailbox message handling
Introduce a 32b magic for each message. Verify the magic for
all incoming messages.
Add reset function - in case of protocol error, effectively
reset/empty the incoming queue.
Add an error message type and message
Add version request/response
Verify payload length of responses (when applicable)
Change-Id: I8aadd4012024492533d52e2cdb38630fce5c36e2
Diffstat (limited to 'kernel/uapi/ethosu.h')
-rw-r--r-- | kernel/uapi/ethosu.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/uapi/ethosu.h b/kernel/uapi/ethosu.h index 8f870c9..0127033 100644 --- a/kernel/uapi/ethosu.h +++ b/kernel/uapi/ethosu.h @@ -39,6 +39,7 @@ #define ETHOSU_IOWR(nr, type) _IOWR(ETHOSU_IOCTL_BASE, nr, type) #define ETHOSU_IOCTL_PING ETHOSU_IO(0x00) +#define ETHOSU_IOCTL_VERSION_REQ ETHOSU_IO(0x01) #define ETHOSU_IOCTL_BUFFER_CREATE ETHOSU_IOR(0x10, \ struct ethosu_uapi_buffer_create) #define ETHOSU_IOCTL_BUFFER_SET ETHOSU_IOR(0x11, \ |