MOXA linux-2.6.x / linux-2.6.19-uc1 from UC-7110-LX-BOOTLOADER-1.9_VERSION-4.2.tgz
[linux-2.6.19-moxart.git] / include / asm-arm / cpu-single.h
blob9d5074343de1ecddb589023f460fd1789a856219
1 /*
2 * linux/include/asm-arm/cpu-single.h
4 * Copyright (C) 2000 Russell King
5 * Modified by Hyok S. Choi, 2004
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
12 * Single CPU
14 #ifdef __STDC__
15 #define __catify_fn(name,x) name##x
16 #else
17 #define __catify_fn(name,x) name/**/x
18 #endif
19 #define __cpu_fn(name,x) __catify_fn(name,x)
22 * If we are supporting multiple CPUs, then we must use a table of
23 * function pointers for this lot. Otherwise, we can optimise the
24 * table away.
26 #define cpu_proc_init __cpu_fn(CPU_NAME,_proc_init)
27 #define cpu_proc_fin __cpu_fn(CPU_NAME,_proc_fin)
28 #define cpu_reset __cpu_fn(CPU_NAME,_reset)
29 #define cpu_do_idle __cpu_fn(CPU_NAME,_do_idle)
30 #define cpu_dcache_clean_area __cpu_fn(CPU_NAME,_dcache_clean_area)
31 #define cpu_do_switch_mm __cpu_fn(CPU_NAME,_switch_mm)
32 #ifdef CONFIG_MMU
33 #define cpu_set_pte __cpu_fn(CPU_NAME,_set_pte)
34 #endif
36 #include <asm/page.h>
38 struct mm_struct;
40 /* declare all the functions as extern */
41 extern void cpu_proc_init(void);
42 extern void cpu_proc_fin(void);
43 extern int cpu_do_idle(void);
44 extern void cpu_dcache_clean_area(void *, int);
45 extern void cpu_do_switch_mm(unsigned long pgd_phys, struct mm_struct *mm);
46 #ifdef CONFIG_MMU
47 extern void cpu_set_pte(pte_t *ptep, pte_t pte);
48 #endif
49 extern void cpu_reset(unsigned long addr) __attribute__((noreturn));