source: rtems/cpukit/sapi/src/ioinitialize.c @ b7185613

4.115
Last change on this file since b7185613 was 4c98a3e, checked in by Christopher Kerl <zargyyoyo@…>, on 12/07/12 at 14:49:54

sapi misc: Clean up Doxygen GCI task #1

http://www.google-melange.com/gci/task/view/google/gci2012/8011204

  • 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.com/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.