Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
machvec.h
Go to the documentation of this file.
1 /*
2  * include/asm-sh/machvec.h
3  *
4  * Copyright 2000 Stuart Menefy ([email protected])
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
11 #define _ASM_SH_MACHVEC_H
12 
13 #include <linux/types.h>
14 #include <linux/time.h>
15 #include <generated/machtypes.h>
16 
18  void (*mv_setup)(char **cmdline_p);
19  const char *mv_name;
20 
21  int (*mv_irq_demux)(int irq);
23 
24 #ifdef CONFIG_HAS_IOPORT
25  void __iomem *(*mv_ioport_map)(unsigned long port, unsigned int size);
26  void (*mv_ioport_unmap)(void __iomem *);
27 #endif
28 
31 
34 };
35 
36 extern struct sh_machine_vector sh_mv;
37 
38 #define get_system_type() sh_mv.mv_name
39 
40 #define __initmv \
41  __used __section(.machvec.init)
42 
43 #endif /* _ASM_SH_MACHVEC_H */