Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
| 2 | * include/asm-sh/machvec.h |
| 3 | * |
| 4 | * Copyright 2000 Stuart Menefy (stuart.menefy@st.com) |
| 5 | * |
| 6 | * May be copied or modified under the terms of the GNU General Public |
| 7 | * License. See linux/COPYING for more information. |
| 8 | */ |
| 9 | |
| 10 | #ifndef _ASM_SH_MACHVEC_H |
Paul Mundt | 2c7834a | 2006-09-27 18:17:31 +0900 | [diff] [blame] | 11 | #define _ASM_SH_MACHVEC_H |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 12 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | #include <linux/types.h> |
| 14 | #include <linux/time.h> |
Sam Ravnborg | 3252b11 | 2009-10-17 22:20:22 +0200 | [diff] [blame] | 15 | #include <generated/machtypes.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 16 | |
Paul Mundt | b66c1a3 | 2006-01-16 22:14:15 -0800 | [diff] [blame] | 17 | struct sh_machine_vector { |
Paul Mundt | 2c7834a | 2006-09-27 18:17:31 +0900 | [diff] [blame] | 18 | void (*mv_setup)(char **cmdline_p); |
| 19 | const char *mv_name; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 20 | |
Paul Mundt | 86e4dd5 | 2010-05-25 20:06:13 +0900 | [diff] [blame] | 21 | int (*mv_irq_demux)(int irq); |
| 22 | void (*mv_init_irq)(void); |
| 23 | |
Uwe Kleine-König | ce816fa | 2014-04-07 15:39:19 -0700 | [diff] [blame] | 24 | #ifdef CONFIG_HAS_IOPORT_MAP |
Paul Mundt | b66c1a3 | 2006-01-16 22:14:15 -0800 | [diff] [blame] | 25 | void __iomem *(*mv_ioport_map)(unsigned long port, unsigned int size); |
| 26 | void (*mv_ioport_unmap)(void __iomem *); |
Paul Mundt | 86e4dd5 | 2010-05-25 20:06:13 +0900 | [diff] [blame] | 27 | #endif |
Paul Mundt | 253b088 | 2009-05-13 17:38:11 +0900 | [diff] [blame] | 28 | |
| 29 | int (*mv_clk_init)(void); |
Magnus Damm | eb9b9b5 | 2009-05-28 11:51:51 +0000 | [diff] [blame] | 30 | int (*mv_mode_pins)(void); |
Paul Mundt | 19d8f84 | 2010-05-10 15:39:05 +0900 | [diff] [blame] | 31 | |
| 32 | void (*mv_mem_init)(void); |
Paul Mundt | 2f59986 | 2011-01-07 15:19:56 +0900 | [diff] [blame] | 33 | void (*mv_mem_reserve)(void); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 34 | }; |
| 35 | |
| 36 | extern struct sh_machine_vector sh_mv; |
| 37 | |
Paul Mundt | 2c7834a | 2006-09-27 18:17:31 +0900 | [diff] [blame] | 38 | #define get_system_type() sh_mv.mv_name |
| 39 | |
Paul Mundt | 82f81f4 | 2007-05-15 15:19:34 +0900 | [diff] [blame] | 40 | #define __initmv \ |
Adrian Bunk | 3ff6eec | 2008-01-24 22:16:20 +0100 | [diff] [blame] | 41 | __used __section(.machvec.init) |
Paul Mundt | 82f81f4 | 2007-05-15 15:19:34 +0900 | [diff] [blame] | 42 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 43 | #endif /* _ASM_SH_MACHVEC_H */ |