blob: e5438cec64b8ffde0a821150c3b91392bfb7b6f7 [file] [log] [blame]
Jeenu Viswambharan2da918c2018-07-31 16:13:33 +01001/*
Boyan Karatotev6468d4a2023-02-16 15:12:45 +00002 * Copyright (c) 2018-2023, Arm Limited and Contributors. All rights reserved.
Jeenu Viswambharan2da918c2018-07-31 16:13:33 +01003 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef MPAM_H
8#define MPAM_H
9
10#include <stdbool.h>
11
Andre Przywara84b86532022-11-17 16:42:09 +000012#if ENABLE_MPAM_FOR_LOWER_ELS
Boyan Karatotev6468d4a2023-02-16 15:12:45 +000013void mpam_init_el3(void);
14void mpam_init_el2_unused(void);
Andre Przywara84b86532022-11-17 16:42:09 +000015#else
Boyan Karatotev6468d4a2023-02-16 15:12:45 +000016static inline void mpam_init_el3(void)
Andre Przywara84b86532022-11-17 16:42:09 +000017{
18}
Boyan Karatotev6468d4a2023-02-16 15:12:45 +000019static inline void mpam_init_el2_unused(void)
20{
21}
22#endif /* ENABLE_MPAM_FOR_LOWER_ELS */
Jeenu Viswambharan2da918c2018-07-31 16:13:33 +010023
24#endif /* MPAM_H */