From 7f9a4e36e573eb8e36c61711ce0fa8f885fe2b38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Per=20=C3=85strand?= Date: Wed, 18 May 2022 09:18:27 +0200 Subject: Update uapi definition for capability request ETHOSU_IOCTL_CAPABILITIES_REQ is a read ioctl with a parameter. Change-Id: Ife20d4de86351053600e6c6ba174dc40896f0aef --- kernel/uapi/ethosu.h | 5 +++-- 1 file 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 -- cgit v1.2.1