machvec.h 939 字节
Newer Older
L
Linus Torvalds 已提交
1 2 3 4 5 6 7 8 9 10
/*
 * include/asm-sh/machvec.h
 *
 * Copyright 2000 Stuart Menefy (stuart.menefy@st.com)
 *
 * May be copied or modified under the terms of the GNU General Public
 * License.  See linux/COPYING for more information.
 */

#ifndef _ASM_SH_MACHVEC_H
P
Paul Mundt 已提交
11
#define _ASM_SH_MACHVEC_H
L
Linus Torvalds 已提交
12 13 14

#include <linux/types.h>
#include <linux/time.h>
15
#include <generated/machtypes.h>
L
Linus Torvalds 已提交
16

17
struct sh_machine_vector {
P
Paul Mundt 已提交
18 19
	void (*mv_setup)(char **cmdline_p);
	const char *mv_name;
L
Linus Torvalds 已提交
20

21 22 23
	int (*mv_irq_demux)(int irq);
	void (*mv_init_irq)(void);

24
#ifdef CONFIG_HAS_IOPORT_MAP
25 26
	void __iomem *(*mv_ioport_map)(unsigned long port, unsigned int size);
	void (*mv_ioport_unmap)(void __iomem *);
27
#endif
28 29

	int (*mv_clk_init)(void);
30
	int (*mv_mode_pins)(void);
31 32

	void (*mv_mem_init)(void);
33
	void (*mv_mem_reserve)(void);
L
Linus Torvalds 已提交
34 35 36 37
};

extern struct sh_machine_vector sh_mv;

P
Paul Mundt 已提交
38 39
#define get_system_type()	sh_mv.mv_name

P
Paul Mundt 已提交
40
#define __initmv \
A
Adrian Bunk 已提交
41
	__used __section(.machvec.init)
P
Paul Mundt 已提交
42

L
Linus Torvalds 已提交
43
#endif /* _ASM_SH_MACHVEC_H */