blob: d443f18fb5e68964f2ea038ee9a557b8a6554cfb [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
16void spe_enable(bool el2_unused)
17{
18}
19void spe_disable(void)
20{
21}
22#endif
Dimitris Papastamos5bdbb472017-10-13 12:06:06 +010023
Antonio Nino Diaz033b4bb2018-10-25 16:52:26 +010024#endif /* SPE_H */