blob: c711269d0af76f9f2bc82dd78f8229bde128d9c0 [file] [log] [blame]
Sanjay Lale2132e02014-06-17 23:10:32 +01001/*
2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
4 * for more details.
5 *
6 * KVM/MIPS: MIPS specific KVM APIs
7 *
8 * Copyright (C) 2012-2014 Imagination Technologies Ltd.
9 * Authors: Sanjay Lal <sanjayl@kymasys.com>
Aleksandar Markovicf6d147b2019-09-24 15:26:34 +020010 */
Sanjay Lale2132e02014-06-17 23:10:32 +010011
Markus Armbruster2a6a4072016-06-29 13:47:03 +020012#ifndef KVM_MIPS_H
13#define KVM_MIPS_H
Sanjay Lale2132e02014-06-17 23:10:32 +010014
Huacai Chen719d1092020-06-24 18:45:28 +080015#include "cpu.h"
16
Sanjay Lale2132e02014-06-17 23:10:32 +010017/**
18 * kvm_mips_reset_vcpu:
19 * @cpu: MIPSCPU
20 *
21 * Called at reset time to set kernel registers to their initial values.
22 */
23void kvm_mips_reset_vcpu(MIPSCPU *cpu);
24
25int kvm_mips_set_interrupt(MIPSCPU *cpu, int irq, int level);
26int kvm_mips_set_ipi_interrupt(MIPSCPU *cpu, int irq, int level);
27
Markus Armbruster2a6a4072016-06-29 13:47:03 +020028#endif /* KVM_MIPS_H */