machvec.h (b42f5b0f0fd8c1c442c1b29a3fbcb338e8bd7732) machvec.h (86e4dd5add77ab809f5427391dfabb8f78cbcb58)
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 */

--- 5 unchanged lines hidden (view full) ---

14#include <linux/time.h>
15#include <generated/machtypes.h>
16
17struct sh_machine_vector {
18 void (*mv_setup)(char **cmdline_p);
19 const char *mv_name;
20 int mv_nr_irqs;
21
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 */

--- 5 unchanged lines hidden (view full) ---

14#include <linux/time.h>
15#include <generated/machtypes.h>
16
17struct sh_machine_vector {
18 void (*mv_setup)(char **cmdline_p);
19 const char *mv_name;
20 int mv_nr_irqs;
21
22 int (*mv_irq_demux)(int irq);
23 void (*mv_init_irq)(void);
24
25#ifdef CONFIG_HAS_IOPORT
22 u8 (*mv_inb)(unsigned long);
23 u16 (*mv_inw)(unsigned long);
24 u32 (*mv_inl)(unsigned long);
25 void (*mv_outb)(u8, unsigned long);
26 void (*mv_outw)(u16, unsigned long);
27 void (*mv_outl)(u32, unsigned long);
28
29 u8 (*mv_inb_p)(unsigned long);

--- 5 unchanged lines hidden (view full) ---

35
36 void (*mv_insb)(unsigned long, void *dst, unsigned long count);
37 void (*mv_insw)(unsigned long, void *dst, unsigned long count);
38 void (*mv_insl)(unsigned long, void *dst, unsigned long count);
39 void (*mv_outsb)(unsigned long, const void *src, unsigned long count);
40 void (*mv_outsw)(unsigned long, const void *src, unsigned long count);
41 void (*mv_outsl)(unsigned long, const void *src, unsigned long count);
42
26 u8 (*mv_inb)(unsigned long);
27 u16 (*mv_inw)(unsigned long);
28 u32 (*mv_inl)(unsigned long);
29 void (*mv_outb)(u8, unsigned long);
30 void (*mv_outw)(u16, unsigned long);
31 void (*mv_outl)(u32, unsigned long);
32
33 u8 (*mv_inb_p)(unsigned long);

--- 5 unchanged lines hidden (view full) ---

39
40 void (*mv_insb)(unsigned long, void *dst, unsigned long count);
41 void (*mv_insw)(unsigned long, void *dst, unsigned long count);
42 void (*mv_insl)(unsigned long, void *dst, unsigned long count);
43 void (*mv_outsb)(unsigned long, const void *src, unsigned long count);
44 void (*mv_outsw)(unsigned long, const void *src, unsigned long count);
45 void (*mv_outsl)(unsigned long, const void *src, unsigned long count);
46
43 int (*mv_irq_demux)(int irq);
44
45 void (*mv_init_irq)(void);
46
47 void __iomem *(*mv_ioport_map)(unsigned long port, unsigned int size);
48 void (*mv_ioport_unmap)(void __iomem *);
47 void __iomem *(*mv_ioport_map)(unsigned long port, unsigned int size);
48 void (*mv_ioport_unmap)(void __iomem *);
49#endif
49
50 int (*mv_clk_init)(void);
51 int (*mv_mode_pins)(void);
52
53 void (*mv_mem_init)(void);
54};
55
56extern struct sh_machine_vector sh_mv;
57
58#define get_system_type() sh_mv.mv_name
59
60#define __initmv \
61 __used __section(.machvec.init)
62
63#endif /* _ASM_SH_MACHVEC_H */
50
51 int (*mv_clk_init)(void);
52 int (*mv_mode_pins)(void);
53
54 void (*mv_mem_init)(void);
55};
56
57extern struct sh_machine_vector sh_mv;
58
59#define get_system_type() sh_mv.mv_name
60
61#define __initmv \
62 __used __section(.machvec.init)
63
64#endif /* _ASM_SH_MACHVEC_H */