summaryrefslogtreecommitdiff
path: root/include/uapi/linux/gsmmux.h
diff options
context:
space:
mode:
authorMartin Hundebøll <martin@geanix.com>2019-08-12 23:12:43 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-09-04 12:43:54 +0200
commita7b121b4b8b0bcc14fc1c2a81d34096109a65dd6 (patch)
tree19c00636e4d396d430f254ad841f4226134b6f30 /include/uapi/linux/gsmmux.h
parentd193db7fb10d3ae8322e5f65e4c39946156e24c2 (diff)
tty: n_gsm: add ioctl to map serial device to mux'ed tty
Guessing the first tty for a gsm0710 multiplexed serial device is not currently possible, which makes it racy to use with multiple modems. Add a way to map the physical serial tty to its related mux devices using an ioctl. Signed-off-by: Martin Hundebøll <martin@geanix.com> Link: https://lore.kernel.org/r/20190812211243.98686-1-martin@geanix.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/uapi/linux/gsmmux.h')
-rw-r--r--include/uapi/linux/gsmmux.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/gsmmux.h b/include/uapi/linux/gsmmux.h
index 101d3c469acb..cb8693b39cb7 100644
--- a/include/uapi/linux/gsmmux.h
+++ b/include/uapi/linux/gsmmux.h
@@ -37,5 +37,7 @@ struct gsm_netconfig {
#define GSMIOC_ENABLE_NET _IOW('G', 2, struct gsm_netconfig)
#define GSMIOC_DISABLE_NET _IO('G', 3)
+/* get the base tty number for a configured gsmmux tty */
+#define GSMIOC_GETFIRST _IOR('G', 4, __u32)
#endif