diff options
author | Davide Grohmann <davide.grohmann@arm.com> | 2021-06-01 15:03:51 +0200 |
---|---|---|
committer | Kristofer Jonsson <kristofer.jonsson@arm.com> | 2021-06-10 14:58:49 +0000 |
commit | 35ce6c809ccf637c6bb8a00ad14b051b87d9884a (patch) | |
tree | e999250ca985ac5b00ba9162ee1782de02983c03 /kernel/ethosu_core_interface.h | |
parent | 0c79f896caf1a0ac16dd92810c4b15bfff00bdb3 (diff) | |
download | ethos-u-linux-driver-stack-35ce6c809ccf637c6bb8a00ad14b051b87d9884a.tar.gz |
Add support for handling capabilities requests
Change-Id: Id5aa197312c88b0c448dc085d8477ed67da24724
Diffstat (limited to 'kernel/ethosu_core_interface.h')
-rw-r--r-- | kernel/ethosu_core_interface.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/kernel/ethosu_core_interface.h b/kernel/ethosu_core_interface.h index 4e7a864..ad8311c 100644 --- a/kernel/ethosu_core_interface.h +++ b/kernel/ethosu_core_interface.h @@ -55,6 +55,8 @@ enum ethosu_core_msg_type { ETHOSU_CORE_MSG_INFERENCE_RSP, ETHOSU_CORE_MSG_VERSION_REQ, ETHOSU_CORE_MSG_VERSION_RSP, + ETHOSU_CORE_MSG_CAPABILITIES_REQ, + ETHOSU_CORE_MSG_CAPABILITIES_RSP, ETHOSU_CORE_MSG_MAX }; @@ -129,6 +131,34 @@ struct ethosu_core_msg_version { }; /** + * struct ethosu_core_capabilities_req - Message capabilities request + */ +struct ethosu_core_capabilities_req { + uint64_t user_arg; +}; + +/** + * struct ethosu_core_capabilities_rsp - Message capabilities response + */ +struct ethosu_core_msg_capabilities_rsp { + uint64_t user_arg; + uint32_t version_status; + uint32_t version_minor; + uint32_t version_major; + uint32_t product_major; + uint32_t arch_patch_rev; + uint32_t arch_minor_rev; + uint32_t arch_major_rev; + uint32_t driver_patch_rev; + uint32_t driver_minor_rev; + uint32_t driver_major_rev; + uint32_t macs_per_cc; + uint32_t cmd_stream_version; + uint32_t shram_size; + uint32_t custom_dma; +}; + +/** * enum ethosu_core_msg_err_type - Error types */ enum ethosu_core_msg_err_type { |