mpam.h 512 B

1234567891011121314151617181920212223242526
  1. /*
  2. * Copyright (c) 2018-2023, Arm Limited and Contributors. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #ifndef MPAM_H
  7. #define MPAM_H
  8. #include <stdbool.h>
  9. #include <context.h>
  10. #if ENABLE_FEAT_MPAM
  11. void mpam_enable_per_world(per_world_context_t *per_world_ctx);
  12. void mpam_init_el2_unused(void);
  13. #else
  14. static inline void mpam_enable_per_world(per_world_context_t *per_world_ctx)
  15. {
  16. }
  17. static inline void mpam_init_el2_unused(void)
  18. {
  19. }
  20. #endif /* ENABLE_FEAT_MPAM */
  21. #endif /* MPAM_H */