ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / include / asm-ppc / ibm4xx.h
1 /*
2  *
3  *    Copyright (c) 1999 Grant Erickson <grant@lcse.umn.edu>
4  *
5  *    Module name: ibm4xx.h
6  *
7  *    Description:
8  *      A generic include file which pulls in appropriate include files
9  *      for specific board types based on configuration settings.
10  *
11  */
12
13 #ifdef __KERNEL__
14 #ifndef __ASM_IBM4XX_H__
15 #define __ASM_IBM4XX_H__
16
17 #include <linux/config.h>
18
19 #ifdef CONFIG_40x
20
21 #if defined(CONFIG_ASH)
22 #include <platforms/4xx/ash.h>
23 #endif
24
25 #if defined (CONFIG_CEDAR)
26 #include <platforms/4xx/cedar.h>
27 #endif
28
29 #if defined(CONFIG_CPCI405)
30 #include <platforms/4xx/cpci405.h>
31 #endif
32
33 #if defined(CONFIG_EP405)
34 #include <platforms/4xx/ep405.h>
35 #endif
36
37 #if defined(CONFIG_OAK)
38 #include <platforms/4xx/oak.h>
39 #endif
40
41 #if defined(CONFIG_REDWOOD_4)
42 #include <platforms/4xx/redwood.h>
43 #endif
44
45 #if defined(CONFIG_REDWOOD_5)
46 #include <platforms/4xx/redwood5.h>
47 #endif
48
49 #if defined(CONFIG_WALNUT)
50 #include <platforms/4xx/walnut.h>
51 #endif
52
53 #ifndef __ASSEMBLY__
54
55 /*
56  * The "residual" board information structure the boot loader passes
57  * into the kernel.
58  */
59 extern bd_t __res;
60
61 void ppc4xx_setup_arch(void);
62 void ppc4xx_map_io(void);
63 void ppc4xx_init_IRQ(void);
64 void ppc4xx_init(unsigned long r3, unsigned long r4, unsigned long r5,
65                  unsigned long r6, unsigned long r7);
66 #endif
67
68 #ifndef PPC4xx_MACHINE_NAME
69 #define PPC4xx_MACHINE_NAME     "Unidentified 4xx class"
70 #endif
71
72
73 /* IO_BASE is for PCI I/O.
74  * ISA not supported, just here to resolve copilation.
75  */
76
77 #ifndef _IO_BASE
78 #define _IO_BASE        0xe8000000      /* The PCI address window */
79 #define _ISA_MEM_BASE   0
80 #define PCI_DRAM_OFFSET 0
81 #endif
82
83 #elif CONFIG_44x
84
85 #if defined(CONFIG_EBONY)
86 #include <platforms/4xx/ebony.h>
87 #endif
88
89 #if defined(CONFIG_OCOTEA)
90 #include <platforms/4xx/ocotea.h>
91 #endif
92
93 #ifndef __ASSEMBLY__
94 /*
95  * The "residual" board information structure the boot loader passes
96  * into the kernel.
97  */
98 extern bd_t __res;
99 #endif
100 #endif /* CONFIG_40x */
101
102 #endif /* __ASM_IBM4XX_H__ */
103 #endif /* __KERNEL__ */