diff options
author | Per Åstrand <per.astrand@arm.com> | 2022-05-18 09:18:27 +0200 |
---|---|---|
committer | Per Åstrand <per.astrand@arm.com> | 2022-05-24 13:40:28 +0000 |
commit | 7f9a4e36e573eb8e36c61711ce0fa8f885fe2b38 (patch) | |
tree | b4aa885f1c76d2270f75dbd1e753666d9a8100c5 | |
parent | 32660f9ff9608dc595f4bdf3944a3ceb37d67a79 (diff) | |
download | ethos-u-linux-driver-stack-7f9a4e36e573eb8e36c61711ce0fa8f885fe2b38.tar.gz |
Update uapi definition for capability request
ETHOSU_IOCTL_CAPABILITIES_REQ is a read ioctl with a parameter.
Change-Id: Ife20d4de86351053600e6c6ba174dc40896f0aef
-rw-r--r-- | kernel/uapi/ethosu.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/uapi/ethosu.h b/kernel/uapi/ethosu.h index 033afe6..49e8da7 100644 --- a/kernel/uapi/ethosu.h +++ b/kernel/uapi/ethosu.h @@ -44,7 +44,8 @@ namespace EthosU { #define ETHOSU_IOCTL_PING ETHOSU_IO(0x00) #define ETHOSU_IOCTL_VERSION_REQ ETHOSU_IO(0x01) -#define ETHOSU_IOCTL_CAPABILITIES_REQ ETHOSU_IO(0x02) +#define ETHOSU_IOCTL_CAPABILITIES_REQ ETHOSU_IOR(0x02, \ + struct ethosu_uapi_device_capabilities) #define ETHOSU_IOCTL_BUFFER_CREATE ETHOSU_IOR(0x10, \ struct ethosu_uapi_buffer_create) #define ETHOSU_IOCTL_BUFFER_SET ETHOSU_IOR(0x11, \ @@ -199,7 +200,7 @@ struct ethosu_uapi_device_hw_cfg { }; /** - * struct ethosu_uapi_capabilities - Device capabilities + * struct ethosu_uapi_device_capabilities - Device capabilities * @hw_id: Hardware identification * @hw_cfg: Hardware configuration * @driver_patch_rev: Driver version patch |