blob: 170f919bb089e8b9b2068ca3c525a2898a4d41a3 [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
Arvind Ram Prakashab28d4b2023-10-11 12:10:56 -050012#include <context.h>
13
14#if ENABLE_FEAT_MPAM
15void mpam_enable(cpu_context_t *context);
Boyan Karatotev6468d4a2023-02-16 15:12:45 +000016void mpam_init_el2_unused(void);
Andre Przywara84b86532022-11-17 16:42:09 +000017#else
Arvind Ram Prakashab28d4b2023-10-11 12:10:56 -050018static inline void mpam_enable(cpu_context_t *context)
Andre Przywara84b86532022-11-17 16:42:09 +000019{
20}
Boyan Karatotev6468d4a2023-02-16 15:12:45 +000021static inline void mpam_init_el2_unused(void)
22{
23}
Arvind Ram Prakashab28d4b2023-10-11 12:10:56 -050024#endif /* ENABLE_FEAT_MPAM */
Jeenu Viswambharan2da918c2018-07-31 16:13:33 +010025
26#endif /* MPAM_H */