patch-2_6_7-vs1_9_1_12
[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 #include <asm/types.h>
19
20 #ifdef CONFIG_40x
21
22 #if defined(CONFIG_ASH)
23 #include <platforms/4xx/ash.h>
24 #endif
25
26 #if defined(CONFIG_BUBINGA)
27 #include <platforms/4xx/bubinga.h>
28 #endif
29
30 #if defined(CONFIG_CPCI405)
31 #include <platforms/4xx/cpci405.h>
32 #endif
33
34 #if defined(CONFIG_EP405)
35 #include <platforms/4xx/ep405.h>
36 #endif
37
38 #if defined(CONFIG_OAK)
39 #include <platforms/4xx/oak.h>
40 #endif
41
42 #if defined(CONFIG_REDWOOD_4)
43 #include <platforms/4xx/redwood.h>
44 #endif
45
46 #if defined(CONFIG_REDWOOD_5)
47 #include <platforms/4xx/redwood5.h>
48 #endif
49
50 #if defined(CONFIG_REDWOOD_6)
51 #include <platforms/4xx/redwood6.h>
52 #endif
53
54 #if defined(CONFIG_SYCAMORE)
55 #include <platforms/4xx/sycamore.h>
56 #endif
57
58 #if defined(CONFIG_WALNUT)
59 #include <platforms/4xx/walnut.h>
60 #endif
61
62 #ifndef __ASSEMBLY__
63
64 #ifdef CONFIG_40x
65 /*
66  * The "residual" board information structure the boot loader passes
67  * into the kernel.
68  */
69 extern bd_t __res;
70 #endif
71
72 void ppc4xx_setup_arch(void);
73 void ppc4xx_map_io(void);
74 void ppc4xx_init_IRQ(void);
75 void ppc4xx_init(unsigned long r3, unsigned long r4, unsigned long r5,
76                  unsigned long r6, unsigned long r7);
77 #endif
78
79 #ifndef PPC4xx_MACHINE_NAME
80 #define PPC4xx_MACHINE_NAME     "Unidentified 4xx class"
81 #endif
82
83
84 /* IO_BASE is for PCI I/O.
85  * ISA not supported, just here to resolve copilation.
86  */
87
88 #ifndef _IO_BASE
89 #define _IO_BASE        0xe8000000      /* The PCI address window */
90 #define _ISA_MEM_BASE   0
91 #define PCI_DRAM_OFFSET 0
92 #endif
93
94 #elif CONFIG_44x
95
96 #if defined(CONFIG_EBONY)
97 #include <platforms/4xx/ebony.h>
98 #endif
99
100 #if defined(CONFIG_OCOTEA)
101 #include <platforms/4xx/ocotea.h>
102 #endif
103
104 #ifndef __ASSEMBLY__
105 #ifdef CONFIG_40x
106 /*
107  * The "residual" board information structure the boot loader passes
108  * into the kernel.
109  */
110 extern bd_t __res;
111 #endif
112 #endif
113 #endif /* CONFIG_40x */
114
115 #endif /* __ASM_IBM4XX_H__ */
116 #endif /* __KERNEL__ */