1 /* 2 * Copyright (c) 2021-2024, Arm Limited. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 #ifndef TRBE_H 8 #define TRBE_H 9 10 #include <context.h> 11 12 #if ENABLE_TRBE_FOR_NS 13 void trbe_disable(cpu_context_t *ctx); 14 void trbe_enable(cpu_context_t *ctx); 15 void trbe_init_el2_unused(void); 16 #else trbe_disable(cpu_context_t * ctx)17static inline void trbe_disable(cpu_context_t *ctx) 18 { 19 } trbe_enable(cpu_context_t * ctx)20static inline void trbe_enable(cpu_context_t *ctx) 21 { 22 } trbe_init_el2_unused(void)23static inline void trbe_init_el2_unused(void) 24 { 25 } 26 #endif /* ENABLE_TRBE_FOR_NS */ 27 28 #endif /* TRBE_H */ 29