1 /* 2 * Copyright (c) 2021-2025, 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_enable_ns(cpu_context_t *ctx); 14 void trbe_disable_ns(cpu_context_t *ctx); 15 void trbe_disable_secure(cpu_context_t *ctx); 16 void trbe_disable_realm(cpu_context_t *ctx); 17 void trbe_init_el2_unused(void); 18 #else 19 static inline void trbe_enable_ns(cpu_context_t *ctx) 20 { 21 } 22 static inline void trbe_disable_ns(cpu_context_t *ctx) 23 { 24 } 25 static inline void trbe_disable_secure(cpu_context_t *ctx) 26 { 27 } 28 static inline void trbe_disable_realm(cpu_context_t *ctx) 29 { 30 } 31 static inline void trbe_init_el2_unused(void) 32 { 33 } 34 #endif /* ENABLE_TRBE_FOR_NS */ 35 36 #endif /* TRBE_H */ 37