Linux-2.6.12-rc2
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / include / asm-ppc64 / ioctls.h
blob48796bf3e4fc293456df9936b5641529b6da5f41
1 #ifndef _ASM_PPC64_IOCTLS_H
2 #define _ASM_PPC64_IOCTLS_H
4 /*
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version
8 * 2 of the License, or (at your option) any later version.
9 */
11 #include <asm/ioctl.h>
13 #define FIOCLEX _IO('f', 1)
14 #define FIONCLEX _IO('f', 2)
15 #define FIOASYNC _IOW('f', 125, int)
16 #define FIONBIO _IOW('f', 126, int)
17 #define FIONREAD _IOR('f', 127, int)
18 #define TIOCINQ FIONREAD
19 #define FIOQSIZE _IOR('f', 128, loff_t)
21 #define TIOCGETP _IOR('t', 8, struct sgttyb)
22 #define TIOCSETP _IOW('t', 9, struct sgttyb)
23 #define TIOCSETN _IOW('t', 10, struct sgttyb) /* TIOCSETP wo flush */
25 #define TIOCSETC _IOW('t', 17, struct tchars)
26 #define TIOCGETC _IOR('t', 18, struct tchars)
27 #define TCGETS _IOR('t', 19, struct termios)
28 #define TCSETS _IOW('t', 20, struct termios)
29 #define TCSETSW _IOW('t', 21, struct termios)
30 #define TCSETSF _IOW('t', 22, struct termios)
32 #define TCGETA _IOR('t', 23, struct termio)
33 #define TCSETA _IOW('t', 24, struct termio)
34 #define TCSETAW _IOW('t', 25, struct termio)
35 #define TCSETAF _IOW('t', 28, struct termio)
37 #define TCSBRK _IO('t', 29)
38 #define TCXONC _IO('t', 30)
39 #define TCFLSH _IO('t', 31)
41 #define TIOCSWINSZ _IOW('t', 103, struct winsize)
42 #define TIOCGWINSZ _IOR('t', 104, struct winsize)
43 #define TIOCSTART _IO('t', 110) /* start output, like ^Q */
44 #define TIOCSTOP _IO('t', 111) /* stop output, like ^S */
45 #define TIOCOUTQ _IOR('t', 115, int) /* output queue size */
47 #define TIOCGLTC _IOR('t', 116, struct ltchars)
48 #define TIOCSLTC _IOW('t', 117, struct ltchars)
49 #define TIOCSPGRP _IOW('t', 118, int)
50 #define TIOCGPGRP _IOR('t', 119, int)
52 #define TIOCEXCL 0x540C
53 #define TIOCNXCL 0x540D
54 #define TIOCSCTTY 0x540E
56 #define TIOCSTI 0x5412
57 #define TIOCMGET 0x5415
58 #define TIOCMBIS 0x5416
59 #define TIOCMBIC 0x5417
60 #define TIOCMSET 0x5418
61 # define TIOCM_LE 0x001
62 # define TIOCM_DTR 0x002
63 # define TIOCM_RTS 0x004
64 # define TIOCM_ST 0x008
65 # define TIOCM_SR 0x010
66 # define TIOCM_CTS 0x020
67 # define TIOCM_CAR 0x040
68 # define TIOCM_RNG 0x080
69 # define TIOCM_DSR 0x100
70 # define TIOCM_CD TIOCM_CAR
71 # define TIOCM_RI TIOCM_RNG
73 #define TIOCGSOFTCAR 0x5419
74 #define TIOCSSOFTCAR 0x541A
75 #define TIOCLINUX 0x541C
76 #define TIOCCONS 0x541D
77 #define TIOCGSERIAL 0x541E
78 #define TIOCSSERIAL 0x541F
79 #define TIOCPKT 0x5420
80 # define TIOCPKT_DATA 0
81 # define TIOCPKT_FLUSHREAD 1
82 # define TIOCPKT_FLUSHWRITE 2
83 # define TIOCPKT_STOP 4
84 # define TIOCPKT_START 8
85 # define TIOCPKT_NOSTOP 16
86 # define TIOCPKT_DOSTOP 32
89 #define TIOCNOTTY 0x5422
90 #define TIOCSETD 0x5423
91 #define TIOCGETD 0x5424
92 #define TCSBRKP 0x5425 /* Needed for POSIX tcsendbreak() */
93 #define TIOCSBRK 0x5427 /* BSD compatibility */
94 #define TIOCCBRK 0x5428 /* BSD compatibility */
95 #define TIOCGSID 0x5429 /* Return the session ID of FD */
96 #define TIOCGPTN _IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */
97 #define TIOCSPTLCK _IOW('T',0x31, int) /* Lock/unlock Pty */
99 #define TIOCSERCONFIG 0x5453
100 #define TIOCSERGWILD 0x5454
101 #define TIOCSERSWILD 0x5455
102 #define TIOCGLCKTRMIOS 0x5456
103 #define TIOCSLCKTRMIOS 0x5457
104 #define TIOCSERGSTRUCT 0x5458 /* For debugging only */
105 #define TIOCSERGETLSR 0x5459 /* Get line status register */
106 /* ioctl (fd, TIOCSERGETLSR, &result) where result may be as below */
107 # define TIOCSER_TEMT 0x01 /* Transmitter physically empty */
108 #define TIOCSERGETMULTI 0x545A /* Get multiport config */
109 #define TIOCSERSETMULTI 0x545B /* Set multiport config */
111 #define TIOCMIWAIT 0x545C /* wait for a change on serial input line(s) */
112 #define TIOCGICOUNT 0x545D /* read serial port inline interrupt counts */
114 #endif /* _ASM_PPC64_IOCTLS_H */