diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2008-05-18 14:47:21 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-05-18 16:28:50 -0400 |
commit | 52de114e357b8035d54040be8b9148de437b5b4b (patch) | |
tree | 8eeca3387e15a2c4e54ac4a4a4b404744b2dbd06 /include | |
parent | 91cf248396d18989f5f4090497723f4f90c8971f (diff) |
m68k: Prefix ISA type with ISA_TYPE_
The *_ISA type defines are quite generic and cause namespace conflicts
(e.g. with `AMIGAHW_DECLARE(GG2_ISA)' in <asm/amigahw.h>) for some kernel
configurations. Use ISA_TYPE_* to avoid such conflicts.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-m68k/io.h | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/include/asm-m68k/io.h b/include/asm-m68k/io.h index baf4f9b8acfc..657187f0c7c2 100644 --- a/include/asm-m68k/io.h +++ b/include/asm-m68k/io.h | |||
@@ -91,20 +91,20 @@ extern unsigned long gg2_isa_base; | |||
91 | #undef MULTI_ISA | 91 | #undef MULTI_ISA |
92 | #endif | 92 | #endif |
93 | 93 | ||
94 | #define Q40_ISA (1) | 94 | #define ISA_TYPE_Q40 (1) |
95 | #define GG2_ISA (2) | 95 | #define ISA_TYPE_GG2 (2) |
96 | #define AG_ISA (3) | 96 | #define ISA_TYPE_AG (3) |
97 | 97 | ||
98 | #if defined(CONFIG_Q40) && !defined(MULTI_ISA) | 98 | #if defined(CONFIG_Q40) && !defined(MULTI_ISA) |
99 | #define ISA_TYPE Q40_ISA | 99 | #define ISA_TYPE ISA_TYPE_Q40 |
100 | #define ISA_SEX 0 | 100 | #define ISA_SEX 0 |
101 | #endif | 101 | #endif |
102 | #if defined(CONFIG_AMIGA_PCMCIA) && !defined(MULTI_ISA) | 102 | #if defined(CONFIG_AMIGA_PCMCIA) && !defined(MULTI_ISA) |
103 | #define ISA_TYPE AG_ISA | 103 | #define ISA_TYPE ISA_TYPE_AG |
104 | #define ISA_SEX 1 | 104 | #define ISA_SEX 1 |
105 | #endif | 105 | #endif |
106 | #if defined(CONFIG_GG2) && !defined(MULTI_ISA) | 106 | #if defined(CONFIG_GG2) && !defined(MULTI_ISA) |
107 | #define ISA_TYPE GG2_ISA | 107 | #define ISA_TYPE ISA_TYPE_GG2 |
108 | #define ISA_SEX 0 | 108 | #define ISA_SEX 0 |
109 | #endif | 109 | #endif |
110 | 110 | ||
@@ -126,13 +126,13 @@ static inline u8 __iomem *isa_itb(unsigned long addr) | |||
126 | switch(ISA_TYPE) | 126 | switch(ISA_TYPE) |
127 | { | 127 | { |
128 | #ifdef CONFIG_Q40 | 128 | #ifdef CONFIG_Q40 |
129 | case Q40_ISA: return (u8 __iomem *)Q40_ISA_IO_B(addr); | 129 | case ISA_TYPE_Q40: return (u8 __iomem *)Q40_ISA_IO_B(addr); |
130 | #endif | 130 | #endif |
131 | #ifdef CONFIG_GG2 | 131 | #ifdef CONFIG_GG2 |
132 | case GG2_ISA: return (u8 __iomem *)GG2_ISA_IO_B(addr); | 132 | case ISA_TYPE_GG2: return (u8 __iomem *)GG2_ISA_IO_B(addr); |
133 | #endif | 133 | #endif |
134 | #ifdef CONFIG_AMIGA_PCMCIA | 134 | #ifdef CONFIG_AMIGA_PCMCIA |
135 | case AG_ISA: return (u8 __iomem *)AG_ISA_IO_B(addr); | 135 | case ISA_TYPE_AG: return (u8 __iomem *)AG_ISA_IO_B(addr); |
136 | #endif | 136 | #endif |
137 | default: return NULL; /* avoid warnings, just in case */ | 137 | default: return NULL; /* avoid warnings, just in case */ |
138 | } | 138 | } |
@@ -142,13 +142,13 @@ static inline u16 __iomem *isa_itw(unsigned long addr) | |||
142 | switch(ISA_TYPE) | 142 | switch(ISA_TYPE) |
143 | { | 143 | { |
144 | #ifdef CONFIG_Q40 | 144 | #ifdef CONFIG_Q40 |
145 | case Q40_ISA: return (u16 __iomem *)Q40_ISA_IO_W(addr); | 145 | case ISA_TYPE_Q40: return (u16 __iomem *)Q40_ISA_IO_W(addr); |
146 | #endif | 146 | #endif |
147 | #ifdef CONFIG_GG2 | 147 | #ifdef CONFIG_GG2 |
148 | case GG2_ISA: return (u16 __iomem *)GG2_ISA_IO_W(addr); | 148 | case ISA_TYPE_GG2: return (u16 __iomem *)GG2_ISA_IO_W(addr); |
149 | #endif | 149 | #endif |
150 | #ifdef CONFIG_AMIGA_PCMCIA | 150 | #ifdef CONFIG_AMIGA_PCMCIA |
151 | case AG_ISA: return (u16 __iomem *)AG_ISA_IO_W(addr); | 151 | case ISA_TYPE_AG: return (u16 __iomem *)AG_ISA_IO_W(addr); |
152 | #endif | 152 | #endif |
153 | default: return NULL; /* avoid warnings, just in case */ | 153 | default: return NULL; /* avoid warnings, just in case */ |
154 | } | 154 | } |
@@ -158,7 +158,7 @@ static inline u32 __iomem *isa_itl(unsigned long addr) | |||
158 | switch(ISA_TYPE) | 158 | switch(ISA_TYPE) |
159 | { | 159 | { |
160 | #ifdef CONFIG_AMIGA_PCMCIA | 160 | #ifdef CONFIG_AMIGA_PCMCIA |
161 | case AG_ISA: return (u32 __iomem *)AG_ISA_IO_W(addr); | 161 | case ISA_TYPE_AG: return (u32 __iomem *)AG_ISA_IO_W(addr); |
162 | #endif | 162 | #endif |
163 | default: return 0; /* avoid warnings, just in case */ | 163 | default: return 0; /* avoid warnings, just in case */ |
164 | } | 164 | } |
@@ -168,13 +168,13 @@ static inline u8 __iomem *isa_mtb(unsigned long addr) | |||
168 | switch(ISA_TYPE) | 168 | switch(ISA_TYPE) |
169 | { | 169 | { |
170 | #ifdef CONFIG_Q40 | 170 | #ifdef CONFIG_Q40 |
171 | case Q40_ISA: return (u8 __iomem *)Q40_ISA_MEM_B(addr); | 171 | case ISA_TYPE_Q40: return (u8 __iomem *)Q40_ISA_MEM_B(addr); |
172 | #endif | 172 | #endif |
173 | #ifdef CONFIG_GG2 | 173 | #ifdef CONFIG_GG2 |
174 | case GG2_ISA: return (u8 __iomem *)GG2_ISA_MEM_B(addr); | 174 | case ISA_TYPE_GG2: return (u8 __iomem *)GG2_ISA_MEM_B(addr); |
175 | #endif | 175 | #endif |
176 | #ifdef CONFIG_AMIGA_PCMCIA | 176 | #ifdef CONFIG_AMIGA_PCMCIA |
177 | case AG_ISA: return (u8 __iomem *)addr; | 177 | case ISA_TYPE_AG: return (u8 __iomem *)addr; |
178 | #endif | 178 | #endif |
179 | default: return NULL; /* avoid warnings, just in case */ | 179 | default: return NULL; /* avoid warnings, just in case */ |
180 | } | 180 | } |
@@ -184,13 +184,13 @@ static inline u16 __iomem *isa_mtw(unsigned long addr) | |||
184 | switch(ISA_TYPE) | 184 | switch(ISA_TYPE) |
185 | { | 185 | { |
186 | #ifdef CONFIG_Q40 | 186 | #ifdef CONFIG_Q40 |
187 | case Q40_ISA: return (u16 __iomem *)Q40_ISA_MEM_W(addr); | 187 | case ISA_TYPE_Q40: return (u16 __iomem *)Q40_ISA_MEM_W(addr); |
188 | #endif | 188 | #endif |
189 | #ifdef CONFIG_GG2 | 189 | #ifdef CONFIG_GG2 |
190 | case GG2_ISA: return (u16 __iomem *)GG2_ISA_MEM_W(addr); | 190 | case ISA_TYPE_GG2: return (u16 __iomem *)GG2_ISA_MEM_W(addr); |
191 | #endif | 191 | #endif |
192 | #ifdef CONFIG_AMIGA_PCMCIA | 192 | #ifdef CONFIG_AMIGA_PCMCIA |
193 | case AG_ISA: return (u16 __iomem *)addr; | 193 | case ISA_TYPE_AG: return (u16 __iomem *)addr; |
194 | #endif | 194 | #endif |
195 | default: return NULL; /* avoid warnings, just in case */ | 195 | default: return NULL; /* avoid warnings, just in case */ |
196 | } | 196 | } |
@@ -218,13 +218,13 @@ static inline void isa_delay(void) | |||
218 | switch(ISA_TYPE) | 218 | switch(ISA_TYPE) |
219 | { | 219 | { |
220 | #ifdef CONFIG_Q40 | 220 | #ifdef CONFIG_Q40 |
221 | case Q40_ISA: isa_outb(0,0x80); break; | 221 | case ISA_TYPE_Q40: isa_outb(0,0x80); break; |
222 | #endif | 222 | #endif |
223 | #ifdef CONFIG_GG2 | 223 | #ifdef CONFIG_GG2 |
224 | case GG2_ISA: break; | 224 | case ISA_TYPE_GG2: break; |
225 | #endif | 225 | #endif |
226 | #ifdef CONFIG_AMIGA_PCMCIA | 226 | #ifdef CONFIG_AMIGA_PCMCIA |
227 | case AG_ISA: break; | 227 | case ISA_TYPE_AG: break; |
228 | #endif | 228 | #endif |
229 | default: break; /* avoid warnings */ | 229 | default: break; /* avoid warnings */ |
230 | } | 230 | } |