diff options
author | Kristofer Jonsson <kristofer.jonsson@arm.com> | 2022-03-10 11:17:29 +0100 |
---|---|---|
committer | Kristofer Jonsson <kristofer.jonsson@arm.com> | 2022-03-14 11:14:06 +0100 |
commit | 3c6a260a705a668b5ff8e8159f04c257273fb458 (patch) | |
tree | 3661451b5d0e2675534c290f36c2cf834fc1f4a6 /kernel/ethosu_core_interface.h | |
parent | 35de9e63d9c2fe0a557637ac104d7d73382d2d4a (diff) | |
download | ethos-u-linux-driver-stack-3c6a260a705a668b5ff8e8159f04c257273fb458.tar.gz |
Network info
Add UAPI and core message that allows user space space to fetch
information about network models built into the firmware.
Change-Id: Ic92529bce3edd0a5499e691a566bd065da2a72ad
Diffstat (limited to 'kernel/ethosu_core_interface.h')
-rw-r--r-- | kernel/ethosu_core_interface.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/kernel/ethosu_core_interface.h b/kernel/ethosu_core_interface.h index cc4fca4..5a6e55d 100644 --- a/kernel/ethosu_core_interface.h +++ b/kernel/ethosu_core_interface.h @@ -57,6 +57,8 @@ enum ethosu_core_msg_type { ETHOSU_CORE_MSG_VERSION_RSP, ETHOSU_CORE_MSG_CAPABILITIES_REQ, ETHOSU_CORE_MSG_CAPABILITIES_RSP, + ETHOSU_CORE_MSG_NETWORK_INFO_REQ, + ETHOSU_CORE_MSG_NETWORK_INFO_RSP, ETHOSU_CORE_MSG_MAX }; @@ -155,6 +157,27 @@ struct ethosu_core_inference_rsp { }; /** + * struct ethosu_core_network_info_req - Network information request + */ +struct ethosu_core_network_info_req { + uint64_t user_arg; + struct ethosu_core_network_buffer network; +}; + +/** + * struct ethosu_core_network_info_rsp - Network information response + */ +struct ethosu_core_network_info_rsp { + uint64_t user_arg; + char desc[32]; + uint32_t ifm_count; + uint32_t ifm_size[ETHOSU_CORE_BUFFER_MAX]; + uint32_t ofm_count; + uint32_t ofm_size[ETHOSU_CORE_BUFFER_MAX]; + uint32_t status; +}; + +/** * struct ethosu_core_msg_version - Message protocol version */ struct ethosu_core_msg_version { |