Lines Matching +full:0 +full:x50

37 	while (!(st_mfp.trn_stat & 0x80))	/* wait for tx buf empty */  in ata_mfp_out()
56 } while (!(atari_scc.cha_b_ctrl & 0x04)); /* wait for tx buf empty */ in ata_scc_out()
97 return 0; in ata_par_out()
103 sound_ym.wd_data = tmp & ~0x20; /* set strobe L */ in ata_par_out()
105 sound_ym.wd_data = tmp | 0x20; /* set strobe H */ in ata_par_out()
120 printer_present = 0; in atari_par_console_write()
125 printer_present = 0; in atari_par_console_write()
131 #if 0
134 while (!(st_mfp.rcv_stat & 0x80)) /* wait for rx buf filled */
143 } while (!(atari_scc.cha_b_ctrl & 0x01)); /* wait for rx buf filled */
169 int parity = (cflag & PARENB) ? ((cflag & PARODD) ? 0x04 : 0x06) : 0; in atari_init_mfp_port()
170 int csize = ((cflag & CSIZE) == CS7) ? 0x20 : 0x00; in atari_init_mfp_port()
178 st_mfp.trn_stat &= ~0x01; /* disable TX */ in atari_init_mfp_port()
179 st_mfp.usart_ctr = parity | csize | 0x88; /* 1:16 clk mode, 1 stop bit */ in atari_init_mfp_port()
180 st_mfp.tim_ct_cd &= 0x70; /* stop timer D */ in atari_init_mfp_port()
182 st_mfp.tim_ct_cd |= 0x01; /* start timer D, 1:4 */ in atari_init_mfp_port()
183 st_mfp.trn_stat |= 0x01; /* enable TX */ in atari_init_mfp_port()
192 } while (0)
199 for (i = 100; i > 0; --i) \
201 } while (0)
206 /* reg 11: 0x50 = BRG, 0x00 = RTxC, 0x28 = TRxC */ in atari_init_scc_port()
207 { 0x50, 0x50, 0x50, 0x50, 0x50, 0x50, 0x50, 0x00, 0x00 }; in atari_init_scc_port()
209 /* reg 14: 0 = RTxC, 2 = PCLK */ in atari_init_scc_port()
210 { 2, 2, 2, 2, 2, 2, 0, 2, 2 }; in atari_init_scc_port()
212 /* reg 4: 0x40 = x16, 0x80 = x32, 0xc0 = x64 */ in atari_init_scc_port()
213 { 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0xc0, 0x80 }; in atari_init_scc_port()
216 { 208, 138, 103, 50, 24, 11, 1, 0, 0 }; in atari_init_scc_port()
232 clksrc = 0x28; /* TRxC */ in atari_init_scc_port()
233 clkmode = baud == 6 ? 0xc0 : in atari_init_scc_port()
234 baud == 7 ? 0x80 : /* really 76800bps */ in atari_init_scc_port()
235 0x40; /* really 153600bps */ in atari_init_scc_port()
236 div = 0; in atari_init_scc_port()
239 reg3 = (cflag & CSIZE) == CS8 ? 0xc0 : 0x40; in atari_init_scc_port()
240 reg5 = (cflag & CSIZE) == CS8 ? 0x60 : 0x20 | 0x82 /* assert DTR/RTS */; in atari_init_scc_port()
243 SCC_WRITE(9, 0xc0); /* reset */ in atari_init_scc_port()
245 SCC_WRITE(4, (cflag & PARENB) ? ((cflag & PARODD) ? 0x01 : 0x03) in atari_init_scc_port()
246 : 0 | 0x04 /* 1 stopbit */ | clkmode); in atari_init_scc_port()
249 SCC_WRITE(9, 0); /* no interrupts */ in atari_init_scc_port()
251 SCC_WRITE(10, 0); /* NRZ mode */ in atari_init_scc_port()
254 SCC_WRITE(13, 0); /* BRG high byte */ in atari_init_scc_port()
256 SCC_WRITE(14, brgsrc_table[baud] | (div ? 1 : 0)); in atari_init_scc_port()
266 int csize = ((cflag & CSIZE) == CS8) ? 0x10 : 0x00; in atari_init_midi_port()
268 int parity = (cflag & PARENB) ? ((cflag & PARODD) ? 0x0c : 0x08) : 0x04; in atari_init_midi_port()
293 return 0; in atari_debug_setup()
316 sound_ym.wd_data = 0xff; /* sound off, ports are output */ in atari_debug_setup()
318 sound_ym.wd_data = 0; /* no char */ in atari_debug_setup()
320 sound_ym.wd_data = sound_ym.rd_data_reg_sel | 0x20; /* strobe H */ in atari_debug_setup()
326 return 0; in atari_debug_setup()