xref: /qemu/target/mips/kvm_mips.h (revision 2a6a4076e117113ebec97b1821071afccfdfbc96)
1e2132e0bSSanjay Lal /*
2e2132e0bSSanjay Lal  * This file is subject to the terms and conditions of the GNU General Public
3e2132e0bSSanjay Lal  * License.  See the file "COPYING" in the main directory of this archive
4e2132e0bSSanjay Lal  * for more details.
5e2132e0bSSanjay Lal  *
6e2132e0bSSanjay Lal  * KVM/MIPS: MIPS specific KVM APIs
7e2132e0bSSanjay Lal  *
8e2132e0bSSanjay Lal  * Copyright (C) 2012-2014 Imagination Technologies Ltd.
9e2132e0bSSanjay Lal  * Authors: Sanjay Lal <sanjayl@kymasys.com>
10e2132e0bSSanjay Lal */
11e2132e0bSSanjay Lal 
122a6a4076SMarkus Armbruster #ifndef KVM_MIPS_H
132a6a4076SMarkus Armbruster #define KVM_MIPS_H
14e2132e0bSSanjay Lal 
15e2132e0bSSanjay Lal /**
16e2132e0bSSanjay Lal  * kvm_mips_reset_vcpu:
17e2132e0bSSanjay Lal  * @cpu: MIPSCPU
18e2132e0bSSanjay Lal  *
19e2132e0bSSanjay Lal  * Called at reset time to set kernel registers to their initial values.
20e2132e0bSSanjay Lal  */
21e2132e0bSSanjay Lal void kvm_mips_reset_vcpu(MIPSCPU *cpu);
22e2132e0bSSanjay Lal 
23e2132e0bSSanjay Lal int kvm_mips_set_interrupt(MIPSCPU *cpu, int irq, int level);
24e2132e0bSSanjay Lal int kvm_mips_set_ipi_interrupt(MIPSCPU *cpu, int irq, int level);
25e2132e0bSSanjay Lal 
262a6a4076SMarkus Armbruster #endif /* KVM_MIPS_H */
27