]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
powerpc: Add ioctls for RS485 mode control of serial drivers
authorMatthias Fuchs <mfuchs@ma-fu.de>
Tue, 30 Dec 2008 00:59:38 +0000 (00:59 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 8 Jan 2009 05:25:12 +0000 (16:25 +1100)
These ioctls take a struct serial_rs485
(see linux/serial.h) as argument. They are already available
on x86. This patch adds them for the powerpc architecture.

Signed-off-by: Matthias Fuchs <mfuchs@ma-fu.de>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/ioctls.h

index 279a6229584b010d136036823cb00f02950e6c3b..1842186d872c33818d862cff49ecc882dd7347cb 100644 (file)
@@ -89,6 +89,8 @@
 #define TIOCSBRK       0x5427  /* BSD compatibility */
 #define TIOCCBRK       0x5428  /* BSD compatibility */
 #define TIOCGSID       0x5429  /* Return the session ID of FD */
+#define TIOCGRS485     0x542e
+#define TIOCSRS485     0x542f
 #define TIOCGPTN       _IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */
 #define TIOCSPTLCK     _IOW('T',0x31, int)  /* Lock/unlock Pty */