aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/ioctls.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/include/asm/ioctls.h')
-rw-r--r--arch/x86/include/asm/ioctls.h40
1 files changed, 28 insertions, 12 deletions
diff --git a/arch/x86/include/asm/ioctls.h b/arch/x86/include/asm/ioctls.h
index 0d5b23b7b06e..a799e20a769e 100644
--- a/arch/x86/include/asm/ioctls.h
+++ b/arch/x86/include/asm/ioctls.h
@@ -1,12 +1,23 @@
1#ifndef _ASM_X86_IOCTLS_H 1#ifndef __ASM_GENERIC_IOCTLS_H
2#define _ASM_X86_IOCTLS_H 2#define __ASM_GENERIC_IOCTLS_H
3 3
4#include <asm/ioctl.h> 4#include <linux/ioctl.h>
5
6/*
7 * These are the most common definitions for tty ioctl numbers.
8 * Most of them do not use the recommended _IOC(), but there is
9 * probably some source code out there hardcoding the number,
10 * so we might as well use them for all new platforms.
11 *
12 * The architectures that use different values here typically
13 * try to be compatible with some Unix variants for the same
14 * architecture.
15 */
5 16
6/* 0x54 is just a magic number to make these relatively unique ('T') */ 17/* 0x54 is just a magic number to make these relatively unique ('T') */
7 18
8#define TCGETS 0x5401 19#define TCGETS 0x5401
9#define TCSETS 0x5402 /* Clashes with SNDCTL_TMR_START sound ioctl */ 20#define TCSETS 0x5402
10#define TCSETSW 0x5403 21#define TCSETSW 0x5403
11#define TCSETSF 0x5404 22#define TCSETSF 0x5404
12#define TCGETA 0x5405 23#define TCGETA 0x5405
@@ -43,7 +54,6 @@
43#define TIOCSETD 0x5423 54#define TIOCSETD 0x5423
44#define TIOCGETD 0x5424 55#define TIOCGETD 0x5424
45#define TCSBRKP 0x5425 /* Needed for POSIX tcsendbreak() */ 56#define TCSBRKP 0x5425 /* Needed for POSIX tcsendbreak() */
46/* #define TIOCTTYGSTRUCT 0x5426 - Former debugging-only ioctl */
47#define TIOCSBRK 0x5427 /* BSD compatibility */ 57#define TIOCSBRK 0x5427 /* BSD compatibility */
48#define TIOCCBRK 0x5428 /* BSD compatibility */ 58#define TIOCCBRK 0x5428 /* BSD compatibility */
49#define TIOCGSID 0x5429 /* Return the session ID of FD */ 59#define TIOCGSID 0x5429 /* Return the session ID of FD */
@@ -53,8 +63,7 @@
53#define TCSETSF2 _IOW('T', 0x2D, struct termios2) 63#define TCSETSF2 _IOW('T', 0x2D, struct termios2)
54#define TIOCGRS485 0x542E 64#define TIOCGRS485 0x542E
55#define TIOCSRS485 0x542F 65#define TIOCSRS485 0x542F
56#define TIOCGPTN _IOR('T', 0x30, unsigned int) 66#define TIOCGPTN _IOR('T', 0x30, unsigned int) /* Get Pty Number (of pty-mux device) */
57 /* Get Pty Number (of pty-mux device) */
58#define TIOCSPTLCK _IOW('T', 0x31, int) /* Lock/unlock Pty */ 67#define TIOCSPTLCK _IOW('T', 0x31, int) /* Lock/unlock Pty */
59#define TCGETX 0x5432 /* SYS5 TCGETX compatibility */ 68#define TCGETX 0x5432 /* SYS5 TCGETX compatibility */
60#define TCSETX 0x5433 69#define TCSETX 0x5433
@@ -76,9 +85,16 @@
76 85
77#define TIOCMIWAIT 0x545C /* wait for a change on serial input line(s) */ 86#define TIOCMIWAIT 0x545C /* wait for a change on serial input line(s) */
78#define TIOCGICOUNT 0x545D /* read serial port inline interrupt counts */ 87#define TIOCGICOUNT 0x545D /* read serial port inline interrupt counts */
79#define TIOCGHAYESESP 0x545E /* Get Hayes ESP configuration */ 88
80#define TIOCSHAYESESP 0x545F /* Set Hayes ESP configuration */ 89/*
81#define FIOQSIZE 0x5460 90 * some architectures define FIOQSIZE as 0x545E, which is used for
91 * TIOCGHAYESESP on others
92 */
93#ifndef FIOQSIZE
94# define TIOCGHAYESESP 0x545E /* Get Hayes ESP configuration */
95# define TIOCSHAYESESP 0x545F /* Set Hayes ESP configuration */
96# define FIOQSIZE 0x5460
97#endif
82 98
83/* Used for packet mode */ 99/* Used for packet mode */
84#define TIOCPKT_DATA 0 100#define TIOCPKT_DATA 0
@@ -89,6 +105,6 @@
89#define TIOCPKT_NOSTOP 16 105#define TIOCPKT_NOSTOP 16
90#define TIOCPKT_DOSTOP 32 106#define TIOCPKT_DOSTOP 32
91 107
92#define TIOCSER_TEMT 0x01 /* Transmitter physically empty */ 108#define TIOCSER_TEMT 0x01 /* Transmitter physically empty */
93 109
94#endif /* _ASM_X86_IOCTLS_H */ 110#endif /* __ASM_GENERIC_IOCTLS_H */