patch-2.2.19 linux/drivers/char/sx.c
Next file: linux/drivers/char/synclink.c
Previous file: linux/drivers/char/serial.c
Back to the patch index
Back to the overall index
- Lines: 37
- Date:
Sun Mar 25 11:37:31 2001
- Orig file:
v2.2.18/drivers/char/sx.c
- Orig date:
Sun Mar 25 11:28:23 2001
diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.18/drivers/char/sx.c linux/drivers/char/sx.c
@@ -1799,6 +1799,20 @@
}
+static void sx_break (struct tty_struct * tty, int flag)
+{
+ struct sx_port *port = tty->driver_data;
+ int rv;
+
+ if (flag)
+ rv = sx_send_command (port, HS_START, -1, HS_IDLE_BREAK);
+ else
+ rv = sx_send_command (port, HS_STOP, -1, HS_IDLE_OPEN);
+ if (rv != 1) printk (KERN_ERR "sx: couldn't send break (%x).\n",
+ read_sx_byte (port->board, CHAN_OFFSET (port, hi_hstat)));
+}
+
+
static int sx_ioctl (struct tty_struct * tty, struct file * filp,
unsigned int cmd, unsigned long arg)
{
@@ -1867,7 +1881,6 @@
sx_reconfigure_port(port);
}
break;
-
default:
rc = -ENOIOCTLCMD;
break;
@@ -2247,6 +2260,7 @@
sx_driver.table = sx_table;
sx_driver.termios = sx_termios;
sx_driver.termios_locked = sx_termios_locked;
+ sx_driver.break_ctl = sx_break;
sx_driver.open = sx_open;
sx_driver.close = gs_close;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)