amiserial.c (b300fb26c59a749bf49559932fa8a85eb916b5a7) amiserial.c (5d420399073770134d2b03e004b2c0201c7fa26f)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Serial driver for the amiga builtin port.
4 *
5 * This code was created by taking serial.c version 4.30 from kernel
6 * release 2.3.22, replacing all hardware related stuff with the
7 * corresponding amiga hardware actions, and removing all irrelevant
8 * code. As a consequence, it uses many of the constants and names

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

1454 .proc_show = rs_proc_show,
1455};
1456
1457static bool amiga_carrier_raised(struct tty_port *port)
1458{
1459 return !(ciab.pra & SER_DCD);
1460}
1461
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Serial driver for the amiga builtin port.
4 *
5 * This code was created by taking serial.c version 4.30 from kernel
6 * release 2.3.22, replacing all hardware related stuff with the
7 * corresponding amiga hardware actions, and removing all irrelevant
8 * code. As a consequence, it uses many of the constants and names

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

1454 .proc_show = rs_proc_show,
1455};
1456
1457static bool amiga_carrier_raised(struct tty_port *port)
1458{
1459 return !(ciab.pra & SER_DCD);
1460}
1461
1462static void amiga_dtr_rts(struct tty_port *port, int raise)
1462static void amiga_dtr_rts(struct tty_port *port, bool raise)
1463{
1464 struct serial_state *info = container_of(port, struct serial_state,
1465 tport);
1466 unsigned long flags;
1467
1468 if (raise)
1469 info->MCR |= SER_DTR|SER_RTS;
1470 else

--- 192 unchanged lines hidden ---
1463{
1464 struct serial_state *info = container_of(port, struct serial_state,
1465 tport);
1466 unsigned long flags;
1467
1468 if (raise)
1469 info->MCR |= SER_DTR|SER_RTS;
1470 else

--- 192 unchanged lines hidden ---