aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ppc/amiga/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/ppc/amiga/config.c')
-rw-r--r--arch/ppc/amiga/config.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/arch/ppc/amiga/config.c b/arch/ppc/amiga/config.c
index af881d7454dd..55794d1d4ec3 100644
--- a/arch/ppc/amiga/config.c
+++ b/arch/ppc/amiga/config.c
@@ -281,7 +281,7 @@ static void __init amiga_identify(void)
281 case CS_OCS: 281 case CS_OCS:
282 case CS_ECS: 282 case CS_ECS:
283 case CS_AGA: 283 case CS_AGA:
284 switch (custom.deniseid & 0xf) { 284 switch (amiga_custom.deniseid & 0xf) {
285 case 0x0c: 285 case 0x0c:
286 AMIGAHW_SET(DENISE_HR); 286 AMIGAHW_SET(DENISE_HR);
287 break; 287 break;
@@ -294,7 +294,7 @@ static void __init amiga_identify(void)
294 AMIGAHW_SET(DENISE); 294 AMIGAHW_SET(DENISE);
295 break; 295 break;
296 } 296 }
297 switch ((custom.vposr>>8) & 0x7f) { 297 switch ((amiga_custom.vposr>>8) & 0x7f) {
298 case 0x00: 298 case 0x00:
299 AMIGAHW_SET(AGNUS_PAL); 299 AMIGAHW_SET(AGNUS_PAL);
300 break; 300 break;
@@ -432,9 +432,9 @@ void __init config_amiga(void)
432 amiga_colorclock = 5*amiga_eclock; /* 3.5 MHz */ 432 amiga_colorclock = 5*amiga_eclock; /* 3.5 MHz */
433 433
434 /* clear all DMA bits */ 434 /* clear all DMA bits */
435 custom.dmacon = DMAF_ALL; 435 amiga_custom.dmacon = DMAF_ALL;
436 /* ensure that the DMA master bit is set */ 436 /* ensure that the DMA master bit is set */
437 custom.dmacon = DMAF_SETCLR | DMAF_MASTER; 437 amiga_custom.dmacon = DMAF_SETCLR | DMAF_MASTER;
438 438
439 /* request all RAM */ 439 /* request all RAM */
440 for (i = 0; i < m68k_num_memory; i++) { 440 for (i = 0; i < m68k_num_memory; i++) {
@@ -753,9 +753,9 @@ static void amiga_savekmsg_init(void)
753 753
754static void amiga_serial_putc(char c) 754static void amiga_serial_putc(char c)
755{ 755{
756 custom.serdat = (unsigned char)c | 0x100; 756 amiga_custom.serdat = (unsigned char)c | 0x100;
757 mb(); 757 mb();
758 while (!(custom.serdatr & 0x2000)) 758 while (!(amiga_custom.serdatr & 0x2000))
759 ; 759 ;
760} 760}
761 761
@@ -785,11 +785,11 @@ int amiga_serial_console_wait_key(struct console *co)
785{ 785{
786 int ch; 786 int ch;
787 787
788 while (!(custom.intreqr & IF_RBF)) 788 while (!(amiga_custom.intreqr & IF_RBF))
789 barrier(); 789 barrier();
790 ch = custom.serdatr & 0xff; 790 ch = amiga_custom.serdatr & 0xff;
791 /* clear the interrupt, so that another character can be read */ 791 /* clear the interrupt, so that another character can be read */
792 custom.intreq = IF_RBF; 792 amiga_custom.intreq = IF_RBF;
793 return ch; 793 return ch;
794} 794}
795 795