mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-05-08 18:41:22 +00:00
Fix MISRA defects in extension libs
No functional changes. Change-Id: I2f28f20944f552447ac4e9e755493cd7c0ea1192 Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
This commit is contained in:
parent
4012531547
commit
40daecc1be
14 changed files with 120 additions and 104 deletions
|
@ -4,33 +4,35 @@
|
|||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
#ifndef __AMU_H__
|
||||
#define __AMU_H__
|
||||
#ifndef AMU_H
|
||||
#define AMU_H
|
||||
|
||||
#include <cassert.h>
|
||||
#include <platform_def.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <utils_def.h>
|
||||
|
||||
/* All group 0 counters */
|
||||
#define AMU_GROUP0_COUNTERS_MASK 0xf
|
||||
#define AMU_GROUP0_COUNTERS_MASK U(0xf)
|
||||
|
||||
#ifdef PLAT_AMU_GROUP1_COUNTERS_MASK
|
||||
#define AMU_GROUP1_COUNTERS_MASK PLAT_AMU_GROUP1_COUNTERS_MASK
|
||||
#else
|
||||
#define AMU_GROUP1_COUNTERS_MASK 0
|
||||
#define AMU_GROUP1_COUNTERS_MASK U(0)
|
||||
#endif
|
||||
|
||||
#ifdef PLAT_AMU_GROUP1_NR_COUNTERS
|
||||
#define AMU_GROUP1_NR_COUNTERS PLAT_AMU_GROUP1_NR_COUNTERS
|
||||
#else
|
||||
#define AMU_GROUP1_NR_COUNTERS 0
|
||||
#define AMU_GROUP1_NR_COUNTERS U(0)
|
||||
#endif
|
||||
|
||||
CASSERT(AMU_GROUP1_COUNTERS_MASK <= 0xffff, invalid_amu_group1_counters_mask);
|
||||
CASSERT(AMU_GROUP1_NR_COUNTERS <= 16, invalid_amu_group1_nr_counters);
|
||||
|
||||
int amu_supported(void);
|
||||
void amu_enable(int el2_unused);
|
||||
bool amu_supported(void);
|
||||
void amu_enable(bool el2_unused);
|
||||
|
||||
/* Group 0 configuration helpers */
|
||||
uint64_t amu_group0_cnt_read(int idx);
|
||||
|
@ -41,4 +43,4 @@ uint64_t amu_group1_cnt_read(int idx);
|
|||
void amu_group1_cnt_write(int idx, uint64_t val);
|
||||
void amu_group1_set_evtype(int idx, unsigned int val);
|
||||
|
||||
#endif /* __AMU_H__ */
|
||||
#endif /* AMU_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue