diff options
author | Mike Frysinger <vapier@gentoo.org> | 2007-02-16 08:47:43 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2007-02-16 08:47:43 +0000 |
commit | 9b4045b4a59808498e881a6fbe16d14437f581cf (patch) | |
tree | da488867280516ad12482aaf0128e1271c072aa0 /2.6.20 | |
parent | punt asm/page.h (diff) | |
download | linux-headers-patches-9b4045b4a59808498e881a6fbe16d14437f581cf.tar.gz linux-headers-patches-9b4045b4a59808498e881a6fbe16d14437f581cf.tar.bz2 linux-headers-patches-9b4045b4a59808498e881a6fbe16d14437f581cf.zip |
fixup superh ioctls
Diffstat (limited to '2.6.20')
-rw-r--r-- | 2.6.20/11_all_superh-ioctls.patch | 144 |
1 files changed, 144 insertions, 0 deletions
diff --git a/2.6.20/11_all_superh-ioctls.patch b/2.6.20/11_all_superh-ioctls.patch new file mode 100644 index 0000000..93001f4 --- /dev/null +++ b/2.6.20/11_all_superh-ioctls.patch @@ -0,0 +1,144 @@ +--- a/include/asm-sh/ioctls.h ++++ b/include/asm-sh/ioctls.h +@@ -3,46 +3,46 @@ + + #include <asm/ioctl.h> + +-#define FIOCLEX _IO('f', 1) +-#define FIONCLEX _IO('f', 2) +-#define FIOASYNC _IOW('f', 125, int) +-#define FIONBIO _IOW('f', 126, int) +-#define FIONREAD _IOR('f', 127, int) ++#define FIOCLEX 0x5451 ++#define FIONCLEX 0x5450 ++#define FIOASYNC 0x5452 ++#define FIONBIO 0x5421 ++#define FIONREAD 0x541B + #define TIOCINQ FIONREAD +-#define FIOQSIZE _IOR('f', 128, loff_t) ++#define FIOQSIZE 0x5460 + + #define TCGETS 0x5401 + #define TCSETS 0x5402 + #define TCSETSW 0x5403 + #define TCSETSF 0x5404 + +-#define TCGETA _IOR('t', 23, struct termio) +-#define TCSETA _IOW('t', 24, struct termio) +-#define TCSETAW _IOW('t', 25, struct termio) +-#define TCSETAF _IOW('t', 28, struct termio) ++#define TCGETA 0x5405 ++#define TCSETA 0x5406 ++#define TCSETAW 0x5407 ++#define TCSETAF 0x5408 + +-#define TCSBRK _IO('t', 29) +-#define TCXONC _IO('t', 30) +-#define TCFLSH _IO('t', 31) ++#define TCSBRK 0x5409 ++#define TCXONC 0x540A ++#define TCFLSH 0x540B + +-#define TIOCSWINSZ _IOW('t', 103, struct winsize) +-#define TIOCGWINSZ _IOR('t', 104, struct winsize) +-#define TIOCSTART _IO('t', 110) /* start output, like ^Q */ +-#define TIOCSTOP _IO('t', 111) /* stop output, like ^S */ +-#define TIOCOUTQ _IOR('t', 115, int) /* output queue size */ ++#define TIOCSWINSZ 0x5414 ++#define TIOCGWINSZ 0x5413 ++#define TIOCSTART 0x746E ++#define TIOCSTOP 0x746F ++#define TIOCOUTQ 0x5411 + +-#define TIOCSPGRP _IOW('t', 118, int) +-#define TIOCGPGRP _IOR('t', 119, int) ++#define TIOCSPGRP 0x5410 ++#define TIOCGPGRP 0x540F + +-#define TIOCEXCL _IO('T', 12) /* 0x540C */ +-#define TIOCNXCL _IO('T', 13) /* 0x540D */ +-#define TIOCSCTTY _IO('T', 14) /* 0x540E */ ++#define TIOCEXCL 0x540C ++#define TIOCNXCL 0x540D ++#define TIOCSCTTY 0x540E + +-#define TIOCSTI _IOW('T', 18, char) /* 0x5412 */ +-#define TIOCMGET _IOR('T', 21, unsigned int) /* 0x5415 */ +-#define TIOCMBIS _IOW('T', 22, unsigned int) /* 0x5416 */ +-#define TIOCMBIC _IOW('T', 23, unsigned int) /* 0x5417 */ +-#define TIOCMSET _IOW('T', 24, unsigned int) /* 0x5418 */ ++#define TIOCSTI 0x5412 ++#define TIOCMGET 0x5415 ++#define TIOCMBIS 0x5416 ++#define TIOCMBIC 0x5417 ++#define TIOCMSET 0x5418 + # define TIOCM_LE 0x001 + # define TIOCM_DTR 0x002 + # define TIOCM_RTS 0x004 +@@ -55,13 +55,13 @@ + # define TIOCM_CD TIOCM_CAR + # define TIOCM_RI TIOCM_RNG + +-#define TIOCGSOFTCAR _IOR('T', 25, unsigned int) /* 0x5419 */ +-#define TIOCSSOFTCAR _IOW('T', 26, unsigned int) /* 0x541A */ +-#define TIOCLINUX _IOW('T', 28, char) /* 0x541C */ +-#define TIOCCONS _IO('T', 29) /* 0x541D */ +-#define TIOCGSERIAL _IOR('T', 30, struct serial_struct) /* 0x541E */ +-#define TIOCSSERIAL _IOW('T', 31, struct serial_struct) /* 0x541F */ +-#define TIOCPKT _IOW('T', 32, int) /* 0x5420 */ ++#define TIOCGSOFTCAR 0x5419 ++#define TIOCSSOFTCAR 0x541A ++#define TIOCLINUX 0x541C ++#define TIOCCONS 0x541D ++#define TIOCGSERIAL 0x541E ++#define TIOCSSERIAL 0x541F ++#define TIOCPKT 0x5420 + # define TIOCPKT_DATA 0 + # define TIOCPKT_FLUSHREAD 1 + # define TIOCPKT_FLUSHWRITE 2 +@@ -71,29 +71,29 @@ + # define TIOCPKT_DOSTOP 32 + + +-#define TIOCNOTTY _IO('T', 34) /* 0x5422 */ +-#define TIOCSETD _IOW('T', 35, int) /* 0x5423 */ +-#define TIOCGETD _IOR('T', 36, int) /* 0x5424 */ +-#define TCSBRKP _IOW('T', 37, int) /* 0x5425 */ /* Needed for POSIX tcsendbreak() */ +-#define TIOCSBRK _IO('T', 39) /* 0x5427 */ /* BSD compatibility */ +-#define TIOCCBRK _IO('T', 40) /* 0x5428 */ /* BSD compatibility */ +-#define TIOCGSID _IOR('T', 41, pid_t) /* 0x5429 */ /* Return the session ID of FD */ ++#define TIOCNOTTY 0x5422 ++#define TIOCSETD 0x5423 ++#define TIOCGETD 0x5424 ++#define TCSBRKP 0x5425 /* Needed for POSIX tcsendbreak() */ ++#define TIOCSBRK 0x5427 /* BSD compatibility */ ++#define TIOCCBRK 0x5428 /* BSD compatibility */ ++#define TIOCGSID 0x5429 /* Return the session ID of FD */ + #define TIOCGPTN _IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */ +-#define TIOCSPTLCK _IOW('T',0x31, int) /* Lock/unlock Pty */ ++#define TIOCSPTLCK _IOW('T',0x31, int) /* Lock/unlock Pty */ + +-#define TIOCSERCONFIG _IO('T', 83) /* 0x5453 */ +-#define TIOCSERGWILD _IOR('T', 84, int) /* 0x5454 */ +-#define TIOCSERSWILD _IOW('T', 85, int) /* 0x5455 */ ++#define TIOCSERCONFIG 0x5453 ++#define TIOCSERGWILD 0x5454 ++#define TIOCSERSWILD 0x5455 + #define TIOCGLCKTRMIOS 0x5456 + #define TIOCSLCKTRMIOS 0x5457 +-#define TIOCSERGSTRUCT _IOR('T', 88, struct async_struct) /* 0x5458 */ /* For debugging only */ +-#define TIOCSERGETLSR _IOR('T', 89, unsigned int) /* 0x5459 */ /* Get line status register */ ++#define TIOCSERGSTRUCT 0x5458 /* For debugging only */ ++#define TIOCSERGETLSR 0x5459 /* Get line status register */ + /* ioctl (fd, TIOCSERGETLSR, &result) where result may be as below */ + # define TIOCSER_TEMT 0x01 /* Transmitter physically empty */ +-#define TIOCSERGETMULTI _IOR('T', 90, struct serial_multiport_struct) /* 0x545A */ /* Get multiport config */ +-#define TIOCSERSETMULTI _IOW('T', 91, struct serial_multiport_struct) /* 0x545B */ /* Set multiport config */ ++#define TIOCSERGETMULTI 0x545A /* Get multiport config */ ++#define TIOCSERSETMULTI 0x545B /* Set multiport config */ + +-#define TIOCMIWAIT _IO('T', 92) /* 0x545C */ /* wait for a change on serial input line(s) */ ++#define TIOCMIWAIT 0x545C /* wait for a change on serial input line(s) */ + #define TIOCGICOUNT 0x545D /* read serial port inline interrupt counts */ + + #endif /* __ASM_SH_IOCTLS_H */ |