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

5
Last change on this file since 599d71f was c499856, checked in by Chris Johns <chrisj@…>, on 03/20/14 at 21:10:47

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

  • Property mode set to 100644
File size: 832 bytes
Line 
1/**
2 * @file
3 *
4 * @brief IO Driver Initialization
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#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_initialize(
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].initialization_entry;
37  return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
38}
Note: See TracBrowser for help on using the repository browser.