1 /*
2  *  linux/include/asm-arm/proc-fns.h
3  *
4  *  Copyright (C) 1997-1999 Russell King
5  *  Copyright (C) 2000 Deep Blue Solutions Ltd
6  *
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.
10  */
11 #ifndef __ASM_PROCFNS_H
12 #define __ASM_PROCFNS_H
13 
14 #ifdef __KERNEL__
15 
16 #include <linux/config.h>
17 
18 /*
19  * Work out if we need multiple CPU support
20  */
21 #undef MULTI_CPU
22 #undef CPU_NAME
23 
24 #ifdef CONFIG_CPU_26
25 # define CPU_INCLUDE_NAME "asm/cpu-multi26.h"
26 # define MULTI_CPU
27 #endif
28 
29 #ifdef CONFIG_CPU_32
30 # define CPU_INCLUDE_NAME "asm/cpu-multi32.h"
31 # ifdef CONFIG_CPU_ARM610
32 #  ifdef CPU_NAME
33 #   undef  MULTI_CPU
34 #   define MULTI_CPU
35 #  else
36 #   define CPU_NAME arm6
37 #  endif
38 # endif
39 # ifdef CONFIG_CPU_ARM710
40 #  ifdef CPU_NAME
41 #   undef  MULTI_CPU
42 #   define MULTI_CPU
43 #  else
44 #   define CPU_NAME arm7
45 #  endif
46 # endif
47 # ifdef CONFIG_CPU_ARM720T
48 #  ifdef CPU_NAME
49 #   undef  MULTI_CPU
50 #   define MULTI_CPU
51 #  else
52 #   define CPU_NAME arm720
53 #  endif
54 # endif
55 # ifdef CONFIG_CPU_ARM920T
56 #  ifdef CPU_NAME
57 #   undef  MULTI_CPU
58 #   define MULTI_CPU
59 #  else
60 #   define CPU_NAME arm920
61 #  endif
62 # endif
63 # ifdef CONFIG_CPU_ARM922T
64 #  ifdef CPU_NAME
65 #   undef  MULTI_CPU
66 #   define MULTI_CPU
67 #  else
68 #   define CPU_NAME arm922
69 #  endif
70 # endif
71 # ifdef CONFIG_CPU_ARM926T
72 #  ifdef CPU_NAME
73 #   undef  MULTI_CPU
74 #   define MULTI_CPU
75 #  else
76 #   define CPU_NAME arm926
77 #  endif
78 # endif
79 # ifdef CONFIG_CPU_ARM1026
80 #  ifdef CPU_NAME
81 #   undef  MULTI_CPU
82 #   define MULTI_CPU
83 #  else
84 #   define CPU_NAME arm1026
85 #  endif
86 # endif
87 # ifdef CONFIG_CPU_SA110
88 #  ifdef CPU_NAME
89 #   undef  MULTI_CPU
90 #   define MULTI_CPU
91 #  else
92 #   define CPU_NAME sa110
93 #  endif
94 # endif
95 # ifdef CONFIG_CPU_SA1100
96 #  ifdef CPU_NAME
97 #   undef  MULTI_CPU
98 #   define MULTI_CPU
99 #  else
100 #   define CPU_NAME sa1100
101 #  endif
102 # endif
103 #endif
104 
105 #ifndef MULTI_CPU
106 #undef CPU_INCLUDE_NAME
107 #define CPU_INCLUDE_NAME "asm/cpu-single.h"
108 #endif
109 
110 #include CPU_INCLUDE_NAME
111 
112 #endif /* __KERNEL__ */
113 
114 #if 0
115  * The following is to fool mkdep into generating the correct
116  * dependencies.  Without this, it cant figure out that this
117  * file does indeed depend on the cpu-*.h files.
118 #include <asm/cpu-single.h>
119 #include <asm/cpu-multi26.h>
120 #include <asm/cpu-multi32.h>
121  *
122 #endif
123 
124 #endif /* __ASM_PROCFNS_H */
125