diff options
author | Anton Moberg <anton.moberg@arm.com> | 2020-12-22 16:00:31 +0100 |
---|---|---|
committer | Anton Moberg <anton.moberg@arm.com> | 2021-01-27 15:27:28 +0100 |
commit | 61da4d35575ddf7f62d4f5c687356f65a7246aed (patch) | |
tree | d87b749774bf4f1ee75a78cad2013816ae6dac2f /include/ethosu_device.h | |
parent | 91e0be55cf752112c60480faefe124cfd8ff211c (diff) | |
download | ethos-u-core-driver-61da4d35575ddf7f62d4f5c687356f65a7246aed.tar.gz |
---ethosu_driver---
Modified: Declarations for the driver interfaces to support multiNPU (takes *drv)
Added: ethosu_register_driver(...) to allow for a specific NPU driver to be instantiated
Added: ethosu_deregister_Driver(...) to allow for a specific NPU driver to be de-registered
Added: ethosu_reserve_driver(...) to reserve & return the first NPU driver instance available
Added: ethosu_release_driver(...) to release a specific NPU driver instance and make it available again
Added: *registered_drivers - A static linked list of drivers ready be used
---ethosu_pmu---
Modified: Declarations for pmu interfaces to support multiNPU (takes *drv)
---ethosu_device---
Modified: Resolved a circular include dependency (Remove include and add ETHOSU_PMU_NCOUNTERS macro)
Change-Id: Iede41cd41bb0d5d483bd9d929d1b6c9ca5d3c48e
Diffstat (limited to 'include/ethosu_device.h')
-rw-r--r-- | include/ethosu_device.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/ethosu_device.h b/include/ethosu_device.h index eff9054..d9c233d 100644 --- a/include/ethosu_device.h +++ b/include/ethosu_device.h @@ -23,8 +23,6 @@ * Includes ******************************************************************************/ -#include "pmu_ethosu.h" - #include <stdbool.h> #include <stdint.h> @@ -41,6 +39,10 @@ extern "C" { #define ETHOSU_DRIVER_VERSION_PATCH 0 ///< Driver patch version #define ETHOSU_DRIVER_BASEP_INDEXES 8 ///< Number of base pointer indexes +#ifndef ETHOSU_PMU_NCOUNTERS +#define ETHOSU_PMU_NCOUNTERS 4 +#endif + /****************************************************************************** * Types ******************************************************************************/ |