summaryrefslogtreecommitdiffstats
path: root/include/asm-m68k/mach-types.h
blob: d221fcc892ffc10e0debf426419b397ad61f7582 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
 * This was automagically generated from arch/m68k/tools/mach-types!
 * Do NOT edit
 */

#ifndef __ASM_M68K_MACH_TYPE_H
#define __ASM_M68K_MACH_TYPE_H

#ifndef __ASSEMBLY__
/* The type of machine we're running on */
extern unsigned int __machine_arch_type;
#endif

/* see arch/m68k/kernel/arch.c for a description of these */
#define MACH_TYPE_GENERIC       0
#define MACH_TYPE_MCF54xx       1
#define MACH_TYPE_MCF5445x      2

#ifdef CONFIG_ARCH_MCF54xx
# ifdef machine_arch_type
#  undef machine_arch_type
#  define machine_arch_type	__machine_arch_type
# else
#  define machine_arch_type	MACH_TYPE_MCF54xx
# endif
# define machine_is_mcf54xx()	(machine_arch_type == MACH_TYPE_MCF54xx)
#else
# define machine_is_mcf54xx()	(0)
#endif

#ifdef CONFIG_ARCH_MCF5445x
# ifdef machine_arch_type
#  undef machine_arch_type
#  define machine_arch_type	__machine_arch_type
# else
#  define machine_arch_type	MACH_TYPE_MCF5445x
# endif
# define machine_is_mcf5445x()	(machine_arch_type == MACH_TYPE_MCF5445x)
#else
# define machine_is_mcf5445x()	(0)
#endif


#ifndef machine_arch_type
#define machine_arch_type	__machine_arch_type
#endif

#endif