aboutsummaryrefslogtreecommitdiff
path: root/kernel/include/uapi/ethosu.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/include/uapi/ethosu.h')
-rw-r--r--kernel/include/uapi/ethosu.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/kernel/include/uapi/ethosu.h b/kernel/include/uapi/ethosu.h
index 58b9c34..699ef7e 100644
--- a/kernel/include/uapi/ethosu.h
+++ b/kernel/include/uapi/ethosu.h
@@ -194,15 +194,30 @@ struct ethosu_uapi_device_hw_id {
};
/**
+ * enum ethosu_dev_type - NPU device type
+ * @ETHOSU_DEV_UNKNOWN: Unknown NPU device type
+ * @ETHOSU_DEV_SUBSYSTEM: NPU managed by a subsystem communicated with via a
+ * mailbox
+ * @ETHOSU_DEV_DIRECT: NPU directly managed by the kernel driver
+ */
+enum ethosu_dev_type {
+ ETHOSU_DEV_UNKNOWN = 0,
+ ETHOSU_DEV_SUBSYSTEM,
+ ETHOSU_DEV_DIRECT,
+};
+
+/**
* struct ethosu_uapi_device_hw_cfg - Device hardware configuration
* @macs_per_cc: MACs per clock cycle
* @cmd_stream_version: NPU command stream version
* @custom_dma: Custom DMA enabled
+ * @type: NPU device type
*/
struct ethosu_uapi_device_hw_cfg {
__u32 macs_per_cc;
__u32 cmd_stream_version;
__u32 custom_dma;
+ __u32 type;
};
/**