Lines Matching +full:write +full:- +full:1 +full:- +full:bps
6 * Assembled of parts of former atari/config.c 97-12-18 by Roman Hodek
31 .index = -1,
45 while (count--) { in atari_mfp_console_write()
64 while (count--) { in atari_scc_console_write()
81 while (count--) { in atari_midi_console_write()
91 /* This a some-seconds timeout in case no printer is connected */ in ata_par_out()
92 unsigned long i = loops_per_jiffy > 1 ? loops_per_jiffy : 10000000/HZ; in ata_par_out()
94 while ((st_mfp.par_dt_reg & 1) && --i) /* wait for BUSY == L */ in ata_par_out()
106 return 1; in ata_par_out()
112 static int printer_present = 1; in atari_par_console_write()
117 while (count--) { in atari_par_console_write()
164 * timer values for 1200...115200 bps; > 38400 select 110, 134, or 150 in atari_init_mfp_port()
165 * bps, resp., and work only correct if there's a RSVE or RSSPEED in atari_init_mfp_port()
167 static int baud_table[9] = { 16, 11, 8, 4, 2, 1, 175, 143, 128 }; in atari_init_mfp_port()
175 baud = B9600; /* use default 9600bps for non-implemented rates */ in atari_init_mfp_port()
176 baud -= B1200; /* baud_table[] starts at 1200bps */ 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()
182 st_mfp.tim_ct_cd |= 0x01; /* start timer D, 1:4 */ in atari_init_mfp_port()
199 for (i = 100; i > 0; --i) \
216 { 208, 138, 103, 50, 24, 11, 1, 0, 0 }; in atari_init_scc_port()
224 baud = B9600; /* use default 9600bps for non-implemented rates */ in atari_init_scc_port()
225 baud -= B1200; /* tables starts at 1200bps */ 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()
246 : 0 | 0x04 /* 1 stopbit */ | clkmode); in atari_init_scc_port()
256 SCC_WRITE(14, brgsrc_table[baud] | (div ? 1 : 0)); in atari_init_scc_port()
257 SCC_WRITE(3, reg3 | 1); in atari_init_scc_port()
260 atari_SCC_reset_done = 1; in atari_init_scc_port()
276 div = ACIA_DIV64; /* really 7812.5 bps */ in atari_init_midi_port()
280 div = ACIA_DIV16; /* 31250 bps, standard for MIDI */ in atari_init_midi_port()
299 registered = !!atari_console_driver.write; in atari_debug_setup()
301 /* ST-MFP Modem1 serial port */ in atari_debug_setup()
303 atari_console_driver.write = atari_mfp_console_write; in atari_debug_setup()
307 atari_console_driver.write = atari_scc_console_write; in atari_debug_setup()
311 atari_console_driver.write = atari_midi_console_write; in atari_debug_setup()
321 atari_console_driver.write = atari_par_console_write; in atari_debug_setup()
323 if (atari_console_driver.write && !registered) in atari_debug_setup()