source: rtems/testsuites/libtests/deviceio01/test_driver.h @ 58c5a9b

4.115
Last change on this file since 58c5a9b was 58c5a9b, checked in by Joel Sherrill <joel.sherrill@…>, on 08/07/10 at 00:24:48

2010-08-06 Bharath Suri <bharath.s.jois@…>

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().
  • Property mode set to 100644
File size: 1.2 KB
Line 
1/*
2 *  COPYRIGHT (c) 1989-2010.
3 *  On-Line Applications Research Corporation (OAR).
4 *
5 *  The license and distribution terms for this file may be
6 *  found in the file LICENSE in this distribution or at
7 *  http://www.rtems.com/license/LICENSE.
8 *
9 *  $Id$
10 */
11
12#ifndef __TEST_DRIVER_h
13#define __TEST_DRIVER_h
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
19#define TEST_DRIVER_TABLE_ENTRY \
20  { testDriver_initialize, testDriver_open, testDriver_close, testDriver_read, \
21    testDriver_write, testDriver_control }
22
23rtems_device_driver testDriver_initialize(
24  rtems_device_major_number,
25  rtems_device_minor_number,
26  void *
27);
28
29rtems_device_driver testDriver_open(
30  rtems_device_major_number,
31  rtems_device_minor_number,
32  void *
33);
34
35rtems_device_driver testDriver_close(
36  rtems_device_major_number,
37  rtems_device_minor_number,
38  void *
39);
40
41rtems_device_driver testDriver_read(
42  rtems_device_major_number,
43  rtems_device_minor_number,
44  void *
45);
46
47rtems_device_driver testDriver_write(
48  rtems_device_major_number,
49  rtems_device_minor_number,
50  void *
51);
52
53rtems_device_driver testDriver_control(
54  rtems_device_major_number,
55  rtems_device_minor_number,
56  void *
57);
58
59#ifdef __cplusplus
60}
61#endif
62
63#endif
64/* end of include file */
Note: See TracBrowser for help on using the repository browser.