aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKristofer Jonsson <kristofer.jonsson@arm.com>2020-08-25 16:32:21 +0200
committerKristofer Jonsson <kristofer.jonsson@arm.com>2020-08-26 11:50:54 +0200
commitef387ea3cbff63e06d1d0808047b9f19adf244c9 (patch)
tree731748dee197d39c356eaf6aa044d81de533b909 /include
parent9716b5e00c10b000067ca3ee1ad91fef4cccbb46 (diff)
downloadethos-u-core-driver-ef387ea3cbff63e06d1d0808047b9f19adf244c9.tar.gz
Save and restore PMU settings and counters20.08-rc220.08
Change-Id: I54a1927fef998bc97f5507f2de9faf7d4a7960f5
Diffstat (limited to 'include')
-rw-r--r--include/ethosu_device.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/ethosu_device.h b/include/ethosu_device.h
index 9c78bfc..e08aa3d 100644
--- a/include/ethosu_device.h
+++ b/include/ethosu_device.h
@@ -55,8 +55,11 @@ enum ethosu_error_codes
struct ethosu_device
{
uintptr_t base_address;
- bool restore_pmu_config;
+ uint32_t pmcr;
uint64_t pmccntr;
+ uint32_t pmcnten;
+ uint32_t pmint;
+ uint32_t pmccntr_cfg;
uint32_t pmu_evcntr[ETHOSU_PMU_NCOUNTERS];
enum ethosu_pmu_event_type pmu_evtypr[ETHOSU_PMU_NCOUNTERS];
};