diff options
author | Kristofer Jonsson <kristofer.jonsson@arm.com> | 2022-11-04 15:54:32 +0100 |
---|---|---|
committer | Kristofer Jonsson <kristofer.jonsson@arm.com> | 2022-11-14 12:27:23 +0100 |
commit | 9670332f1e5b286bffe12ad024f1b97995a23bcb (patch) | |
tree | ae3b1dc154f94064222120ce6aa4672c5fedb4fd /include/ethosu_driver.h | |
parent | f082f6cf2c6eb0663deab4a2ba31b40116e0685d (diff) | |
download | ethos-u-core-driver-9670332f1e5b286bffe12ad024f1b97995a23bcb.tar.gz |
Remapping command stream and base pointers
Add new weak function ethosu_address_remap() that allows the addresses
for QBASE and BASEP to be remapped.
Change-Id: I36b0d71c57bfd293672b10c7b85f3b2415e9c839
Diffstat (limited to 'include/ethosu_driver.h')
-rw-r--r-- | include/ethosu_driver.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/ethosu_driver.h b/include/ethosu_driver.h index c48a3f2..187d49a 100644 --- a/include/ethosu_driver.h +++ b/include/ethosu_driver.h @@ -136,6 +136,16 @@ int ethosu_semaphore_give(void *sem); void ethosu_inference_begin(struct ethosu_driver *drv, void *user_arg); void ethosu_inference_end(struct ethosu_driver *drv, void *user_arg); +/** + * Remapping command stream and base pointer addresses. + * + * @param address Address to be remapped. + * @param index -1: command stream, 0-n base address index + * + * @return Remapped address + */ +uint64_t ethosu_address_remap(uint64_t address, int index); + /****************************************************************************** * Prototypes ******************************************************************************/ |