2010-03-27 08:26:16 +01:00
|
|
|
#ifndef HW_MIPS_CPUDEVS_H
|
|
|
|
#define HW_MIPS_CPUDEVS_H
|
2016-03-15 14:32:19 +01:00
|
|
|
|
2016-10-11 08:56:52 +02:00
|
|
|
#include "target/mips/cpu-qom.h"
|
2016-03-15 14:32:19 +01:00
|
|
|
|
2010-03-27 08:26:16 +01:00
|
|
|
/* Definitions for MIPS CPU internal devices. */
|
|
|
|
|
2017-07-31 15:09:13 +02:00
|
|
|
/* addr.c */
|
2010-03-27 08:26:16 +01:00
|
|
|
uint64_t cpu_mips_kseg0_to_phys(void *opaque, uint64_t addr);
|
|
|
|
uint64_t cpu_mips_phys_to_kseg0(void *opaque, uint64_t addr);
|
2014-06-18 00:10:28 +02:00
|
|
|
uint64_t cpu_mips_kvm_um_phys_to_kseg0(void *opaque, uint64_t addr);
|
2017-07-31 15:09:13 +02:00
|
|
|
bool mips_um_ksegs_enabled(void);
|
|
|
|
void mips_um_ksegs_enable(void);
|
2010-03-27 08:26:16 +01:00
|
|
|
|
|
|
|
/* mips_int.c */
|
2016-03-15 14:32:19 +01:00
|
|
|
void cpu_mips_irq_init_cpu(MIPSCPU *cpu);
|
2010-03-27 08:26:16 +01:00
|
|
|
|
|
|
|
/* mips_timer.c */
|
2016-03-15 14:32:19 +01:00
|
|
|
void cpu_mips_clock_init(MIPSCPU *cpu);
|
2010-03-27 08:26:16 +01:00
|
|
|
|
|
|
|
#endif
|