xref: /kvmtool/riscv/include/kvm/csr.h (revision d9052a965a22a3a2b96668222e384fb5d1747664)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 #ifndef KVM__KVM_CSR_H
3 #define KVM__KVM_CSR_H
4 
5 #include <linux/const.h>
6 
7 /* Scalar Crypto Extension - Entropy */
8 #define CSR_SEED		0x015
9 #define SEED_OPST_MASK		_AC(0xC0000000, UL)
10 #define SEED_OPST_BIST		_AC(0x00000000, UL)
11 #define SEED_OPST_WAIT		_AC(0x40000000, UL)
12 #define SEED_OPST_ES16		_AC(0x80000000, UL)
13 #define SEED_OPST_DEAD		_AC(0xC0000000, UL)
14 #define SEED_ENTROPY_MASK	_AC(0xFFFF, UL)
15 
16 #endif /* KVM__KVM_CSR_H */
17