i386: pgd_{c,d}tor() static
[pv_ops_mirror.git] / arch / mips / qemu / q-setup.c
blob841394336f0045d518104821de2c49c7b7aa9eb5
1 #include <linux/init.h>
2 #include <asm/io.h>
3 #include <asm/time.h>
5 extern void qemu_reboot_setup(void);
7 #define QEMU_PORT_BASE 0xb4000000
9 const char *get_system_type(void)
11 return "Qemu";
14 void __init plat_timer_setup(struct irqaction *irq)
16 /* set the clock to 100 Hz */
17 outb_p(0x34,0x43); /* binary, mode 2, LSB/MSB, ch 0 */
18 outb_p(LATCH & 0xff , 0x40); /* LSB */
19 outb(LATCH >> 8 , 0x40); /* MSB */
20 setup_irq(0, irq);
23 void __init plat_mem_setup(void)
25 set_io_port_base(QEMU_PORT_BASE);
26 qemu_reboot_setup();