| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* | 
|  | 2 | * linux/arch/sh/boards/systemh/setup.c | 
|  | 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 | 373e68b | 2006-09-27 15:41:24 +0900 | [diff] [blame^] | 19 | #include <asm/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 |  | 
|  | 23 | const char *get_system_type(void) | 
|  | 24 | { | 
|  | 25 | return "7751 SystemH"; | 
|  | 26 | } | 
|  | 27 |  | 
|  | 28 | /* | 
|  | 29 | * Initialize IRQ setting | 
|  | 30 | */ | 
|  | 31 | void __init init_7751systemh_IRQ(void) | 
|  | 32 | { | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 33 | make_systemh_irq(0xb);	/* Ethernet interrupt */ | 
|  | 34 | } | 
|  | 35 |  | 
|  | 36 | struct sh_machine_vector mv_7751systemh __initmv = { | 
|  | 37 | .mv_nr_irqs		= 72, | 
|  | 38 |  | 
|  | 39 | .mv_inb			= sh7751systemh_inb, | 
|  | 40 | .mv_inw			= sh7751systemh_inw, | 
|  | 41 | .mv_inl			= sh7751systemh_inl, | 
|  | 42 | .mv_outb		= sh7751systemh_outb, | 
|  | 43 | .mv_outw		= sh7751systemh_outw, | 
|  | 44 | .mv_outl		= sh7751systemh_outl, | 
|  | 45 |  | 
|  | 46 | .mv_inb_p		= sh7751systemh_inb_p, | 
|  | 47 | .mv_inw_p		= sh7751systemh_inw, | 
|  | 48 | .mv_inl_p		= sh7751systemh_inl, | 
|  | 49 | .mv_outb_p		= sh7751systemh_outb_p, | 
|  | 50 | .mv_outw_p		= sh7751systemh_outw, | 
|  | 51 | .mv_outl_p		= sh7751systemh_outl, | 
|  | 52 |  | 
|  | 53 | .mv_insb		= sh7751systemh_insb, | 
|  | 54 | .mv_insw		= sh7751systemh_insw, | 
|  | 55 | .mv_insl		= sh7751systemh_insl, | 
|  | 56 | .mv_outsb		= sh7751systemh_outsb, | 
|  | 57 | .mv_outsw		= sh7751systemh_outsw, | 
|  | 58 | .mv_outsl		= sh7751systemh_outsl, | 
|  | 59 |  | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 60 | .mv_init_irq		= init_7751systemh_IRQ, | 
|  | 61 | }; | 
|  | 62 | ALIAS_MV(7751systemh) | 
|  | 63 |  | 
|  | 64 | int __init platform_setup(void) | 
|  | 65 | { | 
|  | 66 | return 0; | 
|  | 67 | } | 
|  | 68 |  |