1 /* 2 * Copyright (c) 2017-2021, ARM Limited and Contributors. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 #ifndef AMU_PRIVATE_H 8 #define AMU_PRIVATE_H 9 10 #include <stdint.h> 11 12 uint64_t amu_group0_cnt_read_internal(unsigned int idx); 13 void amu_group0_cnt_write_internal(unsigned int idx, uint64_t val); 14 15 uint64_t amu_group1_cnt_read_internal(unsigned int idx); 16 void amu_group1_cnt_write_internal(unsigned int idx, uint64_t val); 17 void amu_group1_set_evtype_internal(unsigned int idx, unsigned int val); 18 19 #if __aarch64__ 20 uint64_t amu_group0_voffset_read_internal(unsigned int idx); 21 void amu_group0_voffset_write_internal(unsigned int idx, uint64_t val); 22 23 uint64_t amu_group1_voffset_read_internal(unsigned int idx); 24 void amu_group1_voffset_write_internal(unsigned int idx, uint64_t val); 25 #endif 26 27 #endif /* AMU_PRIVATE_H */ 28