1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 #ifndef _RISCV_SBI_TESTS_H_ 3 #define _RISCV_SBI_TESTS_H_ 4 5 #define SBI_SUSP_MAGIC_IDX 0 6 #define SBI_SUSP_CSRS_IDX 1 7 #define SBI_SUSP_HARTID_IDX 2 8 #define SBI_SUSP_TESTNUM_IDX 3 9 #define SBI_SUSP_RESULTS_IDX 4 10 11 #define SBI_CSR_SSTATUS_IDX 0 12 #define SBI_CSR_SIE_IDX 1 13 #define SBI_CSR_STVEC_IDX 2 14 #define SBI_CSR_SSCRATCH_IDX 3 15 #define SBI_CSR_SATP_IDX 4 16 17 #define SBI_SUSP_MAGIC 0x505b 18 19 #define SBI_SUSP_TEST_SATP (1 << 0) 20 #define SBI_SUSP_TEST_SIE (1 << 1) 21 #define SBI_SUSP_TEST_HARTID (1 << 2) 22 #define SBI_SUSP_TEST_MASK 7 23 24 #endif /* _RISCV_SBI_TESTS_H_ */ 25