summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests/deviceio01/test_driver.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--testsuites/libtests/deviceio01/test_driver.h64
1 files changed, 64 insertions, 0 deletions
diff --git a/testsuites/libtests/deviceio01/test_driver.h b/testsuites/libtests/deviceio01/test_driver.h
new file mode 100644
index 0000000000..999e60c3cc
--- /dev/null
+++ b/testsuites/libtests/deviceio01/test_driver.h
@@ -0,0 +1,64 @@
+/*
+ * COPYRIGHT (c) 1989-2010.
+ * 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.com/license/LICENSE.
+ *
+ * $Id$
+ */
+
+#ifndef __TEST_DRIVER_h
+#define __TEST_DRIVER_h
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define TEST_DRIVER_TABLE_ENTRY \
+ { testDriver_initialize, testDriver_open, testDriver_close, testDriver_read, \
+ testDriver_write, testDriver_control }
+
+rtems_device_driver testDriver_initialize(
+ rtems_device_major_number,
+ rtems_device_minor_number,
+ void *
+);
+
+rtems_device_driver testDriver_open(
+ rtems_device_major_number,
+ rtems_device_minor_number,
+ void *
+);
+
+rtems_device_driver testDriver_close(
+ rtems_device_major_number,
+ rtems_device_minor_number,
+ void *
+);
+
+rtems_device_driver testDriver_read(
+ rtems_device_major_number,
+ rtems_device_minor_number,
+ void *
+);
+
+rtems_device_driver testDriver_write(
+ rtems_device_major_number,
+ rtems_device_minor_number,
+ void *
+);
+
+rtems_device_driver testDriver_control(
+ rtems_device_major_number,
+ rtems_device_minor_number,
+ void *
+);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+/* end of include file */