summaryrefslogtreecommitdiffstats
path: root/kernel/arch/cris/include/uapi/asm/rs485.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/arch/cris/include/uapi/asm/rs485.h')
-rw-r--r--kernel/arch/cris/include/uapi/asm/rs485.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/kernel/arch/cris/include/uapi/asm/rs485.h b/kernel/arch/cris/include/uapi/asm/rs485.h
new file mode 100644
index 000000000..ad40f9fbc
--- /dev/null
+++ b/kernel/arch/cris/include/uapi/asm/rs485.h
@@ -0,0 +1,18 @@
+/* RS-485 structures */
+
+/* Used with ioctl() TIOCSERSETRS485 for backward compatibility!
+ * XXX: Do not use it for new code!
+ */
+struct rs485_control {
+ unsigned short rts_on_send;
+ unsigned short rts_after_sent;
+ unsigned long delay_rts_before_send;
+ unsigned short enabled;
+};
+
+/* Used with ioctl() TIOCSERWRRS485 */
+struct rs485_write {
+ unsigned short outc_size;
+ unsigned char *outc;
+};
+