amiserial.c (515be7baeddb04d786e3a7f4072791087c25bb04) amiserial.c (9b5aa54986fc85f5e10045348a8a45894aeb18db)
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

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

1324 */
1325static void rs_hangup(struct tty_struct *tty)
1326{
1327 struct serial_state *info = tty->driver_data;
1328
1329 rs_flush_buffer(tty);
1330 shutdown(tty, info);
1331 info->tport.count = 0;
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

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

1324 */
1325static void rs_hangup(struct tty_struct *tty)
1326{
1327 struct serial_state *info = tty->driver_data;
1328
1329 rs_flush_buffer(tty);
1330 shutdown(tty, info);
1331 info->tport.count = 0;
1332 tty_port_set_active(&info->tport, 0);
1332 tty_port_set_active(&info->tport, false);
1333 info->tport.tty = NULL;
1334 wake_up_interruptible(&info->tport.open_wait);
1335}
1336
1337/*
1338 * This routine is called whenever a serial port is opened. It
1339 * enables interrupts for a serial port, linking in its async structure into
1340 * the IRQ chain. It also performs the serial-specific

--- 322 unchanged lines hidden ---
1333 info->tport.tty = NULL;
1334 wake_up_interruptible(&info->tport.open_wait);
1335}
1336
1337/*
1338 * This routine is called whenever a serial port is opened. It
1339 * enables interrupts for a serial port, linking in its async structure into
1340 * the IRQ chain. It also performs the serial-specific

--- 322 unchanged lines hidden ---