aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAnton Moberg <anton.moberg@arm.com>2021-03-11 14:41:11 +0100
committerAnton Moberg <anton.moberg@arm.com>2021-03-23 10:16:04 +0100
commitdfed5fd24699246811300a05ebc421a978e52149 (patch)
tree8756f1c3ce485a3e900a02f8d0508775d6af85a1 /include
parent09273d1886634a8c6601e4cc7f7c2ef1e1b14b7a (diff)
downloadethos-u-core-driver-dfed5fd24699246811300a05ebc421a978e52149.tar.gz
Multi NPU update APIs
Modifying mutex and semaphore APIs allowing the driver to create any number of mutexes and semaphores. Using semaphore when waiting for interrupt. Making irq_triggered a member of the driver struct. Change-Id: Ib0645c9c7c0c029795269ac4b18e6ec29159d0f8
Diffstat (limited to 'include')
-rw-r--r--include/ethosu_driver.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/ethosu_driver.h b/include/ethosu_driver.h
index 2ce59c2..16f0a25 100644
--- a/include/ethosu_driver.h
+++ b/include/ethosu_driver.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2019-2020 Arm Limited. All rights reserved.
+ * Copyright (c) 2019-2021 Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -47,6 +47,8 @@ struct ethosu_driver
bool dev_power_always_on;
struct ethosu_driver *next;
bool reserved;
+ volatile bool irq_triggered;
+ void *semaphore;
};
struct ethosu_version_id