blob: f8a4357727df909eefebac75d3dcc4e4c1595cca [file] [log] [blame]
Colin Cross07a58322022-02-08 19:45:27 -08001/****************************************************************************
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 TIOCGISO7816 _IOR('T', 0x42, struct serial_iso7816)
85#define TIOCSISO7816 _IOWR('T', 0x43, struct serial_iso7816)
86#define FIONCLEX 0x5450
87#define FIOCLEX 0x5451
88#define FIOASYNC 0x5452
89#define TIOCSERCONFIG 0x5453
90#define TIOCSERGWILD 0x5454
91#define TIOCSERSWILD 0x5455
92#define TIOCGLCKTRMIOS 0x5456
93#define TIOCSLCKTRMIOS 0x5457
94#define TIOCSERGSTRUCT 0x5458
95#define TIOCSERGETLSR 0x5459
96#define TIOCSERGETMULTI 0x545A
97#define TIOCSERSETMULTI 0x545B
98#define TIOCMIWAIT 0x545C
99#define TIOCGICOUNT 0x545D
100#ifndef FIOQSIZE
101#define FIOQSIZE 0x5460
102#endif
103#define TIOCPKT_DATA 0
104#define TIOCPKT_FLUSHREAD 1
105#define TIOCPKT_FLUSHWRITE 2
106#define TIOCPKT_STOP 4
107#define TIOCPKT_START 8
108#define TIOCPKT_NOSTOP 16
109#define TIOCPKT_DOSTOP 32
110#define TIOCPKT_IOCTL 64
111#define TIOCSER_TEMT 0x01
112#endif