rp2.c (8be98d2f2a0a262f8bf8a0bc1fdf522b3c7aab17) | rp2.c (bec5b814d46c2a704c3c8148752e62a33e9fa6dc) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Driver for Comtrol RocketPort EXPRESS/INFINITY cards 4 * 5 * Copyright (C) 2012 Kevin Cernekee <cernekee@gmail.com> 6 * 7 * Inspired by, and loosely based on: 8 * --- 356 unchanged lines hidden (view full) --- 365 366 /* XON/XOFF software flow control */ 367 writeb((ifl & IXON) ? RP2_TX_SWFLOW_ena : RP2_TX_SWFLOW_dis, 368 up->ucode + RP2_TX_SWFLOW); 369 writeb((ifl & IXOFF) ? RP2_RX_SWFLOW_ena : RP2_RX_SWFLOW_dis, 370 up->ucode + RP2_RX_SWFLOW); 371} 372 | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Driver for Comtrol RocketPort EXPRESS/INFINITY cards 4 * 5 * Copyright (C) 2012 Kevin Cernekee <cernekee@gmail.com> 6 * 7 * Inspired by, and loosely based on: 8 * --- 356 unchanged lines hidden (view full) --- 365 366 /* XON/XOFF software flow control */ 367 writeb((ifl & IXON) ? RP2_TX_SWFLOW_ena : RP2_TX_SWFLOW_dis, 368 up->ucode + RP2_TX_SWFLOW); 369 writeb((ifl & IXOFF) ? RP2_RX_SWFLOW_ena : RP2_RX_SWFLOW_dis, 370 up->ucode + RP2_RX_SWFLOW); 371} 372 |
373static void rp2_uart_set_termios(struct uart_port *port, 374 struct ktermios *new, 375 struct ktermios *old) | 373static void rp2_uart_set_termios(struct uart_port *port, struct ktermios *new, 374 const struct ktermios *old) |
376{ 377 struct rp2_uart_port *up = port_to_up(port); 378 unsigned long flags; 379 unsigned int baud, baud_div; 380 381 baud = uart_get_baud_rate(port, new, old, 0, port->uartclk / 16); 382 baud_div = uart_get_divisor(port, baud); 383 --- 481 unchanged lines hidden --- | 375{ 376 struct rp2_uart_port *up = port_to_up(port); 377 unsigned long flags; 378 unsigned int baud, baud_div; 379 380 baud = uart_get_baud_rate(port, new, old, 0, port->uartclk / 16); 381 baud_div = uart_get_divisor(port, baud); 382 --- 481 unchanged lines hidden --- |