Jeenu Viswambharan | 2da918c | 2018-07-31 16:13:33 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | #ifndef MPAM_H |
| 8 | #define MPAM_H |
| 9 | |
| 10 | #include <stdbool.h> |
| 11 | |
Andre Przywara | 84b8653 | 2022-11-17 16:42:09 +0000 | [diff] [blame] | 12 | #if ENABLE_MPAM_FOR_LOWER_ELS |
Antonio Nino Diaz | 033b4bb | 2018-10-25 16:52:26 +0100 | [diff] [blame] | 13 | void mpam_enable(bool el2_unused); |
Andre Przywara | 84b8653 | 2022-11-17 16:42:09 +0000 | [diff] [blame] | 14 | #else |
Andre Przywara | a1c9ad1 | 2023-03-22 13:25:00 +0000 | [diff] [blame] | 15 | static inline void mpam_enable(bool el2_unused) |
Andre Przywara | 84b8653 | 2022-11-17 16:42:09 +0000 | [diff] [blame] | 16 | { |
| 17 | } |
| 18 | #endif |
Jeenu Viswambharan | 2da918c | 2018-07-31 16:13:33 +0100 | [diff] [blame] | 19 | |
| 20 | #endif /* MPAM_H */ |