1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was automatically generated from a Linux kernel header
5  ***   of the same name, to make information necessary for userspace to
6  ***   call into the kernel available to libc.  It contains only constants,
7  ***   structures, and macros generated from the original header, and thus,
8  ***   contains no copyrightable information.
9  ***
10  ***   To edit the content of this header, modify the corresponding
11  ***   source file (e.g. under external/kernel-headers/original/) then
12  ***   run bionic/libc/kernel/tools/update_all.py
13  ***
14  ***   Any manual change here will be lost the next time this script will
15  ***   be run. You've been warned!
16  ***
17  ****************************************************************************
18  ****************************************************************************/
19 #ifndef __ASM_GENERIC_IOCTLS_H
20 #define __ASM_GENERIC_IOCTLS_H
21 #include <linux/ioctl.h>
22 #define TCGETS 0x5401
23 #define TCSETS 0x5402
24 #define TCSETSW 0x5403
25 #define TCSETSF 0x5404
26 #define TCGETA 0x5405
27 #define TCSETA 0x5406
28 #define TCSETAW 0x5407
29 #define TCSETAF 0x5408
30 #define TCSBRK 0x5409
31 #define TCXONC 0x540A
32 #define TCFLSH 0x540B
33 #define TIOCEXCL 0x540C
34 #define TIOCNXCL 0x540D
35 #define TIOCSCTTY 0x540E
36 #define TIOCGPGRP 0x540F
37 #define TIOCSPGRP 0x5410
38 #define TIOCOUTQ 0x5411
39 #define TIOCSTI 0x5412
40 #define TIOCGWINSZ 0x5413
41 #define TIOCSWINSZ 0x5414
42 #define TIOCMGET 0x5415
43 #define TIOCMBIS 0x5416
44 #define TIOCMBIC 0x5417
45 #define TIOCMSET 0x5418
46 #define TIOCGSOFTCAR 0x5419
47 #define TIOCSSOFTCAR 0x541A
48 #define FIONREAD 0x541B
49 #define TIOCINQ FIONREAD
50 #define TIOCLINUX 0x541C
51 #define TIOCCONS 0x541D
52 #define TIOCGSERIAL 0x541E
53 #define TIOCSSERIAL 0x541F
54 #define TIOCPKT 0x5420
55 #define FIONBIO 0x5421
56 #define TIOCNOTTY 0x5422
57 #define TIOCSETD 0x5423
58 #define TIOCGETD 0x5424
59 #define TCSBRKP 0x5425
60 #define TIOCSBRK 0x5427
61 #define TIOCCBRK 0x5428
62 #define TIOCGSID 0x5429
63 #define TCGETS2 _IOR('T', 0x2A, struct termios2)
64 #define TCSETS2 _IOW('T', 0x2B, struct termios2)
65 #define TCSETSW2 _IOW('T', 0x2C, struct termios2)
66 #define TCSETSF2 _IOW('T', 0x2D, struct termios2)
67 #define TIOCGRS485 0x542E
68 #ifndef TIOCSRS485
69 #define TIOCSRS485 0x542F
70 #endif
71 #define TIOCGPTN _IOR('T', 0x30, unsigned int)
72 #define TIOCSPTLCK _IOW('T', 0x31, int)
73 #define TIOCGDEV _IOR('T', 0x32, unsigned int)
74 #define TCGETX 0x5432
75 #define TCSETX 0x5433
76 #define TCSETXF 0x5434
77 #define TCSETXW 0x5435
78 #define TIOCSIG _IOW('T', 0x36, int)
79 #define TIOCVHANGUP 0x5437
80 #define TIOCGPKT _IOR('T', 0x38, int)
81 #define TIOCGPTLCK _IOR('T', 0x39, int)
82 #define TIOCGEXCL _IOR('T', 0x40, int)
83 #define TIOCGPTPEER _IO('T', 0x41)
84 #define TIOCPMGET 0x544D
85 #define TIOCPMPUT 0x544E
86 #define TIOCPMACT 0x544F
87 #define FIONCLEX 0x5450
88 #define FIOCLEX 0x5451
89 #define FIOASYNC 0x5452
90 #define TIOCSERCONFIG 0x5453
91 #define TIOCSERGWILD 0x5454
92 #define TIOCSERSWILD 0x5455
93 #define TIOCGLCKTRMIOS 0x5456
94 #define TIOCSLCKTRMIOS 0x5457
95 #define TIOCSERGSTRUCT 0x5458
96 #define TIOCSERGETLSR 0x5459
97 #define TIOCSERGETMULTI 0x545A
98 #define TIOCSERSETMULTI 0x545B
99 #define TIOCMIWAIT 0x545C
100 #define TIOCGICOUNT 0x545D
101 #ifndef FIOQSIZE
102 #define FIOQSIZE 0x5460
103 #endif
104 #define TIOCPKT_DATA 0
105 #define TIOCPKT_FLUSHREAD 1
106 #define TIOCPKT_FLUSHWRITE 2
107 #define TIOCPKT_STOP 4
108 #define TIOCPKT_START 8
109 #define TIOCPKT_NOSTOP 16
110 #define TIOCPKT_DOSTOP 32
111 #define TIOCPKT_IOCTL 64
112 #define TIOCSER_TEMT 0x01
113 #endif
114