| 1 | /* termios baud platform specific definitions. Linux/powerpc version. |
| 2 | Copyright (C) 2019-2026 Free Software Foundation, Inc. |
| 3 | This file is part of the GNU C Library. |
| 4 | |
| 5 | The GNU C Library is free software; you can redistribute it and/or |
| 6 | modify it under the terms of the GNU Lesser General Public |
| 7 | License as published by the Free Software Foundation; either |
| 8 | version 2.1 of the License, or (at your option) any later version. |
| 9 | |
| 10 | The GNU C Library is distributed in the hope that it will be useful, |
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 | Lesser General Public License for more details. |
| 14 | |
| 15 | You should have received a copy of the GNU Lesser General Public |
| 16 | License along with the GNU C Library. If not, see |
| 17 | <https://www.gnu.org/licenses/>. */ |
| 18 | |
| 19 | #ifndef _TERMIOS_H |
| 20 | # error "Never include <bits/termios-misc.h> directly; use <termios.h> instead." |
| 21 | #endif |
| 22 | |
| 23 | #ifdef __USE_MISC |
| 24 | |
| 25 | struct sgttyb { |
| 26 | 	char	sg_ispeed; |
| 27 | 	char	sg_ospeed; |
| 28 | 	char	sg_erase; |
| 29 | 	char	sg_kill; |
| 30 | 	short	sg_flags; |
| 31 | }; |
| 32 | |
| 33 | struct tchars { |
| 34 | 	char	t_intrc; |
| 35 | 	char	t_quitc; |
| 36 | 	char	t_startc; |
| 37 | 	char	t_stopc; |
| 38 | 	char	t_eofc; |
| 39 | 	char	t_brkc; |
| 40 | }; |
| 41 | |
| 42 | struct ltchars { |
| 43 | 	char	t_suspc; |
| 44 | 	char	t_dsuspc; |
| 45 | 	char	t_rprntc; |
| 46 | 	char	t_flushc; |
| 47 | 	char	t_werasc; |
| 48 | 	char	t_lnextc; |
| 49 | }; |
| 50 | |
| 51 | /* Used for packet mode */ |
| 52 | #define TIOCPKT_DATA		 0 |
| 53 | #define TIOCPKT_FLUSHREAD	 1 |
| 54 | #define TIOCPKT_FLUSHWRITE	 2 |
| 55 | #define TIOCPKT_STOP		 4 |
| 56 | #define TIOCPKT_START		 8 |
| 57 | #define TIOCPKT_NOSTOP		16 |
| 58 | #define TIOCPKT_DOSTOP		32 |
| 59 | |
| 60 | /* c_cc characters */ |
| 61 | #define _VINTR	0 |
| 62 | #define _VQUIT	1 |
| 63 | #define _VERASE	2 |
| 64 | #define _VKILL	3 |
| 65 | #define _VEOF	4 |
| 66 | #define _VMIN	5 |
| 67 | #define _VEOL	6 |
| 68 | #define _VTIME	7 |
| 69 | #define _VEOL2	8 |
| 70 | #define _VSWTC	9 |
| 71 | |
| 72 | #endif /* __USE_MISC */ |