1/* 2 * linux/arch/sh/kernel/mach_ec3104.c 3 * EC3104 companion chip support 4 * 5 * Copyright (C) 2000 Philipp Rumpf <prumpf@tux.org> 6 * 7 */ 8/* EC3104 note: 9 * This code was written without any documentation about the EC3104 chip. While 10 * I hope I got most of the basic functionality right, the register names I use 11 * are most likely completely different from those in the chip documentation. 12 * 13 * If you have any further information about the EC3104, please tell me 14 * (prumpf@tux.org). 15 */ 16 17#include <linux/init.h> 18 19#include <asm/machvec.h> 20#include <asm/rtc.h> 21#include <asm/machvec_init.h> 22 23#include <asm/io.h> 24#include <asm/irq.h> 25 26/* 27 * The Machine Vector 28 */ 29 30struct sh_machine_vector mv_ec3104 __initmv = { 31 mv_name: "EC3104", 32 33 mv_nr_irqs: 96, 34 35 mv_inb: ec3104_inb, 36 mv_inw: ec3104_inw, 37 mv_inl: ec3104_inl, 38 mv_outb: ec3104_outb, 39 mv_outw: ec3104_outw, 40 mv_outl: ec3104_outl, 41 42 mv_inb_p: generic_inb_p, 43 mv_inw_p: generic_inw, 44 mv_inl_p: generic_inl, 45 mv_outb_p: generic_outb_p, 46 mv_outw_p: generic_outw, 47 mv_outl_p: generic_outl, 48 49 mv_insb: generic_insb, 50 mv_insw: generic_insw, 51 mv_insl: generic_insl, 52 mv_outsb: generic_outsb, 53 mv_outsw: generic_outsw, 54 mv_outsl: generic_outsl, 55 56 mv_readb: generic_readb, 57 mv_readw: generic_readw, 58 mv_readl: generic_readl, 59 mv_writeb: generic_writeb, 60 mv_writew: generic_writew, 61 mv_writel: generic_writel, 62 63 mv_irq_demux: ec3104_irq_demux, 64 65 mv_rtc_gettimeofday: sh_rtc_gettimeofday, 66 mv_rtc_settimeofday: sh_rtc_settimeofday, 67}; 68 69ALIAS_MV(ec3104) 70