source: rtems/c/src/lib/libcpu/sh/sh7032/null/write.c @ 08311cc3

4.104.114.84.95
Last change on this file since 08311cc3 was 08311cc3, checked in by Joel Sherrill <joel.sherrill@…>, on 11/17/99 at 17:51:34

Updated copyright notice.

  • Property mode set to 100644
File size: 974 bytes
Line 
1/*  null_write
2 *
3 *  This routine is the null device driver write 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 write parameter block
13 *
14 *  Output parameters:
15 *    rval       - NULL_SUCCESSFUL
16 *
17 *  COPYRIGHT (c) 1989-1999.
18 *  On-Line Applications Research Corporation (OAR).
19 *
20 *  The license and distribution terms for this file may be
21 *  found in the file LICENSE in this distribution or at
22 *  http://www.OARcorp.com/rtems/license.html.
23 *
24 *  $Id$
25 */
26
27#include <rtems.h>
28#include <rtems/libio.h>
29
30#include <sh/null.h>
31
32rtems_device_driver null_write(
33  rtems_device_major_number major,
34  rtems_device_minor_number minor,
35  void *pargp
36)
37{
38  rtems_libio_rw_args_t *rw_args = (rtems_libio_rw_args_t *) pargp ;
39 
40  rw_args->bytes_moved = rw_args->count ;
41 
42  return NULL_SUCCESSFUL;
43}
Note: See TracBrowser for help on using the repository browser.