OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [lib/] [libcpu/] [sh/] [sh7045/] [null/] [write.c] - Blame information for rev 173

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*  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-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: write.c,v 1.2 2001-09-27 12:01:39 chris Exp $
26
 */
27
 
28
#include <rtems.h>
29
#include <rtems/libio.h>
30
 
31
#include <sh/null.h>
32
 
33
rtems_device_driver null_write(
34
  rtems_device_major_number major,
35
  rtems_device_minor_number minor,
36
  void *pargp
37
)
38
{
39
  rtems_libio_rw_args_t *rw_args = (rtems_libio_rw_args_t *) pargp ;
40
 
41
  rw_args->bytes_moved = rw_args->count ;
42
 
43
  return NULL_SUCCESSFUL;
44
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.