summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/i386/pc386/console/serial_mouse.h
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libbsp/i386/pc386/console/serial_mouse.h')
-rw-r--r--c/src/lib/libbsp/i386/pc386/console/serial_mouse.h86
1 files changed, 86 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/i386/pc386/console/serial_mouse.h b/c/src/lib/libbsp/i386/pc386/console/serial_mouse.h
new file mode 100644
index 0000000000..afbf16c9d9
--- /dev/null
+++ b/c/src/lib/libbsp/i386/pc386/console/serial_mouse.h
@@ -0,0 +1,86 @@
+#ifndef __serial_mouse_drv__
+#define __serial_mouse_drv__
+/***************************************************************************
+ *
+ * $Header$
+ *
+ * Copyright (c) 1999 ConnectTel, Inc. All Rights Reserved.
+ *
+ * MODULE DESCRIPTION: Prototype routines for the /dev/mouse driver.
+ *
+ * by: Rosimildo da Silva:
+ * rdasilva@connecttel.com
+ * http://www.connecttel.com
+ *
+ * MODIFICATION/HISTORY:
+ *
+ * $Log$
+ ****************************************************************************/
+
+/* functions */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+/* ttyS1 entry points */
+rtems_device_driver serial_mouse_initialize(
+ rtems_device_major_number,
+ rtems_device_minor_number,
+ void *
+);
+
+rtems_device_driver serial_mouse_open(
+ rtems_device_major_number,
+ rtems_device_minor_number,
+ void *
+);
+
+rtems_device_driver serial_mouse_control(
+ rtems_device_major_number,
+ rtems_device_minor_number,
+ void *
+);
+
+
+/* serial_mouse entry points */
+rtems_device_driver serial_mouse_close(
+ rtems_device_major_number,
+ rtems_device_minor_number,
+ void *
+);
+
+
+rtems_device_driver serial_mouse_read(
+ rtems_device_major_number,
+ rtems_device_minor_number,
+ void *
+);
+
+rtems_device_driver serial_mouse_write(
+ rtems_device_major_number,
+ rtems_device_minor_number,
+ void *
+);
+
+
+/* Select the mouse type: "ms","pc","ps2" */
+#define MOUSE_TYPE "ms"
+
+/* Select the serial port for the serial mouse driver */
+#define SERIAL_MOUSE_COM1 1
+/* #define SERIAL_MOUSE_COM2 1 */
+
+
+#define SERIAL_MOUSE_DRIVER_TABLE_ENTRY \
+ { serial_mouse_initialize, serial_mouse_open, serial_mouse_close, \
+ serial_mouse_read, serial_mouse_write, serial_mouse_control }
+
+#ifdef __cplusplus
+}
+#endif
+/* end of include file */
+
+#endif /* __tty_drv__ */
+
+