source: rtems/cpukit/libcsupport/include/rtems/deviceio.h @ c8a86d4d

4.115
Last change on this file since c8a86d4d was c8a86d4d, checked in by Sebastian Huber <sebastian.huber@…>, on Jul 2, 2012 at 2:20:39 PM

libcsupport: C++ compatibility

  • Property mode set to 100644
File size: 1.3 KB
Line 
1/*
2 *  COPYRIGHT (c) 1989-2012.
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
10#ifndef _RTEMS_DEVICEIO_H
11#define _RTEMS_DEVICEIO_H
12
13#include <rtems/libio.h>
14
15#ifdef __cplusplus
16extern "C" {
17#endif /* __cplusplus */
18
19int rtems_deviceio_errno( rtems_status_code status );
20
21int rtems_deviceio_open(
22  rtems_libio_t *iop,
23  const char *path,
24  int oflag,
25  mode_t mode,
26  rtems_device_major_number major,
27  rtems_device_minor_number minor
28);
29
30int rtems_deviceio_close(
31  rtems_libio_t *iop,
32  rtems_device_major_number major,
33  rtems_device_minor_number minor
34);
35
36ssize_t rtems_deviceio_read(
37  rtems_libio_t *iop,
38  void *buf,
39  size_t nbyte,
40  rtems_device_major_number major,
41  rtems_device_minor_number minor
42);
43
44ssize_t rtems_deviceio_write(
45  rtems_libio_t *iop,
46  const void *buf,
47  size_t nbyte,
48  rtems_device_major_number major,
49  rtems_device_minor_number minor
50);
51
52int rtems_deviceio_control(
53  rtems_libio_t *iop,
54  ioctl_command_t command,
55  void *buffer,
56  rtems_device_major_number major,
57  rtems_device_minor_number minor
58);
59
60#ifdef __cplusplus
61}
62#endif /* __cplusplus */
63
64#endif /* _RTEMS_DEVICEIO_H */
Note: See TracBrowser for help on using the repository browser.