summaryrefslogtreecommitdiffstats
path: root/bsps/sh/gensh2/include/sh/sci_termios.h
diff options
context:
space:
mode:
Diffstat (limited to 'bsps/sh/gensh2/include/sh/sci_termios.h')
-rw-r--r--bsps/sh/gensh2/include/sh/sci_termios.h65
1 files changed, 65 insertions, 0 deletions
diff --git a/bsps/sh/gensh2/include/sh/sci_termios.h b/bsps/sh/gensh2/include/sh/sci_termios.h
new file mode 100644
index 0000000000..63750c9461
--- /dev/null
+++ b/bsps/sh/gensh2/include/sh/sci_termios.h
@@ -0,0 +1,65 @@
+/*
+ * COPYRIGHT (c) 1989-2001.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.org/license/LICENSE.
+ *
+ */
+
+#ifndef _SH_SCI_TERMIOS_H_
+#define _SH_SCI_TERMIOS_H_
+
+#ifdef __cplusplus
+extern "C"{
+#endif
+
+
+int sh_sci_set_attributes(
+ int minor,
+ const struct termios *t
+);
+
+void sh_sci_initialize_interrupts(int minor);
+
+void sh_sci_init(int minor);
+
+ssize_t sh_sci_write_support_int(
+ int minor,
+ const char *buf,
+ size_t len
+);
+
+ssize_t sh_sci_write_support_polled(
+ int minor,
+ const char *buf,
+ size_t len
+);
+
+void sh_sci_write_polled(
+ int minor,
+ char c
+);
+
+int sh_sci_inbyte_nonblocking_polled(int minor);
+
+
+int sh_sci_first_open(
+ int major,
+ int minor,
+ void *arg
+);
+
+int sh_sci_last_close(
+ int major,
+ int minor,
+ void *arg
+);
+
+#ifdef __cplusplus
+}
+#endif
+
+
+#endif /* _SH_SCI_TERMIOS_H_ */