From 9670332f1e5b286bffe12ad024f1b97995a23bcb Mon Sep 17 00:00:00 2001 From: Kristofer Jonsson Date: Fri, 4 Nov 2022 15:54:32 +0100 Subject: 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 --- include/ethosu_driver.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include') 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 ******************************************************************************/ -- cgit v1.2.1