Manish V Badarkhe | 20df29c | 2021-07-02 09:10:56 +0100 | [diff] [blame] | 1 | /* |
Jayanth Dodderi Chidanand | 118b335 | 2024-06-18 15:22:54 +0100 | [diff] [blame] | 2 | * Copyright (c) 2021-2024, Arm Limited. All rights reserved. |
Manish V Badarkhe | 20df29c | 2021-07-02 09:10:56 +0100 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | #ifndef TRBE_H |
| 8 | #define TRBE_H |
| 9 | |
Jayanth Dodderi Chidanand | 118b335 | 2024-06-18 15:22:54 +0100 | [diff] [blame] | 10 | #include <context.h> |
| 11 | |
Jayanth Dodderi Chidanand | 77b8b87 | 2023-03-01 15:35:28 +0000 | [diff] [blame] | 12 | #if ENABLE_TRBE_FOR_NS |
Arvind Ram Prakash | 58f89ed | 2024-07-19 11:39:49 -0500 | [diff] [blame] | 13 | void trbe_disable(cpu_context_t *ctx); |
Jayanth Dodderi Chidanand | 118b335 | 2024-06-18 15:22:54 +0100 | [diff] [blame] | 14 | void trbe_enable(cpu_context_t *ctx); |
Boyan Karatotev | 6468d4a | 2023-02-16 15:12:45 +0000 | [diff] [blame] | 15 | void trbe_init_el2_unused(void); |
Jayanth Dodderi Chidanand | 77b8b87 | 2023-03-01 15:35:28 +0000 | [diff] [blame] | 16 | #else |
Arvind Ram Prakash | 58f89ed | 2024-07-19 11:39:49 -0500 | [diff] [blame] | 17 | static inline void trbe_disable(cpu_context_t *ctx) |
| 18 | { |
| 19 | } |
Jayanth Dodderi Chidanand | 118b335 | 2024-06-18 15:22:54 +0100 | [diff] [blame] | 20 | static inline void trbe_enable(cpu_context_t *ctx) |
Boyan Karatotev | 6468d4a | 2023-02-16 15:12:45 +0000 | [diff] [blame] | 21 | { |
| 22 | } |
| 23 | static inline void trbe_init_el2_unused(void) |
Jayanth Dodderi Chidanand | 77b8b87 | 2023-03-01 15:35:28 +0000 | [diff] [blame] | 24 | { |
| 25 | } |
| 26 | #endif /* ENABLE_TRBE_FOR_NS */ |
Manish V Badarkhe | 20df29c | 2021-07-02 09:10:56 +0100 | [diff] [blame] | 27 | |
| 28 | #endif /* TRBE_H */ |