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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [lib/] [libbsp/] [unix/] [posix/] [console/] [console.c] - Blame information for rev 173

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*
2
 *  Console IO Support Routines
3
 *
4
 *  These provide UNIX-like read and write calls for the C library.
5
 *
6
 *  NOTE:  For the most part, this is just a space holder.
7
 *
8
 *  COPYRIGHT (c) 1994 by Division Incorporated
9
 *
10
 *  The license and distribution terms for this file may be
11
 *  found in the file LICENSE in this distribution or at
12
 *  http://www.OARcorp.com/rtems/license.html.
13
 *
14
 *  $Id: console.c,v 1.2 2001-09-27 12:01:14 chris Exp $
15
 */
16
 
17
#include <bsp.h>
18
 
19
#include <unistd.h>
20
#include <errno.h>
21
 
22
rtems_device_driver
23
console_initialize(rtems_device_major_number major,
24
                   rtems_device_minor_number minor,
25
                   void                    * arg
26
)
27
{
28
  return 0;
29
}
30
 
31
 
32
/*
33
 *  Open entry point
34
 */
35
 
36
rtems_device_driver console_open(
37
  rtems_device_major_number major,
38
  rtems_device_minor_number minor,
39
  void                    * arg
40
)
41
{
42
  return RTEMS_SUCCESSFUL;
43
}
44
 
45
/*
46
 *  Close entry point
47
 */
48
 
49
rtems_device_driver console_close(
50
  rtems_device_major_number major,
51
  rtems_device_minor_number minor,
52
  void                    * arg
53
)
54
{
55
  return RTEMS_SUCCESSFUL;
56
}
57
 
58
/*
59
 * read bytes from the serial port. We only have stdin.
60
 */
61
 
62
rtems_device_driver console_read(
63
  rtems_device_major_number major,
64
  rtems_device_minor_number minor,
65
  void                    * arg
66
)
67
{
68
  return RTEMS_UNSATISFIED;
69
}
70
 
71
/*
72
 * write bytes to the serial port. Stdout and stderr are the same.
73
 */
74
 
75
rtems_device_driver console_write(
76
  rtems_device_major_number major,
77
  rtems_device_minor_number minor,
78
  void                    * arg
79
)
80
{
81
  return -1;
82
}
83
 
84
/*
85
 *  IO Control entry point
86
 */
87
 
88
rtems_device_driver console_control(
89
  rtems_device_major_number major,
90
  rtems_device_minor_number minor,
91
  void                    * arg
92
)
93
{
94
  return RTEMS_SUCCESSFUL;
95
}

powered by: WebSVN 2.1.0

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