diff options
Diffstat (limited to 'arch/m68k/atari')
| -rw-r--r-- | arch/m68k/atari/ataints.c | 4 | ||||
| -rw-r--r-- | arch/m68k/atari/config.c | 2 | ||||
| -rw-r--r-- | arch/m68k/atari/debug.c | 14 |
3 files changed, 10 insertions, 10 deletions
diff --git a/arch/m68k/atari/ataints.c b/arch/m68k/atari/ataints.c index 39478dd08e67..26a804e67bce 100644 --- a/arch/m68k/atari/ataints.c +++ b/arch/m68k/atari/ataints.c | |||
| @@ -388,9 +388,9 @@ void __init atari_init_IRQ(void) | |||
| 388 | } | 388 | } |
| 389 | 389 | ||
| 390 | if (ATARIHW_PRESENT(SCC) && !atari_SCC_reset_done) { | 390 | if (ATARIHW_PRESENT(SCC) && !atari_SCC_reset_done) { |
| 391 | scc.cha_a_ctrl = 9; | 391 | atari_scc.cha_a_ctrl = 9; |
| 392 | MFPDELAY(); | 392 | MFPDELAY(); |
| 393 | scc.cha_a_ctrl = (char) 0xc0; /* hardware reset */ | 393 | atari_scc.cha_a_ctrl = (char) 0xc0; /* hardware reset */ |
| 394 | } | 394 | } |
| 395 | 395 | ||
| 396 | if (ATARIHW_PRESENT(SCU)) { | 396 | if (ATARIHW_PRESENT(SCU)) { |
diff --git a/arch/m68k/atari/config.c b/arch/m68k/atari/config.c index ae2d96e5d618..4203d101363c 100644 --- a/arch/m68k/atari/config.c +++ b/arch/m68k/atari/config.c | |||
| @@ -315,7 +315,7 @@ void __init config_atari(void) | |||
| 315 | ATARIHW_SET(SCC_DMA); | 315 | ATARIHW_SET(SCC_DMA); |
| 316 | printk("SCC_DMA "); | 316 | printk("SCC_DMA "); |
| 317 | } | 317 | } |
| 318 | if (scc_test(&scc.cha_a_ctrl)) { | 318 | if (scc_test(&atari_scc.cha_a_ctrl)) { |
| 319 | ATARIHW_SET(SCC); | 319 | ATARIHW_SET(SCC); |
| 320 | printk("SCC "); | 320 | printk("SCC "); |
| 321 | } | 321 | } |
diff --git a/arch/m68k/atari/debug.c b/arch/m68k/atari/debug.c index 28efdc33c1ae..5a484247e493 100644 --- a/arch/m68k/atari/debug.c +++ b/arch/m68k/atari/debug.c | |||
| @@ -53,9 +53,9 @@ static inline void ata_scc_out(char c) | |||
| 53 | { | 53 | { |
| 54 | do { | 54 | do { |
| 55 | MFPDELAY(); | 55 | MFPDELAY(); |
| 56 | } while (!(scc.cha_b_ctrl & 0x04)); /* wait for tx buf empty */ | 56 | } while (!(atari_scc.cha_b_ctrl & 0x04)); /* wait for tx buf empty */ |
| 57 | MFPDELAY(); | 57 | MFPDELAY(); |
| 58 | scc.cha_b_data = c; | 58 | atari_scc.cha_b_data = c; |
| 59 | } | 59 | } |
| 60 | 60 | ||
| 61 | static void atari_scc_console_write(struct console *co, const char *str, | 61 | static void atari_scc_console_write(struct console *co, const char *str, |
| @@ -140,9 +140,9 @@ int atari_scc_console_wait_key(struct console *co) | |||
| 140 | { | 140 | { |
| 141 | do { | 141 | do { |
| 142 | MFPDELAY(); | 142 | MFPDELAY(); |
| 143 | } while (!(scc.cha_b_ctrl & 0x01)); /* wait for rx buf filled */ | 143 | } while (!(atari_scc.cha_b_ctrl & 0x01)); /* wait for rx buf filled */ |
| 144 | MFPDELAY(); | 144 | MFPDELAY(); |
| 145 | return scc.cha_b_data; | 145 | return atari_scc.cha_b_data; |
| 146 | } | 146 | } |
| 147 | 147 | ||
| 148 | int atari_midi_console_wait_key(struct console *co) | 148 | int atari_midi_console_wait_key(struct console *co) |
| @@ -185,9 +185,9 @@ static void __init atari_init_mfp_port(int cflag) | |||
| 185 | 185 | ||
| 186 | #define SCC_WRITE(reg, val) \ | 186 | #define SCC_WRITE(reg, val) \ |
| 187 | do { \ | 187 | do { \ |
| 188 | scc.cha_b_ctrl = (reg); \ | 188 | atari_scc.cha_b_ctrl = (reg); \ |
| 189 | MFPDELAY(); \ | 189 | MFPDELAY(); \ |
| 190 | scc.cha_b_ctrl = (val); \ | 190 | atari_scc.cha_b_ctrl = (val); \ |
| 191 | MFPDELAY(); \ | 191 | MFPDELAY(); \ |
| 192 | } while (0) | 192 | } while (0) |
| 193 | 193 | ||
| @@ -240,7 +240,7 @@ static void __init atari_init_scc_port(int cflag) | |||
| 240 | reg3 = (cflag & CSIZE) == CS8 ? 0xc0 : 0x40; | 240 | reg3 = (cflag & CSIZE) == CS8 ? 0xc0 : 0x40; |
| 241 | reg5 = (cflag & CSIZE) == CS8 ? 0x60 : 0x20 | 0x82 /* assert DTR/RTS */; | 241 | reg5 = (cflag & CSIZE) == CS8 ? 0x60 : 0x20 | 0x82 /* assert DTR/RTS */; |
| 242 | 242 | ||
| 243 | (void)scc.cha_b_ctrl; /* reset reg pointer */ | 243 | (void)atari_scc.cha_b_ctrl; /* reset reg pointer */ |
| 244 | SCC_WRITE(9, 0xc0); /* reset */ | 244 | SCC_WRITE(9, 0xc0); /* reset */ |
| 245 | LONG_DELAY(); /* extra delay after WR9 access */ | 245 | LONG_DELAY(); /* extra delay after WR9 access */ |
| 246 | SCC_WRITE(4, (cflag & PARENB) ? ((cflag & PARODD) ? 0x01 : 0x03) | 246 | SCC_WRITE(4, (cflag & PARENB) ? ((cflag & PARODD) ? 0x01 : 0x03) |
