[ubicom32]: move new files out from platform support patch
[openwrt.git] / target / linux / ubicom32 / files / arch / ubicom32 / include / asm / ioctls.h
1 /*
2  * arch/ubicom32/include/asm/ioctls.h
3  *   Definitions of ioctls for Ubicom32 architecture.
4  *
5  * (C) Copyright 2009, Ubicom, Inc.
6  *
7  * This file is part of the Ubicom32 Linux Kernel Port.
8  *
9  * The Ubicom32 Linux Kernel Port is free software: you can redistribute
10  * it and/or modify it under the terms of the GNU General Public License
11  * as published by the Free Software Foundation, either version 2 of the
12  * License, or (at your option) any later version.
13  *
14  * The Ubicom32 Linux Kernel Port is distributed in the hope that it
15  * will be useful, but WITHOUT ANY WARRANTY; without even the implied
16  * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See
17  * the GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with the Ubicom32 Linux Kernel Port.  If not,
21  * see <http://www.gnu.org/licenses/>.
22  *
23  * Ubicom32 implementation derived from (with many thanks):
24  *   arch/m68knommu
25  *   arch/blackfin
26  *   arch/parisc
27  */
28 #ifndef _ASM_UBICOM32_IOCTLS_H
29 #define _ASM_UBICOM32_IOCTLS_H
30
31 #include <asm/ioctl.h>
32
33 /* 0x54 is just a magic number to make these relatively unique ('T') */
34
35 #define TCGETS          0x5401
36 #define TCSETS          0x5402
37 #define TCSETSW         0x5403
38 #define TCSETSF         0x5404
39 #define TCGETA          0x5405
40 #define TCSETA          0x5406
41 #define TCSETAW         0x5407
42 #define TCSETAF         0x5408
43 #define TCSBRK          0x5409
44 #define TCXONC          0x540A
45 #define TCFLSH          0x540B
46 #define TIOCEXCL        0x540C
47 #define TIOCNXCL        0x540D
48 #define TIOCSCTTY       0x540E
49 #define TIOCGPGRP       0x540F
50 #define TIOCSPGRP       0x5410
51 #define TIOCOUTQ        0x5411
52 #define TIOCSTI         0x5412
53 #define TIOCGWINSZ      0x5413
54 #define TIOCSWINSZ      0x5414
55 #define TIOCMGET        0x5415
56 #define TIOCMBIS        0x5416
57 #define TIOCMBIC        0x5417
58 #define TIOCMSET        0x5418
59 #define TIOCGSOFTCAR    0x5419
60 #define TIOCSSOFTCAR    0x541A
61 #define FIONREAD        0x541B
62 #define TIOCINQ         FIONREAD
63 #define TIOCLINUX       0x541C
64 #define TIOCCONS        0x541D
65 #define TIOCGSERIAL     0x541E
66 #define TIOCSSERIAL     0x541F
67 #define TIOCPKT         0x5420
68 #define FIONBIO         0x5421
69 #define TIOCNOTTY       0x5422
70 #define TIOCSETD        0x5423
71 #define TIOCGETD        0x5424
72 #define TCSBRKP         0x5425  /* Needed for POSIX tcsendbreak() */
73 #define TIOCSBRK        0x5427  /* BSD compatibility */
74 #define TIOCCBRK        0x5428  /* BSD compatibility */
75 #define TIOCGSID        0x5429  /* Return the session ID of FD */
76 #define TCGETS2         _IOR('T',0x2A, struct termios2)
77 #define TCSETS2         _IOW('T',0x2B, struct termios2)
78 #define TCSETSW2        _IOW('T',0x2C, struct termios2)
79 #define TCSETSF2        _IOW('T',0x2D, struct termios2)
80 #define TIOCGPTN        _IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */
81 #define TIOCSPTLCK      _IOW('T',0x31, int)  /* Lock/unlock Pty */
82
83 #define FIONCLEX        0x5450  /* these numbers need to be adjusted. */
84 #define FIOCLEX         0x5451
85 #define FIOASYNC        0x5452
86 #define TIOCSERCONFIG   0x5453
87 #define TIOCSERGWILD    0x5454
88 #define TIOCSERSWILD    0x5455
89 #define TIOCGLCKTRMIOS  0x5456
90 #define TIOCSLCKTRMIOS  0x5457
91 #define TIOCSERGSTRUCT  0x5458 /* For debugging only */
92 #define TIOCSERGETLSR   0x5459 /* Get line status register */
93 #define TIOCSERGETMULTI 0x545A /* Get multiport config  */
94 #define TIOCSERSETMULTI 0x545B /* Set multiport config */
95
96 #define TIOCMIWAIT      0x545C  /* wait for a change on serial input line(s) */
97 #define TIOCGICOUNT     0x545D  /* read serial port inline interrupt counts */
98 #define FIOQSIZE        0x545E
99
100 /* Used for packet mode */
101 #define TIOCPKT_DATA             0
102 #define TIOCPKT_FLUSHREAD        1
103 #define TIOCPKT_FLUSHWRITE       2
104 #define TIOCPKT_STOP             4
105 #define TIOCPKT_START            8
106 #define TIOCPKT_NOSTOP          16
107 #define TIOCPKT_DOSTOP          32
108
109 #define TIOCSER_TEMT    0x01    /* Transmitter physically empty */
110
111 #endif /* _ASM_UBICOM32_IOCTLS_H */