blob: 2c488e0971d9b14abade2426b9cb83b3cbfd0083 [file] [log] [blame]
Manish V Badarkhe20df29c2021-07-02 09:10:56 +01001/*
Jayanth Dodderi Chidanand118b3352024-06-18 15:22:54 +01002 * Copyright (c) 2021-2024, Arm Limited. All rights reserved.
Manish V Badarkhe20df29c2021-07-02 09:10:56 +01003 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef TRBE_H
8#define TRBE_H
9
Jayanth Dodderi Chidanand118b3352024-06-18 15:22:54 +010010#include <context.h>
11
Jayanth Dodderi Chidanand77b8b872023-03-01 15:35:28 +000012#if ENABLE_TRBE_FOR_NS
Arvind Ram Prakash58f89ed2024-07-19 11:39:49 -050013void trbe_disable(cpu_context_t *ctx);
Jayanth Dodderi Chidanand118b3352024-06-18 15:22:54 +010014void trbe_enable(cpu_context_t *ctx);
Boyan Karatotev6468d4a2023-02-16 15:12:45 +000015void trbe_init_el2_unused(void);
Jayanth Dodderi Chidanand77b8b872023-03-01 15:35:28 +000016#else
Arvind Ram Prakash58f89ed2024-07-19 11:39:49 -050017static inline void trbe_disable(cpu_context_t *ctx)
18{
19}
Jayanth Dodderi Chidanand118b3352024-06-18 15:22:54 +010020static inline void trbe_enable(cpu_context_t *ctx)
Boyan Karatotev6468d4a2023-02-16 15:12:45 +000021{
22}
23static inline void trbe_init_el2_unused(void)
Jayanth Dodderi Chidanand77b8b872023-03-01 15:35:28 +000024{
25}
26#endif /* ENABLE_TRBE_FOR_NS */
Manish V Badarkhe20df29c2021-07-02 09:10:56 +010027
28#endif /* TRBE_H */