David Howells | c3617f7 | 2012-10-09 09:47:26 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Liberally adapted from alpha/termios.h. In particular, the c_cc[] |
| 3 | * fields have been reordered so that termio & termios share the |
| 4 | * common subset in the same order (for brain dead programs that don't |
| 5 | * know or care about the differences). |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or |
| 8 | * modify it under the terms of the GNU General Public License |
| 9 | * as published by the Free Software Foundation; either version |
| 10 | * 2 of the License, or (at your option) any later version. |
| 11 | */ |
| 12 | #ifndef _UAPI_ASM_POWERPC_TERMIOS_H |
| 13 | #define _UAPI_ASM_POWERPC_TERMIOS_H |
| 14 | |
| 15 | |
| 16 | #include <asm/ioctls.h> |
| 17 | #include <asm/termbits.h> |
| 18 | |
| 19 | struct sgttyb { |
| 20 | char sg_ispeed; |
| 21 | char sg_ospeed; |
| 22 | char sg_erase; |
| 23 | char sg_kill; |
| 24 | short sg_flags; |
| 25 | }; |
| 26 | |
| 27 | struct tchars { |
| 28 | char t_intrc; |
| 29 | char t_quitc; |
| 30 | char t_startc; |
| 31 | char t_stopc; |
| 32 | char t_eofc; |
| 33 | char t_brkc; |
| 34 | }; |
| 35 | |
| 36 | struct ltchars { |
| 37 | char t_suspc; |
| 38 | char t_dsuspc; |
| 39 | char t_rprntc; |
| 40 | char t_flushc; |
| 41 | char t_werasc; |
| 42 | char t_lnextc; |
| 43 | }; |
| 44 | |
| 45 | struct winsize { |
| 46 | unsigned short ws_row; |
| 47 | unsigned short ws_col; |
| 48 | unsigned short ws_xpixel; |
| 49 | unsigned short ws_ypixel; |
| 50 | }; |
| 51 | |
| 52 | #define NCC 10 |
| 53 | struct termio { |
| 54 | unsigned short c_iflag; /* input mode flags */ |
| 55 | unsigned short c_oflag; /* output mode flags */ |
| 56 | unsigned short c_cflag; /* control mode flags */ |
| 57 | unsigned short c_lflag; /* local mode flags */ |
| 58 | unsigned char c_line; /* line discipline */ |
| 59 | unsigned char c_cc[NCC]; /* control characters */ |
| 60 | }; |
| 61 | |
| 62 | /* c_cc characters */ |
| 63 | #define _VINTR 0 |
| 64 | #define _VQUIT 1 |
| 65 | #define _VERASE 2 |
| 66 | #define _VKILL 3 |
| 67 | #define _VEOF 4 |
| 68 | #define _VMIN 5 |
| 69 | #define _VEOL 6 |
| 70 | #define _VTIME 7 |
| 71 | #define _VEOL2 8 |
| 72 | #define _VSWTC 9 |
| 73 | |
| 74 | |
| 75 | |
| 76 | #endif /* _UAPI_ASM_POWERPC_TERMIOS_H */ |