source: rtems/c/src/tests/support/stubdr/init.c @ 5c491aef

4.104.114.84.95
Last change on this file since 5c491aef was b06e68ef, checked in by Joel Sherrill <joel.sherrill@…>, on 08/17/95 at 19:51:51

Numerous miscellaneous features incorporated from Tony Bennett
(tbennett@…) including the following major additions:

+ variable length messages
+ named devices
+ debug monitor
+ association tables/variables

  • Property mode set to 100644
File size: 919 bytes
Line 
1/*  Stub_initialize
2 *
3 *  This routine is the terminal driver init routine.
4 *
5 *  Input parameters:
6 *    major - device major number
7 *    minor - device minor number
8 *    pargp - pointer to parameter block
9 *
10 *  Output parameters:
11 *    rval       - STUB_SUCCESSFUL
12 *
13 *  COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994.
14 *  On-Line Applications Research Corporation (OAR).
15 *  All rights assigned to U.S. Government, 1994.
16 *
17 *  This material may be reproduced by or for the U.S. Government pursuant
18 *  to the copyright license under the clause at DFARS 252.227-7013.  This
19 *  notice must appear in all copies of this file and its derivatives.
20 *
21 *  $Id$
22 */
23
24#include <rtems.h>
25#include "stubdrv.h"
26
27rtems_unsigned32 STUB_major;
28
29rtems_device_driver Stub_initialize(
30  rtems_device_major_number major,
31  rtems_device_minor_number minor,
32  void *pargp
33)
34{
35  STUB_major = major;
36  return STUB_SUCCESSFUL;
37}
Note: See TracBrowser for help on using the repository browser.