xref: /linux/include/uapi/linux/tty.h (revision 4f2c0a4acffbec01079c28f839422e64ddeff004)
16f52b16cSGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2607ca46eSDavid Howells #ifndef _UAPI_LINUX_TTY_H
3607ca46eSDavid Howells #define _UAPI_LINUX_TTY_H
4607ca46eSDavid Howells 
5607ca46eSDavid Howells /*
6607ca46eSDavid Howells  * 'tty.h' defines some structures used by tty_io.c and some defines.
7607ca46eSDavid Howells  */
8607ca46eSDavid Howells 
9607ca46eSDavid Howells /* line disciplines */
10607ca46eSDavid Howells #define N_TTY		0
11607ca46eSDavid Howells #define N_SLIP		1
12607ca46eSDavid Howells #define N_MOUSE		2
13607ca46eSDavid Howells #define N_PPP		3
14607ca46eSDavid Howells #define N_STRIP		4
15607ca46eSDavid Howells #define N_AX25		5
16607ca46eSDavid Howells #define N_X25		6	/* X.25 async */
17607ca46eSDavid Howells #define N_6PACK		7
18607ca46eSDavid Howells #define N_MASC		8	/* Reserved for Mobitex module <kaz@cafe.net> */
19607ca46eSDavid Howells #define N_R3964		9	/* Reserved for Simatic R3964 module */
20607ca46eSDavid Howells #define N_PROFIBUS_FDL	10	/* Reserved for Profibus */
21607ca46eSDavid Howells #define N_IRDA		11	/* Linux IrDa - http://irda.sourceforge.net/ */
22607ca46eSDavid Howells #define N_SMSBLOCK	12	/* SMS block mode - for talking to GSM data */
23607ca46eSDavid Howells 				/* cards about SMS messages */
24607ca46eSDavid Howells #define N_HDLC		13	/* synchronous HDLC */
25607ca46eSDavid Howells #define N_SYNC_PPP	14	/* synchronous PPP */
26607ca46eSDavid Howells #define N_HCI		15	/* Bluetooth HCI UART */
27607ca46eSDavid Howells #define N_GIGASET_M101	16	/* Siemens Gigaset M101 serial DECT adapter */
28607ca46eSDavid Howells #define N_SLCAN		17	/* Serial / USB serial CAN Adaptors */
29607ca46eSDavid Howells #define N_PPS		18	/* Pulse per Second */
30607ca46eSDavid Howells #define N_V253		19	/* Codec control over voice modem */
31607ca46eSDavid Howells #define N_CAIF		20      /* CAIF protocol for talking to modems */
32607ca46eSDavid Howells #define N_GSM0710	21	/* GSM 0710 Mux */
33607ca46eSDavid Howells #define N_TI_WL		22	/* for TI's WL BT, FM, GPS combo chips */
34607ca46eSDavid Howells #define N_TRACESINK	23	/* Trace data routing for MIPI P1149.7 */
35607ca46eSDavid Howells #define N_TRACEROUTER	24	/* Trace data routing for MIPI P1149.7 */
369961127dSVincent Cuissard #define N_NCI		25	/* NFC NCI UART */
3747f58e32SGreg Kroah-Hartman #define N_SPEAKUP	26	/* Speakup communication with synths */
388a8dabf2SAlan Cox #define N_NULL		27	/* Null ldisc used for error handling */
39a0c2ccd9SJeremy Kerr #define N_MCTP		28	/* MCTP-over-serial */
40c2faf737SMax Staudt #define N_DEVELOPMENT	29	/* Manual out-of-tree testing */
41*ec5ad331SMax Staudt #define N_CAN327	30	/* ELM327 based OBD-II interfaces */
42c2faf737SMax Staudt 
43c2faf737SMax Staudt /* Always the newest line discipline + 1 */
44*ec5ad331SMax Staudt #define NR_LDISCS	31
45607ca46eSDavid Howells 
46607ca46eSDavid Howells #endif /* _UAPI_LINUX_TTY_H */
47