source: rtems/c/src/lib/libcpu/sh/sh7032/null/init.c @ 21bfd93

4.104.114.84.95
Last change on this file since 21bfd93 was f8b27df9, checked in by Joel Sherrill <joel.sherrill@…>, on 03/20/98 at 17:20:45

New port from Ralf Corsepius <corsepiu@…>.

  • Property mode set to 100644
File size: 1.1 KB
Line 
1/*  null_initialize
2 *
3 *  This routine is the null device driver init routine.
4 *
5 *  Derived from rtems' stub driver.
6 *
7 *  Author: Ralf Corsepius (corsepiu@faw.uni-ulm.de)
8 *
9 *  Input parameters:
10 *    major - device major number
11 *    minor - device minor number
12 *    pargp - pointer to parameter block
13 *
14 *  Output parameters:
15 *    rval       - NULL_SUCCESSFUL
16 *
17 *  COPYRIGHT (c) 1989-1998.
18 *  On-Line Applications Research Corporation (OAR).
19 *  Copyright assigned to U.S. Government, 1994.
20 *
21 *  The license and distribution terms for this file may be
22 *  found in the file LICENSE in this distribution or at
23 *  http://www.OARcorp.com/rtems/license.html.
24 *
25 *  $Id$
26 */
27
28#include <rtems.h>
29#include <sh/null.h>
30
31rtems_unsigned32 NULL_major;
32
33rtems_device_driver null_initialize(
34  rtems_device_major_number major,
35  rtems_device_minor_number minor,
36  void *pargp
37)
38{
39  rtems_device_driver status ;
40 
41  status = rtems_io_register_name(
42    "/dev/null",
43    major,
44    (rtems_device_minor_number) 0
45    );
46
47  if (status != RTEMS_SUCCESSFUL)
48    rtems_fatal_error_occurred(status);
49     
50  NULL_major = major;
51 
52  return RTEMS_SUCCESSFUL;
53}
Note: See TracBrowser for help on using the repository browser.