diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-08-07 00:24:48 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-08-07 00:24:48 +0000 |
commit | 58c5a9b59ee083506b3030e823539636a932a3b8 (patch) | |
tree | 3f7b7f4cade4837673c1aea681bb71eec81c1895 /testsuites/libtests/deviceio01/test_driver.h | |
parent | 2010-08-06 Bharath Suri <bharath.s.jois@gmail.com> (diff) | |
download | rtems-58c5a9b59ee083506b3030e823539636a932a3b8.tar.bz2 |
2010-08-06 Bharath Suri <bharath.s.jois@gmail.com>
PR 1654/testing
* deviceio01/init.c, deviceio01/deviceio01.doc,
deviceio01/deviceio01.scn, deviceio01/test_driver.c,
deviceio01/test_driver.h, deviceio01/Makefile.am: New test added.
* Makefile.am, configure.ac: Changes to added above test.
* tar02/init.c, tar02/tar02.scn: New test case added: IMFS_dump().
Diffstat (limited to 'testsuites/libtests/deviceio01/test_driver.h')
-rw-r--r-- | testsuites/libtests/deviceio01/test_driver.h | 64 |
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 */ |