blob: 02fccae9281451d04010ffde82db0cf86567857a [file] [log] [blame]
Dimitris Papastamos5bdbb472017-10-13 12:06:06 +01001/*
Dimitris Papastamos5e8cd792018-02-19 14:52:19 +00002 * Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved.
Dimitris Papastamos5bdbb472017-10-13 12:06:06 +01003 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
Antonio Nino Diaz033b4bb2018-10-25 16:52:26 +01007#ifndef SPE_H
8#define SPE_H
Dimitris Papastamos5bdbb472017-10-13 12:06:06 +01009
Antonio Nino Diaz033b4bb2018-10-25 16:52:26 +010010#include <stdbool.h>
11
Andre Przywaraf3e8cfc2022-11-17 16:42:09 +000012#if ENABLE_SPE_FOR_NS
Antonio Nino Diaz033b4bb2018-10-25 16:52:26 +010013void spe_enable(bool el2_unused);
Dimitris Papastamos5bdbb472017-10-13 12:06:06 +010014void spe_disable(void);
Andre Przywaraf3e8cfc2022-11-17 16:42:09 +000015#else
Andre Przywaraa1c9ad12023-03-22 13:25:00 +000016static inline void spe_enable(bool el2_unused)
Andre Przywaraf3e8cfc2022-11-17 16:42:09 +000017{
18}
Andre Przywaraa1c9ad12023-03-22 13:25:00 +000019static inline void spe_disable(void)
Andre Przywaraf3e8cfc2022-11-17 16:42:09 +000020{
21}
22#endif
Dimitris Papastamos5bdbb472017-10-13 12:06:06 +010023
Antonio Nino Diaz033b4bb2018-10-25 16:52:26 +010024#endif /* SPE_H */