Hi, On Sun, Feb 26, 2017 at 03:59:30AM +0100, Samuel Thibault wrote: > Concerning speakup_apollo.c, it seems its only use of outb is to control > the modem RTS line. To support that, yet another step will be: > > - introduce spk_serial_tiocmset(unsigned int set, unsigned int clear), > which does: > > int old = inb(speakup_info.port_tts + UART_MCR); > outb((old & ~clear) | set, speakup_info.port_tts + UART_MCR); > > - introduce spk_ttyio_tiocmset(unsigned int set, unsigned int clear), > which does: > > speakup_tty->ops->tiocmset(speakup_tty, set, clear); > > and make them a tiocmset method of synths. > > and then in speakup_apollo.c, instead of > > outb(UART_MCR_DTR, speakup_info.port_tts + UART_MCR); > outb(UART_MCR_DTR | UART_MCR_RTS, > speakup_info.port_tts + UART_MCR); Is there a specific reason for keeping DTR set all the time? Or is it just a defensive measure? > > rather use > > synth->tiocmset(0, UART_MCR_RTS); > synth->tiocmset(UART_MCR_RTS, 0); > > Samuel _______________________________________________ Speakup mailing list Speakup@xxxxxxxxxxxxxxxxx http://linux-speakup.org/cgi-bin/mailman/listinfo/speakup