diff options
| author | Tilman Schmidt <tilman@imap.cc> | 2007-02-10 04:45:00 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-11 13:51:26 -0500 |
| commit | 4564f9e5fd00767d11fcf61e0d52787706dfcc87 (patch) | |
| tree | e7d2dd2c80099c23a7dadfb53f8faa74dba7d484 /include/linux/tty.h | |
| parent | 4a3b0a490d49ada8bbf3f426be1a0ace4dcd0a55 (diff) | |
[PATCH] consolidate line discipline number definitions
The line discipline numbers N_* are currently defined for each architecture
individually, but (except for a seeming mistake) identically, in
asm/termios.h. There is no obvious reason why these numbers should be
architecture specific, nor any apparent relationship with the termios
structure. The total number of these, NR_LDISCS, is defined in linux/tty.h
anyway. So I propose the following patch which moves the definitions of
the individual line disciplines to linux/tty.h too.
Three of these numbers (N_MASC, N_PROFIBUS_FDL, and N_SMSBLOCK) are unused
in the current kernel, but the patch still keeps the complete set in case
there are plans to use them yet.
Signed-off-by: Tilman Schmidt <tilman@imap.cc>
Cc: <linux-arch@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/tty.h')
| -rw-r--r-- | include/linux/tty.h | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/include/linux/tty.h b/include/linux/tty.h index 0161a8c6db..8427c9e98e 100644 --- a/include/linux/tty.h +++ b/include/linux/tty.h | |||
| @@ -24,7 +24,27 @@ | |||
| 24 | #define NR_PTYS CONFIG_LEGACY_PTY_COUNT /* Number of legacy ptys */ | 24 | #define NR_PTYS CONFIG_LEGACY_PTY_COUNT /* Number of legacy ptys */ |
| 25 | #define NR_UNIX98_PTY_DEFAULT 4096 /* Default maximum for Unix98 ptys */ | 25 | #define NR_UNIX98_PTY_DEFAULT 4096 /* Default maximum for Unix98 ptys */ |
| 26 | #define NR_UNIX98_PTY_MAX (1 << MINORBITS) /* Absolute limit */ | 26 | #define NR_UNIX98_PTY_MAX (1 << MINORBITS) /* Absolute limit */ |
| 27 | #define NR_LDISCS 16 | 27 | #define NR_LDISCS 17 |
| 28 | |||
| 29 | /* line disciplines */ | ||
| 30 | #define N_TTY 0 | ||
| 31 | #define N_SLIP 1 | ||
| 32 | #define N_MOUSE 2 | ||
| 33 | #define N_PPP 3 | ||
| 34 | #define N_STRIP 4 | ||
| 35 | #define N_AX25 5 | ||
| 36 | #define N_X25 6 /* X.25 async */ | ||
| 37 | #define N_6PACK 7 | ||
| 38 | #define N_MASC 8 /* Reserved for Mobitex module <kaz@cafe.net> */ | ||
| 39 | #define N_R3964 9 /* Reserved for Simatic R3964 module */ | ||
| 40 | #define N_PROFIBUS_FDL 10 /* Reserved for Profibus <Dave@mvhi.com> */ | ||
| 41 | #define N_IRDA 11 /* Linux IrDa - http://irda.sourceforge.net/ */ | ||
| 42 | #define N_SMSBLOCK 12 /* SMS block mode - for talking to GSM data */ | ||
| 43 | /* cards about SMS messages */ | ||
| 44 | #define N_HDLC 13 /* synchronous HDLC */ | ||
| 45 | #define N_SYNC_PPP 14 /* synchronous PPP */ | ||
| 46 | #define N_HCI 15 /* Bluetooth HCI UART */ | ||
| 47 | #define N_GIGASET_M101 16 /* Siemens Gigaset M101 serial DECT adapter */ | ||
| 28 | 48 | ||
| 29 | /* | 49 | /* |
| 30 | * This character is the same as _POSIX_VDISABLE: it cannot be used as | 50 | * This character is the same as _POSIX_VDISABLE: it cannot be used as |
