diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-08-01 13:53:43 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-08-01 13:53:43 -0400 |
commit | 00e9028a95fb8a4d79f2fb695a853f33ea7d3b57 (patch) | |
tree | 2dea2ae498a6ce57de8890e87185aca5e9f3ad2d /arch/sh/include/asm/machvec.h | |
parent | 57b1494d2ba544c62673234da6115c21fac27ffc (diff) | |
parent | 7cb93181629c613ee2b8f4ffe3446f8003074842 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6: (28 commits)
mm/hugetlb.c must #include <asm/io.h>
video: Fix up hp6xx driver build regressions.
sh: defconfig updates.
sh: Kill off stray mach-rsk7203 reference.
serial: sh-sci: Fix up SH7760/SH7780/SH7785 early printk regression.
sh: Move out individual boards without mach groups.
sh: Make sure AT_SYSINFO_EHDR is exposed to userspace in asm/auxvec.h.
sh: Allow SH-3 and SH-5 to use common headers.
sh: Provide common CPU headers, prune the SH-2 and SH-2A directories.
sh/maple: clean maple bus code
sh: More header path fixups for mach dir refactoring.
sh: Move out the solution engine headers to arch/sh/include/mach-se/
sh: I2C fix for AP325RXA and Migo-R
sh: Shuffle the board directories in to mach groups.
sh: dma-sh: Fix up dreamcast dma.h mach path.
sh: Switch KBUILD_DEFCONFIG to shx3_defconfig.
sh: Add ARCH_DEFCONFIG entries for sh and sh64.
sh: Fix compile error of Solution Engine
sh: Proper __put_user_asm() size mismatch fix.
sh: Stub in a dummy ENTRY_OFFSET for uImage offset calculation.
...
Diffstat (limited to 'arch/sh/include/asm/machvec.h')
-rw-r--r-- | arch/sh/include/asm/machvec.h | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/arch/sh/include/asm/machvec.h b/arch/sh/include/asm/machvec.h new file mode 100644 index 000000000000..b2e4124070ae --- /dev/null +++ b/arch/sh/include/asm/machvec.h | |||
@@ -0,0 +1,70 @@ | |||
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 | ||
11 | #define _ASM_SH_MACHVEC_H | ||
12 | |||
13 | #include <linux/types.h> | ||
14 | #include <linux/time.h> | ||
15 | #include <asm/machtypes.h> | ||
16 | |||
17 | struct device; | ||
18 | |||
19 | struct sh_machine_vector { | ||
20 | void (*mv_setup)(char **cmdline_p); | ||
21 | const char *mv_name; | ||
22 | int mv_nr_irqs; | ||
23 | |||
24 | u8 (*mv_inb)(unsigned long); | ||
25 | u16 (*mv_inw)(unsigned long); | ||
26 | u32 (*mv_inl)(unsigned long); | ||
27 | void (*mv_outb)(u8, unsigned long); | ||
28 | void (*mv_outw)(u16, unsigned long); | ||
29 | void (*mv_outl)(u32, unsigned long); | ||
30 | |||
31 | u8 (*mv_inb_p)(unsigned long); | ||
32 | u16 (*mv_inw_p)(unsigned long); | ||
33 | u32 (*mv_inl_p)(unsigned long); | ||
34 | void (*mv_outb_p)(u8, unsigned long); | ||
35 | void (*mv_outw_p)(u16, unsigned long); | ||
36 | void (*mv_outl_p)(u32, unsigned long); | ||
37 | |||
38 | void (*mv_insb)(unsigned long, void *dst, unsigned long count); | ||
39 | void (*mv_insw)(unsigned long, void *dst, unsigned long count); | ||
40 | void (*mv_insl)(unsigned long, void *dst, unsigned long count); | ||
41 | void (*mv_outsb)(unsigned long, const void *src, unsigned long count); | ||
42 | void (*mv_outsw)(unsigned long, const void *src, unsigned long count); | ||
43 | void (*mv_outsl)(unsigned long, const void *src, unsigned long count); | ||
44 | |||
45 | u8 (*mv_readb)(void __iomem *); | ||
46 | u16 (*mv_readw)(void __iomem *); | ||
47 | u32 (*mv_readl)(void __iomem *); | ||
48 | void (*mv_writeb)(u8, void __iomem *); | ||
49 | void (*mv_writew)(u16, void __iomem *); | ||
50 | void (*mv_writel)(u32, void __iomem *); | ||
51 | |||
52 | int (*mv_irq_demux)(int irq); | ||
53 | |||
54 | void (*mv_init_irq)(void); | ||
55 | void (*mv_init_pci)(void); | ||
56 | |||
57 | void (*mv_heartbeat)(void); | ||
58 | |||
59 | void __iomem *(*mv_ioport_map)(unsigned long port, unsigned int size); | ||
60 | void (*mv_ioport_unmap)(void __iomem *); | ||
61 | }; | ||
62 | |||
63 | extern struct sh_machine_vector sh_mv; | ||
64 | |||
65 | #define get_system_type() sh_mv.mv_name | ||
66 | |||
67 | #define __initmv \ | ||
68 | __used __section(.machvec.init) | ||
69 | |||
70 | #endif /* _ASM_SH_MACHVEC_H */ | ||