timbuart.c (92a19f9cec9a80ad93c06e115822deb729e2c6ad) | timbuart.c (2e124b4a390ca85325fae75764bef92f0547fa25) |
---|---|
1/* 2 * timbuart.c timberdale FPGA UART driver 3 * Copyright (c) 2009 Intel Corporation 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License version 2 as 7 * published by the Free Software Foundation. 8 * --- 86 unchanged lines hidden (view full) --- 95 96 while (ioread32(port->membase + TIMBUART_ISR) & RXDP) { 97 u8 ch = ioread8(port->membase + TIMBUART_RXFIFO); 98 port->icount.rx++; 99 tty_insert_flip_char(tport, ch, TTY_NORMAL); 100 } 101 102 spin_unlock(&port->lock); | 1/* 2 * timbuart.c timberdale FPGA UART driver 3 * Copyright (c) 2009 Intel Corporation 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License version 2 as 7 * published by the Free Software Foundation. 8 * --- 86 unchanged lines hidden (view full) --- 95 96 while (ioread32(port->membase + TIMBUART_ISR) & RXDP) { 97 u8 ch = ioread8(port->membase + TIMBUART_RXFIFO); 98 port->icount.rx++; 99 tty_insert_flip_char(tport, ch, TTY_NORMAL); 100 } 101 102 spin_unlock(&port->lock); |
103 tty_flip_buffer_push(port->state->port.tty); | 103 tty_flip_buffer_push(tport); |
104 spin_lock(&port->lock); 105 106 dev_dbg(port->dev, "%s - total read %d bytes\n", 107 __func__, port->icount.rx); 108} 109 110static void timbuart_tx_chars(struct uart_port *port) 111{ --- 410 unchanged lines hidden --- | 104 spin_lock(&port->lock); 105 106 dev_dbg(port->dev, "%s - total read %d bytes\n", 107 __func__, port->icount.rx); 108} 109 110static void timbuart_tx_chars(struct uart_port *port) 111{ --- 410 unchanged lines hidden --- |