1 /* 2 * linux/arch/sh/kernel/mach_keywest.c 3 * 4 * Machine vector for HSA KeyWest Evaluiation board 5 * 6 * Copyright (C) 2001 Lineo, Japan 7 * 8 */ 9 10 #include <linux/config.h> 11 #include <linux/init.h> 12 13 #include <asm/machvec.h> 14 #include <asm/rtc.h> 15 #include <asm/machvec_init.h> 16 #include <asm/io.h> 17 #include <asm/io_keywest.h> 18 #include <asm/irq.h> 19 20 /* 21 * The Machine Vector 22 */ 23 extern void heartbeat_keywest(void); 24 extern void setup_keywest(void); 25 extern void init_keywest_IRQ(void); 26 27 struct sh_machine_vector mv_keywest __initmv = { 28 mv_name: "Key West", 29 mv_nr_irqs: NR_IRQS, // Defined in <asm/irq.h> 30 mv_inb: keywest_inb, 31 mv_inw: keywest_inw, 32 mv_inl: keywest_inl, 33 mv_outb: keywest_outb, 34 mv_outw: keywest_outw, 35 mv_outl: keywest_outl, 36 37 mv_inb_p: keywest_inb_p, 38 mv_inw_p: keywest_inw, 39 mv_inl_p: keywest_inl, 40 mv_outb_p: keywest_outb_p, 41 mv_outw_p: keywest_outw, 42 mv_outl_p: keywest_outl, 43 44 mv_insb: keywest_insb, 45 mv_insw: keywest_insw, 46 mv_insl: keywest_insl, 47 mv_outsb: keywest_outsb, 48 mv_outsw: keywest_outsw, 49 mv_outsl: keywest_outsl, 50 51 mv_readb: generic_readb, 52 mv_readw: generic_readw, 53 mv_readl: generic_readl, 54 mv_writeb: generic_writeb, 55 mv_writew: generic_writew, 56 mv_writel: generic_writel, 57 58 mv_ioremap: generic_ioremap, 59 mv_iounmap: generic_iounmap, 60 61 mv_isa_port2addr: keywest_isa_port2addr, 62 mv_irq_demux: keywest_irq_demux, 63 64 mv_init_arch: setup_keywest, 65 mv_init_irq: init_keywest_IRQ, 66 mv_rtc_gettimeofday: sh_rtc_gettimeofday, 67 mv_rtc_settimeofday: sh_rtc_settimeofday, 68 69 }; 70 ALIAS_MV(keywest) 71