blob: 3b4b47ca3a83aa84e0dd6efea145d8e05d83c878 [file] [log] [blame]
Dimitris Papastamos525c37a2017-11-13 09:49:45 +00001/*
johpow01fa59c6f2020-10-02 13:41:11 -05002 * Copyright (c) 2017-2021, ARM Limited and Contributors. All rights reserved.
Dimitris Papastamos525c37a2017-11-13 09:49:45 +00003 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
Antonio Nino Diaz033b4bb2018-10-25 16:52:26 +01007#ifndef AMU_PRIVATE_H
8#define AMU_PRIVATE_H
Dimitris Papastamos525c37a2017-11-13 09:49:45 +00009
10#include <stdint.h>
11
Alexei Fedorov7e6306b2020-07-14 08:17:56 +010012uint64_t amu_group0_cnt_read_internal(unsigned int idx);
13void amu_group0_cnt_write_internal(unsigned int idx, uint64_t val);
Dimitris Papastamos525c37a2017-11-13 09:49:45 +000014
Alexei Fedorov7e6306b2020-07-14 08:17:56 +010015uint64_t amu_group1_cnt_read_internal(unsigned int idx);
16void amu_group1_cnt_write_internal(unsigned int idx, uint64_t val);
17void amu_group1_set_evtype_internal(unsigned int idx, unsigned int val);
Dimitris Papastamos525c37a2017-11-13 09:49:45 +000018
johpow01fa59c6f2020-10-02 13:41:11 -050019#if __aarch64__
20uint64_t amu_group0_voffset_read_internal(unsigned int idx);
21void amu_group0_voffset_write_internal(unsigned int idx, uint64_t val);
22
23uint64_t amu_group1_voffset_read_internal(unsigned int idx);
24void amu_group1_voffset_write_internal(unsigned int idx, uint64_t val);
25#endif
26
Antonio Nino Diaz033b4bb2018-10-25 16:52:26 +010027#endif /* AMU_PRIVATE_H */