blob: 3dd565265144290c6857cbe75349f8efe0cec251 [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
Arvind Ram Prakashb5d95592023-11-08 12:28:30 -060015void mpam_enable_per_world(per_world_context_t *per_world_ctx);
Boyan Karatotev6468d4a2023-02-16 15:12:45 +000016void mpam_init_el2_unused(void);
Andre Przywara84b86532022-11-17 16:42:09 +000017#else
Arvind Ram Prakashb5d95592023-11-08 12:28:30 -060018static inline void mpam_enable_per_world(per_world_context_t *per_world_ctx)
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 */