2 * linux/include/asm-arm/proc-fns.h
4 * Copyright (C) 1997-1999 Russell King
5 * Copyright (C) 2000 Deep Blue Solutions Ltd
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.
11 #ifndef __ASM_PROCFNS_H
12 #define __ASM_PROCFNS_H
16 #include <linux/config.h>
19 * Work out if we need multiple CPU support
25 * CPU_NAME - the prefix for CPU related functions
29 # ifdef CONFIG_CPU_ARM610
34 # define CPU_NAME cpu_arm6
37 # ifdef CONFIG_CPU_ARM710
42 # define CPU_NAME cpu_arm7
45 # ifdef CONFIG_CPU_ARM720T
50 # define CPU_NAME cpu_arm720
53 # ifdef CONFIG_CPU_ARM920T
58 # define CPU_NAME cpu_arm920
61 # ifdef CONFIG_CPU_ARM922T
66 # define CPU_NAME cpu_arm922
69 # ifdef CONFIG_CPU_ARM925T
74 # define CPU_NAME cpu_arm925
77 # ifdef CONFIG_CPU_ARM926T
82 # define CPU_NAME cpu_arm926
85 # ifdef CONFIG_CPU_SA110
90 # define CPU_NAME cpu_sa110
93 # ifdef CONFIG_CPU_SA1100
98 # define CPU_NAME cpu_sa1100
101 # ifdef CONFIG_CPU_ARM1020
106 # define CPU_NAME cpu_arm1020
109 # ifdef CONFIG_CPU_ARM1020E
114 # define CPU_NAME cpu_arm1020e
117 # ifdef CONFIG_CPU_ARM1022
122 # define CPU_NAME cpu_arm1022
125 # ifdef CONFIG_CPU_ARM1026
130 # define CPU_NAME cpu_arm1026
133 # ifdef CONFIG_CPU_XSCALE
138 # define CPU_NAME cpu_xscale
141 # ifdef CONFIG_CPU_V6
146 # define CPU_NAME cpu_v6
150 #if 1 // add by Victor Yu. 06-08-2005
151 # ifdef CONFIG_CPU_FA520
156 # define CPU_NAME cpu_fa520
159 # ifdef CONFIG_CPU_FA526
164 # define CPU_NAME cpu_fa526
167 # ifdef CONFIG_CPU_FA626
172 # define CPU_NAME cpu_fa626
182 #include "asm/cpu-single.h"
184 #include "asm/cpu-multi32.h"
187 #include <asm/memory.h>
189 #define cpu_switch_mm(pgd,mm) cpu_do_switch_mm(virt_to_phys(pgd),mm)
191 #define cpu_get_pgd() \
194 __asm__("mrc p15, 0, %0, c2, c0, 0" \
195 : "=r" (pg) : : "cc"); \
197 (pgd_t *)phys_to_virt(pg); \
200 #endif /* __ASSEMBLY__ */
201 #endif /* __KERNEL__ */
202 #endif /* __ASM_PROCFNS_H */