blob: a4a40b007c44da73939d7e3eb1a57b70ef7c27b6 [file] [log] [blame]
Elliott Hughesabd62612013-11-08 11:45:48 -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_IOCTLS_H
20#define __ASM_IOCTLS_H
21#include <asm/ioctl.h>
22#define TCGETA 0x5401
Elliott Hughesabd62612013-11-08 11:45:48 -080023#define TCSETA 0x5402
24#define TCSETAW 0x5403
25#define TCSETAF 0x5404
26#define TCSBRK 0x5405
Elliott Hughesabd62612013-11-08 11:45:48 -080027#define TCXONC 0x5406
28#define TCFLSH 0x5407
29#define TCGETS 0x540d
30#define TCSETS 0x540e
Elliott Hughesabd62612013-11-08 11:45:48 -080031#define TCSETSW 0x540f
32#define TCSETSF 0x5410
33#define TIOCEXCL 0x740d
34#define TIOCNXCL 0x740e
Elliott Hughesabd62612013-11-08 11:45:48 -080035#define TIOCOUTQ 0x7472
36#define TIOCSTI 0x5472
37#define TIOCMGET 0x741d
38#define TIOCMBIS 0x741b
Elliott Hughesabd62612013-11-08 11:45:48 -080039#define TIOCMBIC 0x741c
40#define TIOCMSET 0x741a
41#define TIOCPKT 0x5470
42#define TIOCPKT_DATA 0x00
Elliott Hughesabd62612013-11-08 11:45:48 -080043#define TIOCPKT_FLUSHREAD 0x01
44#define TIOCPKT_FLUSHWRITE 0x02
45#define TIOCPKT_STOP 0x04
46#define TIOCPKT_START 0x08
Elliott Hughesabd62612013-11-08 11:45:48 -080047#define TIOCPKT_NOSTOP 0x10
48#define TIOCPKT_DOSTOP 0x20
49#define TIOCPKT_IOCTL 0x40
50#define TIOCSWINSZ _IOW('t', 103, struct winsize)
Elliott Hughesabd62612013-11-08 11:45:48 -080051#define TIOCGWINSZ _IOR('t', 104, struct winsize)
52#define TIOCNOTTY 0x5471
53#define TIOCSETD 0x7401
54#define TIOCGETD 0x7400
Elliott Hughesabd62612013-11-08 11:45:48 -080055#define FIOCLEX 0x6601
56#define FIONCLEX 0x6602
57#define FIOASYNC 0x667d
58#define FIONBIO 0x667e
Elliott Hughesabd62612013-11-08 11:45:48 -080059#define FIOQSIZE 0x667f
60#define TIOCGLTC 0x7474
61#define TIOCSLTC 0x7475
62#define TIOCSPGRP _IOW('t', 118, int)
Elliott Hughesabd62612013-11-08 11:45:48 -080063#define TIOCGPGRP _IOR('t', 119, int)
64#define TIOCCONS _IOW('t', 120, int)
65#define FIONREAD 0x467f
66#define TIOCINQ FIONREAD
Elliott Hughesabd62612013-11-08 11:45:48 -080067#define TIOCGETP 0x7408
68#define TIOCSETP 0x7409
69#define TIOCSETN 0x740a
70#define TIOCSBRK 0x5427
Elliott Hughesabd62612013-11-08 11:45:48 -080071#define TIOCCBRK 0x5428
72#define TIOCGSID 0x7416
73#define TCGETS2 _IOR('T', 0x2A, struct termios2)
74#define TCSETS2 _IOW('T', 0x2B, struct termios2)
Elliott Hughesabd62612013-11-08 11:45:48 -080075#define TCSETSW2 _IOW('T', 0x2C, struct termios2)
76#define TCSETSF2 _IOW('T', 0x2D, struct termios2)
Christopher Ferris82d75042015-01-26 10:57:07 -080077#define TIOCGRS485 _IOR('T', 0x2E, struct serial_rs485)
78#define TIOCSRS485 _IOWR('T', 0x2F, struct serial_rs485)
Elliott Hughesabd62612013-11-08 11:45:48 -080079#define TIOCGPTN _IOR('T', 0x30, unsigned int)
80#define TIOCSPTLCK _IOW('T', 0x31, int)
Elliott Hughesabd62612013-11-08 11:45:48 -080081#define TIOCGDEV _IOR('T', 0x32, unsigned int)
82#define TIOCSIG _IOW('T', 0x36, int)
83#define TIOCVHANGUP 0x5437
84#define TIOCGPKT _IOR('T', 0x38, int)
Elliott Hughesabd62612013-11-08 11:45:48 -080085#define TIOCGPTLCK _IOR('T', 0x39, int)
86#define TIOCGEXCL _IOR('T', 0x40, int)
Christopher Ferris1308ad32017-11-14 17:32:13 -080087#define TIOCGPTPEER _IO('T', 0x41)
Elliott Hughesabd62612013-11-08 11:45:48 -080088#define TIOCSCTTY 0x5480
89#define TIOCGSOFTCAR 0x5481
Elliott Hughesabd62612013-11-08 11:45:48 -080090#define TIOCSSOFTCAR 0x5482
91#define TIOCLINUX 0x5483
92#define TIOCGSERIAL 0x5484
93#define TIOCSSERIAL 0x5485
Elliott Hughesabd62612013-11-08 11:45:48 -080094#define TCSBRKP 0x5486
95#define TIOCSERCONFIG 0x5488
96#define TIOCSERGWILD 0x5489
97#define TIOCSERSWILD 0x548a
Elliott Hughesabd62612013-11-08 11:45:48 -080098#define TIOCGLCKTRMIOS 0x548b
99#define TIOCSLCKTRMIOS 0x548c
100#define TIOCSERGSTRUCT 0x548d
101#define TIOCSERGETLSR 0x548e
Elliott Hughesabd62612013-11-08 11:45:48 -0800102#define TIOCSERGETMULTI 0x548f
103#define TIOCSERSETMULTI 0x5490
104#define TIOCMIWAIT 0x5491
105#define TIOCGICOUNT 0x5492
Elliott Hughesabd62612013-11-08 11:45:48 -0800106#endif