1234567891011121314151617181920212223242526272829303132333435363738 |
- /*
- * Copyright (c) 2017-2021, Arm Limited and Contributors. All rights reserved.
- *
- * SPDX-License-Identifier: BSD-3-Clause
- */
- #ifndef AMU_PRIVATE_H
- #define AMU_PRIVATE_H
- #include <stdint.h>
- #include <lib/cassert.h>
- #include <lib/extensions/amu.h>
- #include <lib/utils_def.h>
- #include <platform_def.h>
- #define AMU_GROUP0_MAX_COUNTERS U(16)
- #define AMU_GROUP1_MAX_COUNTERS U(16)
- #define AMU_AMCGCR_CG0NC_MAX U(16)
- uint64_t amu_group0_cnt_read_internal(unsigned int idx);
- void amu_group0_cnt_write_internal(unsigned int idx, uint64_t val);
- uint64_t amu_group1_cnt_read_internal(unsigned int idx);
- void amu_group1_cnt_write_internal(unsigned int idx, uint64_t val);
- void amu_group1_set_evtype_internal(unsigned int idx, unsigned int val);
- #if __aarch64__
- uint64_t amu_group0_voffset_read_internal(unsigned int idx);
- void amu_group0_voffset_write_internal(unsigned int idx, uint64_t val);
- uint64_t amu_group1_voffset_read_internal(unsigned int idx);
- void amu_group1_voffset_write_internal(unsigned int idx, uint64_t val);
- #endif
- #endif /* AMU_PRIVATE_H */
|