johpow01 | 50ccb55 | 2020-11-10 19:22:13 -0600 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright (c) 2021, Arm Limited. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | #ifndef AMU_H |
| 8 | #define AMU_H |
| 9 | |
| 10 | #define SME_SMCR_LEN_MAX U(0x1FF) |
| 11 | |
| 12 | bool feat_sme_supported(void); |
| 13 | bool feat_sme_fa64_supported(void); |
| 14 | int sme_enable(void); |
| 15 | void sme_smstart(bool enable_za); |
| 16 | void sme_smstop(bool disable_za); |
| 17 | |
| 18 | /* Assembly function prototypes */ |
| 19 | uint64_t sme_rdvl_1(void); |
| 20 | void sme_try_illegal_instruction(void); |
| 21 | |
| 22 | #endif /* AMU_H */ |