]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blame - arch/sh/include/asm/machvec.h
powerpc: Parse the command line before calling CAS
[mirror_ubuntu-zesty-kernel.git] / arch / sh / include / asm / machvec.h
CommitLineData
1da177e4
LT
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
2c7834a6 11#define _ASM_SH_MACHVEC_H
1da177e4 12
1da177e4
LT
13#include <linux/types.h>
14#include <linux/time.h>
3252b11f 15#include <generated/machtypes.h>
1da177e4 16
b66c1a39 17struct sh_machine_vector {
2c7834a6
PM
18 void (*mv_setup)(char **cmdline_p);
19 const char *mv_name;
1da177e4 20
86e4dd5a
PM
21 int (*mv_irq_demux)(int irq);
22 void (*mv_init_irq)(void);
23
ce816fa8 24#ifdef CONFIG_HAS_IOPORT_MAP
b66c1a39
PM
25 void __iomem *(*mv_ioport_map)(unsigned long port, unsigned int size);
26 void (*mv_ioport_unmap)(void __iomem *);
86e4dd5a 27#endif
253b0887
PM
28
29 int (*mv_clk_init)(void);
eb9b9b56 30 int (*mv_mode_pins)(void);
19d8f84f
PM
31
32 void (*mv_mem_init)(void);
2f599861 33 void (*mv_mem_reserve)(void);
1da177e4
LT
34};
35
36extern struct sh_machine_vector sh_mv;
37
2c7834a6
PM
38#define get_system_type() sh_mv.mv_name
39
82f81f47 40#define __initmv \
3ff6eecc 41 __used __section(.machvec.init)
82f81f47 42
1da177e4 43#endif /* _ASM_SH_MACHVEC_H */