RTEMS  5.0.0
console.h
Go to the documentation of this file.
1 
10 /*
11  * COPYRIGHT (c) 1989-2011.
12  * On-Line Applications Research Corporation (OAR).
13  *
14  * The license and distribution terms for this file may be
15  * found in the file LICENSE in this distribution or at
16  * http://www.rtems.org/license/LICENSE.
17  */
18 
19 #ifndef _RTEMS_CONSOLE_H
20 #define _RTEMS_CONSOLE_H
21 
22 #include <rtems/io.h> /* rtems_device_driver */
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
32 #define CONSOLE_DEVICE_NAME "/dev/console"
33 
38 #define CONSOLE_DRIVER_TABLE_ENTRY \
39  { console_initialize, console_open, console_close, \
40  console_read, console_write, console_control }
41 
54  rtems_device_major_number major,
55  rtems_device_minor_number minor,
56  void *arg
57 );
58 
72  rtems_device_major_number major,
73  rtems_device_minor_number minor,
74  void *arg
75 );
76 
90  rtems_device_major_number major,
91  rtems_device_minor_number minor,
92  void *arg
93 );
94 
108  rtems_device_major_number major,
109  rtems_device_minor_number minor,
110  void *arg
111 );
112 
126  rtems_device_major_number major,
127  rtems_device_minor_number minor,
128  void *arg
129 );
130 
145  rtems_device_major_number major,
146  rtems_device_minor_number minor,
147  void *arg
148 );
149 
156 void _Console_simple_Initialize( void );
157 
165 
166 #ifdef __cplusplus
167 }
168 #endif
169 
170 #endif
171 /* end of include file */
void _Console_simple_Initialize(void)
Initializes a simple console device.
Definition: consolesimple.c:65
void _Console_simple_task_Initialize(void)
Initializes a simple task console device.
Definition: consolesimpletask.c:190
rtems_device_driver console_close(rtems_device_major_number major, rtems_device_minor_number minor, void *arg)
Console close entry point.
Definition: uart.c:143
rtems_device_driver console_write(rtems_device_major_number major, rtems_device_minor_number minor, void *arg)
Console write entry point.
Definition: uart.c:161
rtems_device_driver console_read(rtems_device_major_number major, rtems_device_minor_number minor, void *arg)
Console read entry point.
Definition: uart.c:152
rtems_status_code
Classic API Status.
Definition: status.h:43
Classic Input/Output Manager API.
rtems_device_driver console_control(rtems_device_major_number major, rtems_device_minor_number minor, void *arg)
Console IO control entry point.
Definition: uart.c:170
rtems_device_driver console_open(rtems_device_major_number major, rtems_device_minor_number minor, void *arg)
Console open entry point.
Definition: uart.c:126
rtems_device_driver console_initialize(rtems_device_major_number major, rtems_device_minor_number minor, void *arg)
Console initialization entry point.
Definition: console.c:477