[PATCH RFC 2/6] serial_core: add separated CTS, RTS, DTR, DSR flow control flags

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch is the first step to implement hardware flow control using termiox
which will allow the user to customize which pins to use for hardware flow
control.

Signed-off-by: Aristeu Rozanski <aris@xxxxxxxxxx>

---
 include/linux/serial_core.h |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

--- linux-next.orig/include/linux/serial_core.h	2008-09-25 11:50:14.000000000 -0400
+++ linux-next/include/linux/serial_core.h	2008-09-25 11:53:57.000000000 -0400
@@ -288,7 +288,11 @@ struct uart_port {
 #define UPF_LOW_LATENCY		((__force upf_t) (1 << 13))
 #define UPF_BUGGY_UART		((__force upf_t) (1 << 14))
 #define UPF_MAGIC_MULTIPLIER	((__force upf_t) (1 << 16))
-#define UPF_CONS_FLOW		((__force upf_t) (1 << 23))
+#define UPF_FLOW_DTRXOFF	((__force upf_t) (1 << 20))
+#define UPF_FLOW_RTSXOFF	((__force upf_t) (1 << 21))
+#define UPF_FLOW_DSRXON		((__force upf_t) (1 << 22))
+#define UPF_FLOW_CTSXON		((__force upf_t) (1 << 23))
+#define UPF_CONS_FLOW		(UPF_FLOW_RTSXOFF | UPF_FLOW_CTSXON)
 #define UPF_SHARE_IRQ		((__force upf_t) (1 << 24))
 #define UPF_BOOT_AUTOCONF	((__force upf_t) (1 << 28))
 #define UPF_FIXED_PORT		((__force upf_t) (1 << 29))

-- 
Aristeu

--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux