summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/m68k/mvme162/consolex/consolex.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1997-08-01 18:12:11 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1997-08-01 18:12:11 +0000
commit9deb5b8b2822eb49c7a31d35d37d9b59dcd6555c (patch)
tree2797615f5f5eab05772d2bb807ba95e0d632481b /c/src/lib/libbsp/m68k/mvme162/consolex/consolex.h
parentMerged very large and much appreciated patch from Chris Johns (diff)
downloadrtems-9deb5b8b2822eb49c7a31d35d37d9b59dcd6555c.tar.bz2
Katsutoshi Shibuya (shibuya@mxb.meshnet.or.jp)of BU-Denken Co., Ltd.
(Sapporo, Japan) submitted the extended console driver for the MVME162LX BSP and the POSIX tcsetattr() and tcgetattr() routines. This device driver supports four serial ports, cooked IO, and provides a portable base for Zilog 8530 based console drivers.
Diffstat (limited to 'c/src/lib/libbsp/m68k/mvme162/consolex/consolex.h')
-rw-r--r--c/src/lib/libbsp/m68k/mvme162/consolex/consolex.h93
1 files changed, 93 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/m68k/mvme162/consolex/consolex.h b/c/src/lib/libbsp/m68k/mvme162/consolex/consolex.h
new file mode 100644
index 0000000000..b7ccb2a464
--- /dev/null
+++ b/c/src/lib/libbsp/m68k/mvme162/consolex/consolex.h
@@ -0,0 +1,93 @@
+/* consolex.h
+ *
+ * This file describes the Extended Console Device Driver
+ * This driver provides support for the standard C Library.
+ *
+ * This file was created originally by
+ * On-Line Applications Research Corporation (OAR)
+ * and modified by:
+ *
+ * Katsutoshi Shibuya - BU-Denken Co.,Ltd. - Sapporo, JAPAN
+ *
+ * featuring support of:
+ *
+ * - Multi-SCC chip handling
+ * - Non-blocking I/O (O_NDELAY flag in libc)
+ * - Raw mode device (no CR/LF detection)
+ * - RTS/CTS flow control
+ *
+ * COPYRIGHT (c) 1989-1997.
+ * On-Line Applications Research Corporation (OAR).
+ * Copyright assigned to U.S. Government, 1994.
+ *
+ * The license and distribution terms for this file may in
+ * the file LICENSE in this distribution or at
+ * http://www.OARcorp.com/rtems/license.html.
+ *
+ */
+
+#ifndef _CONSOLEX_DRIVER_h
+#define _CONSOLEX_DRIVER_h
+
+#include <rtems.h>
+#include <termios.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define CONSOLEX_DRIVER_TABLE_ENTRY \
+ { consolex_initialize, consolex_open, consolex_close, \
+ consolex_read, consolex_write, consolex_control }
+
+rtems_device_driver consolex_initialize(
+ rtems_device_major_number,
+ rtems_device_minor_number,
+ void *
+);
+
+rtems_device_driver consolex_open(
+ rtems_device_major_number,
+ rtems_device_minor_number,
+ void *
+);
+
+rtems_device_driver consolex_close(
+ rtems_device_major_number,
+ rtems_device_minor_number,
+ void *
+);
+
+rtems_device_driver consolex_read(
+ rtems_device_major_number,
+ rtems_device_minor_number,
+ void *
+);
+
+rtems_device_driver consolex_write(
+ rtems_device_major_number,
+ rtems_device_minor_number,
+ void *
+);
+
+rtems_device_driver consolex_control(
+ rtems_device_major_number,
+ rtems_device_minor_number,
+ void *
+);
+
+/* Low level IO functions */
+void SCCInitialize();
+rtems_boolean SCCGetOne(int port, char *ch);
+char SCCGetOneBlocked(int port);
+rtems_boolean SCCSendOne(int port, char ch);
+void SCCSendOneBlocked(int port, char ch);
+unsigned32 SCCSetAttributes(int port, struct termios *t);
+unsigned32 SCCGetAttributes(int port, struct termios *t);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+/* end of include file */