aboutsummaryrefslogtreecommitdiffstats
path: root/arch/m68k/amiga/config.c
diff options
context:
space:
mode:
authorAl Viro <viro@ftp.linux.org.uk>2006-01-12 04:06:12 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-12 12:09:00 -0500
commitb4290a23cfa9040e2f0de5ab57d6ea65abaf053b (patch)
tree592b8ecd6a2a4b618c5de1a2573f79cd932df31e /arch/m68k/amiga/config.c
parent198a4101197797fd9cee40c17dc285dc84c5d745 (diff)
[PATCH] m68k: namespace pollution fix (custom->amiga_custom)
in amigahw.h custom renamed to amiga_custom, in drivers with few instances the same replacement, in the rest - #define custom amiga_custom in driver itself Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Cc: Roman Zippel <zippel@linux-m68k.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/m68k/amiga/config.c')
-rw-r--r--arch/m68k/amiga/config.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/arch/m68k/amiga/config.c b/arch/m68k/amiga/config.c
index 4775e18a78f0..da24476db8e9 100644
--- a/arch/m68k/amiga/config.c
+++ b/arch/m68k/amiga/config.c
@@ -290,7 +290,7 @@ static void __init amiga_identify(void)
290 case CS_OCS: 290 case CS_OCS:
291 case CS_ECS: 291 case CS_ECS:
292 case CS_AGA: 292 case CS_AGA:
293 switch (custom.deniseid & 0xf) { 293 switch (amiga_custom.deniseid & 0xf) {
294 case 0x0c: 294 case 0x0c:
295 AMIGAHW_SET(DENISE_HR); 295 AMIGAHW_SET(DENISE_HR);
296 break; 296 break;
@@ -303,7 +303,7 @@ static void __init amiga_identify(void)
303 AMIGAHW_SET(DENISE); 303 AMIGAHW_SET(DENISE);
304 break; 304 break;
305 } 305 }
306 switch ((custom.vposr>>8) & 0x7f) { 306 switch ((amiga_custom.vposr>>8) & 0x7f) {
307 case 0x00: 307 case 0x00:
308 AMIGAHW_SET(AGNUS_PAL); 308 AMIGAHW_SET(AGNUS_PAL);
309 break; 309 break;
@@ -447,9 +447,9 @@ void __init config_amiga(void)
447 amiga_colorclock = 5*amiga_eclock; /* 3.5 MHz */ 447 amiga_colorclock = 5*amiga_eclock; /* 3.5 MHz */
448 448
449 /* clear all DMA bits */ 449 /* clear all DMA bits */
450 custom.dmacon = DMAF_ALL; 450 amiga_custom.dmacon = DMAF_ALL;
451 /* ensure that the DMA master bit is set */ 451 /* ensure that the DMA master bit is set */
452 custom.dmacon = DMAF_SETCLR | DMAF_MASTER; 452 amiga_custom.dmacon = DMAF_SETCLR | DMAF_MASTER;
453 453
454 /* don't use Z2 RAM as system memory on Z3 capable machines */ 454 /* don't use Z2 RAM as system memory on Z3 capable machines */
455 if (AMIGAHW_PRESENT(ZORRO3)) { 455 if (AMIGAHW_PRESENT(ZORRO3)) {
@@ -830,8 +830,8 @@ static void amiga_savekmsg_init(void)
830 830
831static void amiga_serial_putc(char c) 831static void amiga_serial_putc(char c)
832{ 832{
833 custom.serdat = (unsigned char)c | 0x100; 833 amiga_custom.serdat = (unsigned char)c | 0x100;
834 while (!(custom.serdatr & 0x2000)) 834 while (!(amiga_custom.serdatr & 0x2000))
835 ; 835 ;
836} 836}
837 837
@@ -855,11 +855,11 @@ int amiga_serial_console_wait_key(struct console *co)
855{ 855{
856 int ch; 856 int ch;
857 857
858 while (!(custom.intreqr & IF_RBF)) 858 while (!(amiga_custom.intreqr & IF_RBF))
859 barrier(); 859 barrier();
860 ch = custom.serdatr & 0xff; 860 ch = amiga_custom.serdatr & 0xff;
861 /* clear the interrupt, so that another character can be read */ 861 /* clear the interrupt, so that another character can be read */
862 custom.intreq = IF_RBF; 862 amiga_custom.intreq = IF_RBF;
863 return ch; 863 return ch;
864} 864}
865 865