5
Last change
on this file since 80cf60e was
80cf60e,
checked in by Sebastian Huber <sebastian.huber@…>, on 04/15/20 at 07:48:32
|
Canonicalize config.h include
Use the following variant which was already used by most source files:
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
|
-
Property mode set to
100644
|
File size:
805 bytes
|
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @brief Control for The IO Manager |
---|
5 | * |
---|
6 | * @ingroup ClassicIO |
---|
7 | */ |
---|
8 | |
---|
9 | /* |
---|
10 | * COPYRIGHT (c) 1989-2007. |
---|
11 | * On-Line Applications Research Corporation (OAR). |
---|
12 | * |
---|
13 | * The license and distribution terms for this file may be |
---|
14 | * found in the file LICENSE in this distribution or at |
---|
15 | * http://www.rtems.org/license/LICENSE. |
---|
16 | */ |
---|
17 | |
---|
18 | #ifdef HAVE_CONFIG_H |
---|
19 | #include "config.h" |
---|
20 | #endif |
---|
21 | |
---|
22 | #include <rtems/ioimpl.h> |
---|
23 | |
---|
24 | rtems_status_code rtems_io_control( |
---|
25 | rtems_device_major_number major, |
---|
26 | rtems_device_minor_number minor, |
---|
27 | void *argument |
---|
28 | ) |
---|
29 | { |
---|
30 | rtems_device_driver_entry callout; |
---|
31 | |
---|
32 | if ( major >= _IO_Number_of_drivers ) |
---|
33 | return RTEMS_INVALID_NUMBER; |
---|
34 | |
---|
35 | callout = _IO_Driver_address_table[major].control_entry; |
---|
36 | return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; |
---|
37 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.