source: rtems/cpukit/sapi/src/iocontrol.c @ 599d71f

Last change on this file since 599d71f was c499856, checked in by Chris Johns <chrisj@…>, on Mar 20, 2014 at 9:10:47 PM

Change all references of rtems.com to rtems.org.

  • Property mode set to 100644
File size: 824 bytes
RevLine 
[4c98a3e]1/**
2 * @file
3 *
4 * @brief Control for The IO Manager
[9c556023]5 *
[4c98a3e]6 * @ingroup ClassicIO
7 */
8
9/*
[9c556023]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
[c499856]15 *  http://www.rtems.org/license/LICENSE.
[9c556023]16 */
17
18#if HAVE_CONFIG_H
19#include "config.h"
20#endif
21
22#include <rtems/system.h>
23#include <rtems/io.h>
24
25rtems_status_code rtems_io_control(
26  rtems_device_major_number  major,
27  rtems_device_minor_number  minor,
28  void                      *argument
29)
30{
31  rtems_device_driver_entry callout;
32
33  if ( major >= _IO_Number_of_drivers )
34    return RTEMS_INVALID_NUMBER;
35
36  callout = _IO_Driver_address_table[major].control_entry;
37  return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
38}
Note: See TracBrowser for help on using the repository browser.