RTEMS: cpukit/include/rtems/console.h Source File

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
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
25extern "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
53 rtems_device_driver console_initialize(
54 rtems_device_major_number major,
55 rtems_device_minor_number minor,
56 void *arg
57);
58
71 rtems_device_driver console_open(
72 rtems_device_major_number major,
73 rtems_device_minor_number minor,
74 void *arg
75);
76
89 rtems_device_driver console_close(
90 rtems_device_major_number major,
91 rtems_device_minor_number minor,
92 void *arg
93);
94
107 rtems_device_driver console_read(
108 rtems_device_major_number major,
109 rtems_device_minor_number minor,
110 void *arg
111);
112
125 rtems_device_driver console_write(
126 rtems_device_major_number major,
127 rtems_device_minor_number minor,
128 void *arg
129);
130
144 rtems_device_driver console_control(
145 rtems_device_major_number major,
146 rtems_device_minor_number minor,
147 void *arg
148);
149
156void _Console_simple_Initialize( void );
157
164void _Console_simple_task_Initialize( void );
165
166#ifdef __cplusplus
167}
168#endif
169
170#endif
171/* end of include file */
console_write
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
console_control
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
console_open
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
console_close
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
_Console_simple_task_Initialize
void _Console_simple_task_Initialize(void)
Initializes a simple task console device.
Definition: consolesimpletask.c:217
console_initialize
rtems_device_driver console_initialize(rtems_device_major_number major, rtems_device_minor_number minor, void *arg)
Console initialization entry point.
Definition: console.c:485
_Console_simple_Initialize
void _Console_simple_Initialize(void)
Initializes a simple console device.
Definition: consolesimple.c:91
console_read
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
io.h
Classic Input/Output Manager API.
rtems_status_code
rtems_status_code
Classic API Status.
Definition: status.h:43