blob: d1a17c55350ee679b1e268e663d6c73267624777 [file] [log] [blame]
johpow0150ccb552020-11-10 19:22:13 -06001/*
Olivier Deprez19202382022-08-17 14:18:51 +02002 * Copyright (c) 2021-2022, Arm Limited. All rights reserved.
johpow0150ccb552020-11-10 19:22:13 -06003 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
Olivier Deprez19202382022-08-17 14:18:51 +02007#ifndef SME_H
8#define SME_H
johpow0150ccb552020-11-10 19:22:13 -06009
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
Olivier Deprez19202382022-08-17 14:18:51 +020022#endif /* SME_H */