sa1100.c (734d1ece37fbf3d2ddfc71bc6c69e0fe35f02542) sa1100.c (2e124b4a390ca85325fae75764bef92f0547fa25)
1/*
2 * Driver for SA11x0 serial ports
3 *
4 * Based on drivers/char/serial.c, by Linus Torvalds, Theodore Ts'o.
5 *
6 * Copyright (C) 2000 Deep Blue Solutions Ltd.
7 *
8 * This program is free software; you can redistribute it and/or modify

--- 174 unchanged lines hidden (view full) ---

183 struct sa1100_port *sport = (struct sa1100_port *)port;
184
185 mod_timer(&sport->timer, jiffies);
186}
187
188static void
189sa1100_rx_chars(struct sa1100_port *sport)
190{
1/*
2 * Driver for SA11x0 serial ports
3 *
4 * Based on drivers/char/serial.c, by Linus Torvalds, Theodore Ts'o.
5 *
6 * Copyright (C) 2000 Deep Blue Solutions Ltd.
7 *
8 * This program is free software; you can redistribute it and/or modify

--- 174 unchanged lines hidden (view full) ---

183 struct sa1100_port *sport = (struct sa1100_port *)port;
184
185 mod_timer(&sport->timer, jiffies);
186}
187
188static void
189sa1100_rx_chars(struct sa1100_port *sport)
190{
191 struct tty_struct *tty = sport->port.state->port.tty;
192 unsigned int status, ch, flg;
193
194 status = UTSR1_TO_SM(UART_GET_UTSR1(sport)) |
195 UTSR0_TO_SM(UART_GET_UTSR0(sport));
196 while (status & UTSR1_TO_SM(UTSR1_RNE)) {
197 ch = UART_GET_CHAR(sport);
198
199 sport->port.icount.rx++;

--- 28 unchanged lines hidden (view full) ---

228 goto ignore_char;
229
230 uart_insert_char(&sport->port, status, UTSR1_TO_SM(UTSR1_ROR), ch, flg);
231
232 ignore_char:
233 status = UTSR1_TO_SM(UART_GET_UTSR1(sport)) |
234 UTSR0_TO_SM(UART_GET_UTSR0(sport));
235 }
191 unsigned int status, ch, flg;
192
193 status = UTSR1_TO_SM(UART_GET_UTSR1(sport)) |
194 UTSR0_TO_SM(UART_GET_UTSR0(sport));
195 while (status & UTSR1_TO_SM(UTSR1_RNE)) {
196 ch = UART_GET_CHAR(sport);
197
198 sport->port.icount.rx++;

--- 28 unchanged lines hidden (view full) ---

227 goto ignore_char;
228
229 uart_insert_char(&sport->port, status, UTSR1_TO_SM(UTSR1_ROR), ch, flg);
230
231 ignore_char:
232 status = UTSR1_TO_SM(UART_GET_UTSR1(sport)) |
233 UTSR0_TO_SM(UART_GET_UTSR0(sport));
234 }
236 tty_flip_buffer_push(tty);
235 tty_flip_buffer_push(&sport->port.state->port);
237}
238
239static void sa1100_tx_chars(struct sa1100_port *sport)
240{
241 struct circ_buf *xmit = &sport->port.state->xmit;
242
243 if (sport->port.x_char) {
244 UART_PUT_CHAR(sport, sport->port.x_char);

--- 673 unchanged lines hidden ---
236}
237
238static void sa1100_tx_chars(struct sa1100_port *sport)
239{
240 struct circ_buf *xmit = &sport->port.state->xmit;
241
242 if (sport->port.x_char) {
243 UART_PUT_CHAR(sport, sport->port.x_char);

--- 673 unchanged lines hidden ---