| [2] | 1 | /* |
|---|
| 2 | * This file is subject to the terms and conditions of the GNU General Public |
|---|
| 3 | * License. See the file "COPYING" in the main directory of this archive |
|---|
| 4 | * for more details. |
|---|
| 5 | * |
|---|
| 6 | * Copyright (C) 1995, 1996, 2000, 2001 by Ralf Baechle |
|---|
| 7 | * Copyright (C) 2000, 2001 Silicon Graphics, Inc. |
|---|
| 8 | */ |
|---|
| 9 | #ifndef _ASM_TERMIOS_H |
|---|
| 10 | #define _ASM_TERMIOS_H |
|---|
| 11 | |
|---|
| 12 | #include <asm/termbits.h> |
|---|
| 13 | #include <asm/ioctls.h> |
|---|
| 14 | |
|---|
| 15 | struct sgttyb { |
|---|
| 16 | char sg_ispeed; |
|---|
| 17 | char sg_ospeed; |
|---|
| 18 | char sg_erase; |
|---|
| 19 | char sg_kill; |
|---|
| 20 | int sg_flags; /* SGI special - int, not short */ |
|---|
| 21 | }; |
|---|
| 22 | |
|---|
| 23 | struct tchars { |
|---|
| 24 | char t_intrc; |
|---|
| 25 | char t_quitc; |
|---|
| 26 | char t_startc; |
|---|
| 27 | char t_stopc; |
|---|
| 28 | char t_eofc; |
|---|
| 29 | char t_brkc; |
|---|
| 30 | }; |
|---|
| 31 | |
|---|
| 32 | struct ltchars { |
|---|
| 33 | char t_suspc; /* stop process signal */ |
|---|
| 34 | char t_dsuspc; /* delayed stop process signal */ |
|---|
| 35 | char t_rprntc; /* reprint line */ |
|---|
| 36 | char t_flushc; /* flush output (toggles) */ |
|---|
| 37 | char t_werasc; /* word erase */ |
|---|
| 38 | char t_lnextc; /* literal next character */ |
|---|
| 39 | }; |
|---|
| 40 | |
|---|
| 41 | /* TIOCGSIZE, TIOCSSIZE not defined yet. Only needed for SunOS source |
|---|
| 42 | compatibility anyway ... */ |
|---|
| 43 | |
|---|
| 44 | struct winsize { |
|---|
| 45 | unsigned short ws_row; |
|---|
| 46 | unsigned short ws_col; |
|---|
| 47 | unsigned short ws_xpixel; |
|---|
| 48 | unsigned short ws_ypixel; |
|---|
| 49 | }; |
|---|
| 50 | |
|---|
| 51 | #define NCC 8 |
|---|
| 52 | struct termio { |
|---|
| 53 | unsigned short c_iflag; /* input mode flags */ |
|---|
| 54 | unsigned short c_oflag; /* output mode flags */ |
|---|
| 55 | unsigned short c_cflag; /* control mode flags */ |
|---|
| 56 | unsigned short c_lflag; /* local mode flags */ |
|---|
| 57 | char c_line; /* line discipline */ |
|---|
| 58 | unsigned char c_cc[NCCS]; /* control characters */ |
|---|
| 59 | }; |
|---|
| 60 | |
|---|
| 61 | |
|---|
| 62 | /* modem lines */ |
|---|
| 63 | #define TIOCM_LE 0x001 /* line enable */ |
|---|
| 64 | #define TIOCM_DTR 0x002 /* data terminal ready */ |
|---|
| 65 | #define TIOCM_RTS 0x004 /* request to send */ |
|---|
| 66 | #define TIOCM_ST 0x010 /* secondary transmit */ |
|---|
| 67 | #define TIOCM_SR 0x020 /* secondary receive */ |
|---|
| 68 | #define TIOCM_CTS 0x040 /* clear to send */ |
|---|
| 69 | #define TIOCM_CAR 0x100 /* carrier detect */ |
|---|
| 70 | #define TIOCM_CD TIOCM_CAR |
|---|
| 71 | #define TIOCM_RNG 0x200 /* ring */ |
|---|
| 72 | #define TIOCM_RI TIOCM_RNG |
|---|
| 73 | #define TIOCM_DSR 0x400 /* data set ready */ |
|---|
| 74 | #define TIOCM_OUT1 0x2000 |
|---|
| 75 | #define TIOCM_OUT2 0x4000 |
|---|
| 76 | #define TIOCM_LOOP 0x8000 |
|---|
| 77 | |
|---|
| 78 | /* line disciplines */ |
|---|
| 79 | #define N_TTY 0 |
|---|
| 80 | #define N_SLIP 1 |
|---|
| 81 | #define N_MOUSE 2 |
|---|
| 82 | #define N_PPP 3 |
|---|
| 83 | #define N_STRIP 4 |
|---|
| 84 | #define N_AX25 5 |
|---|
| 85 | #define N_X25 6 /* X.25 async */ |
|---|
| 86 | #define N_6PACK 7 |
|---|
| 87 | #define N_MASC 8 /* Reserved fo Mobitex module <kaz@cafe.net> */ |
|---|
| 88 | #define N_R3964 9 /* Reserved for Simatic R3964 module */ |
|---|
| 89 | #define N_PROFIBUS_FDL 10 /* Reserved for Profibus <Dave@mvhi.com> */ |
|---|
| 90 | #define N_IRDA 11 /* Linux IrDa - http://irda.sourceforge.net/ */ |
|---|
| 91 | #define N_SMSBLOCK 12 /* SMS block mode - for talking to GSM data cards about SMS messages */ |
|---|
| 92 | #define N_HDLC 13 /* synchronous HDLC */ |
|---|
| 93 | #define N_SYNC_PPP 14 /* synchronous PPP */ |
|---|
| 94 | #define N_HCI 15 /* Bluetooth HCI UART */ |
|---|
| 95 | |
|---|
| 96 | #endif /* _ASM_TERMIOS_H */ |
|---|