summaryrefslogtreecommitdiffstats
path: root/include/asm-cris/rs485.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-cris/rs485.h')
-rw-r--r--include/asm-cris/rs485.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/asm-cris/rs485.h b/include/asm-cris/rs485.h
new file mode 100644
index 0000000..c331c51
--- /dev/null
+++ b/include/asm-cris/rs485.h
@@ -0,0 +1,20 @@
+/* RS-485 structures */
+
+/* RS-485 support */
+/* Used with ioctl() TIOCSERSETRS485 */
+struct rs485_control {
+ unsigned short rts_on_send;
+ unsigned short rts_after_sent;
+ unsigned long delay_rts_before_send;
+ unsigned short enabled;
+#ifdef __KERNEL__
+ int disable_serial_loopback;
+#endif
+};
+
+/* Used with ioctl() TIOCSERWRRS485 */
+struct rs485_write {
+ unsigned short outc_size;
+ unsigned char *outc;
+};
+
OpenPOWER on IntegriCloud