| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* | 
| Uwe Zeisberger | f30c226 | 2006-10-03 23:01:26 +0200 | [diff] [blame] | 2 | * linux/arch/sh/boards/renesas/systemh/setup.c | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3 | * | 
|  | 4 | * Copyright (C) 2000  Kazumoto Kojima | 
|  | 5 | * Copyright (C) 2003  Paul Mundt | 
|  | 6 | * | 
|  | 7 | * Hitachi SystemH Support. | 
|  | 8 | * | 
|  | 9 | * Modified for 7751 SystemH by Jonathan Short. | 
|  | 10 | * | 
|  | 11 | * Rewritten for 2.6 by Paul Mundt. | 
|  | 12 | * | 
|  | 13 | * This file is subject to the terms and conditions of the GNU General Public | 
|  | 14 | * License.  See the file "COPYING" in the main directory of this archive | 
|  | 15 | * for more details. | 
|  | 16 | */ | 
|  | 17 | #include <linux/init.h> | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 18 | #include <asm/machvec.h> | 
| Paul Mundt | 7639a45 | 2008-10-20 13:02:48 +0900 | [diff] [blame] | 19 | #include <mach/systemh7751.h> | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 20 |  | 
|  | 21 | extern void make_systemh_irq(unsigned int irq); | 
|  | 22 |  | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 23 | /* | 
|  | 24 | * Initialize IRQ setting | 
|  | 25 | */ | 
| Paul Mundt | 2c7834a | 2006-09-27 18:17:31 +0900 | [diff] [blame] | 26 | static void __init sh7751systemh_init_irq(void) | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 27 | { | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 28 | make_systemh_irq(0xb);	/* Ethernet interrupt */ | 
|  | 29 | } | 
|  | 30 |  | 
| Paul Mundt | 82f81f4 | 2007-05-15 15:19:34 +0900 | [diff] [blame] | 31 | static struct sh_machine_vector mv_7751systemh __initmv = { | 
| Paul Mundt | 2c7834a | 2006-09-27 18:17:31 +0900 | [diff] [blame] | 32 | .mv_name		= "7751 SystemH", | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 33 | .mv_nr_irqs		= 72, | 
|  | 34 |  | 
|  | 35 | .mv_inb			= sh7751systemh_inb, | 
|  | 36 | .mv_inw			= sh7751systemh_inw, | 
|  | 37 | .mv_inl			= sh7751systemh_inl, | 
|  | 38 | .mv_outb		= sh7751systemh_outb, | 
|  | 39 | .mv_outw		= sh7751systemh_outw, | 
|  | 40 | .mv_outl		= sh7751systemh_outl, | 
|  | 41 |  | 
|  | 42 | .mv_inb_p		= sh7751systemh_inb_p, | 
|  | 43 | .mv_inw_p		= sh7751systemh_inw, | 
|  | 44 | .mv_inl_p		= sh7751systemh_inl, | 
|  | 45 | .mv_outb_p		= sh7751systemh_outb_p, | 
|  | 46 | .mv_outw_p		= sh7751systemh_outw, | 
|  | 47 | .mv_outl_p		= sh7751systemh_outl, | 
|  | 48 |  | 
|  | 49 | .mv_insb		= sh7751systemh_insb, | 
|  | 50 | .mv_insw		= sh7751systemh_insw, | 
|  | 51 | .mv_insl		= sh7751systemh_insl, | 
|  | 52 | .mv_outsb		= sh7751systemh_outsb, | 
|  | 53 | .mv_outsw		= sh7751systemh_outsw, | 
|  | 54 | .mv_outsl		= sh7751systemh_outsl, | 
|  | 55 |  | 
| Paul Mundt | 711fa80 | 2006-10-03 13:14:04 +0900 | [diff] [blame] | 56 | .mv_init_irq		= sh7751systemh_init_irq, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 57 | }; |