void shutdown_7800(struct uart_port *p) { // printk("Waiting for transmitter to be empty to shut down..."); // assume we won't be able to send any more bytes while waiting while (!bit_TRE(TSPORT(p)->get(TSPORT(p),0))) { printk("."); set_current_state(TASK_INTERRUPTIBLE); schedule_timeout(1); } printk("done!\n"); set_current_state(TASK_RUNNING); old_shutdown(p); }
static inline void setMODE9(struct uart_port *port,int on) { tsuartPutSTAT(TSPORT(port),assign_bit_MODE9(tsuartGetSTAT(TSPORT(port)),on)); }