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