This commit was manufactured by cvs2svn to create branch 'vserver'.
[linux-2.6.git] / arch / arm / mach-s3c2410 / cpu.h
1 /* arch/arm/mach-s3c2410/cpu.h
2  *
3  * Copyright (c) 2004 Simtec Electronics
4  * Ben Dooks <ben@simtec.co.uk>
5  *
6  * Header file for S3C24XX CPU support
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License version 2 as
10  * published by the Free Software Foundation.
11  *
12  * Modifications:
13  *     24-Aug-2004 BJD  Start of generic S3C24XX support
14 */
15
16 #define IODESC_ENT(x) { S3C2410_VA_##x, S3C2410_PA_##x, S3C2410_SZ_##x, MT_DEVICE }
17
18 #ifndef MHZ
19 #define MHZ (1000*1000)
20 #endif
21
22 #define print_mhz(m) ((m) / MHZ), ((m / 1000) % 1000)
23
24 #ifdef CONFIG_CPU_S3C2410
25 extern  int s3c2410_init(void);
26 extern void s3c2410_map_io(struct map_desc *mach_desc, int size);
27 #else
28 #define s3c2410_map_io NULL
29 #define s3c2410_init NULL
30 #endif
31
32 #ifdef CONFIG_CPU_S3C2440
33 extern  int s3c2440_init(void);
34 extern void s3c2440_map_io(struct map_desc *mach_desc, int size);
35 #else
36 #define s3c2440_map_io NULL
37 #define s3c2440_init NULL
38 #endif
39
40 extern void s3c24xx_init_io(struct map_desc *mach_desc, int size);
41