summaryrefslogtreecommitdiffstats
path: root/arch/m68k/include/asm/mach-types.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/m68k/include/asm/mach-types.h')
-rw-r--r--arch/m68k/include/asm/mach-types.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/arch/m68k/include/asm/mach-types.h b/arch/m68k/include/asm/mach-types.h
new file mode 100644
index 0000000000..d221fcc892
--- /dev/null
+++ b/arch/m68k/include/asm/mach-types.h
@@ -0,0 +1,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