blob: 5a6cc4310990894ae7b8d261032bd90e0277b923 [file] [log] [blame]
johpow0150ccb552020-11-10 19:22:13 -06001/*
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
12bool feat_sme_supported(void);
13bool feat_sme_fa64_supported(void);
14int sme_enable(void);
15void sme_smstart(bool enable_za);
16void sme_smstop(bool disable_za);
17
18/* Assembly function prototypes */
19uint64_t sme_rdvl_1(void);
20void sme_try_illegal_instruction(void);
21
22#endif /* AMU_H */