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_ARM6
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_ARM7
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_ARM720
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_ARM920
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_SA110
64 # ifdef CPU_NAME
65 # undef MULTI_CPU
66 # define MULTI_CPU
67 # else
68 # define CPU_NAME sa110
69 # endif
70 # endif
71 # ifdef CONFIG_CPU_SA1100
72 # ifdef CPU_NAME
73 # undef MULTI_CPU
74 # define MULTI_CPU
75 # else
76 # define CPU_NAME sa1100
77 # endif
78 # endif
79 #endif
80
81 #ifndef MULTI_CPU
82 #undef CPU_INCLUDE_NAME
83 #define CPU_INCLUDE_NAME "asm/cpu-single.h"
84 #endif
85
86 #include CPU_INCLUDE_NAME
87
88 #endif /* __KERNEL__ */
89
90 #if 0
91 * The following is to fool mkdep into generating the correct
92 * dependencies. Without this, it cant figure out that this
93 * file does indeed depend on the cpu-*.h files.
94 #include <asm/cpu-single.h>
95 #include <asm/cpu-multi26.h>
96 #include <asm/cpu-multi32.h>
97 *
98 #endif
99
100 #endif /* __ASM_PROCFNS_H */
101
This page was automatically generated by the
LXR engine.
Visit the LXR main site for more
information.