RTEMS 6.1-rc7
Loading...
Searching...
No Matches
console.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-2-Clause */
2
12/*
13 * COPYRIGHT (c) 1989-2011.
14 * On-Line Applications Research Corporation (OAR).
15 *
16 * Redistribution and use in source and binary forms, with or without
17 * modification, are permitted provided that the following conditions
18 * are met:
19 * 1. Redistributions of source code must retain the above copyright
20 * notice, this list of conditions and the following disclaimer.
21 * 2. Redistributions in binary form must reproduce the above copyright
22 * notice, this list of conditions and the following disclaimer in the
23 * documentation and/or other materials provided with the distribution.
24 *
25 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
29 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
35 * POSSIBILITY OF SUCH DAMAGE.
36 */
37
38#ifndef _RTEMS_CONSOLE_H
39#define _RTEMS_CONSOLE_H
40
41#include <rtems/io.h> /* rtems_device_driver */
42
43#ifdef __cplusplus
44extern "C" {
45#endif
46
51#define CONSOLE_DEVICE_NAME "/dev/console"
52
57#define CONSOLE_DRIVER_TABLE_ENTRY \
58 { console_initialize, console_open, console_close, \
59 console_read, console_write, console_control }
60
75 void *arg
76);
77
93 void *arg
94);
95
111 void *arg
112);
113
129 void *arg
130);
131
147 void *arg
148);
149
166 void *arg
167);
168
175void _Console_simple_Initialize( void );
176
184
185#ifdef __cplusplus
186}
187#endif
188
189#endif
190/* end of include file */
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_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_close(rtems_device_major_number major, rtems_device_minor_number minor, void *arg)
Console close entry point.
Definition: uart.c:143
void _Console_simple_task_Initialize(void)
Initializes a simple task console device.
Definition: consolesimpletask.c:217
rtems_device_driver console_initialize(rtems_device_major_number major, rtems_device_minor_number minor, void *arg)
Console initialization entry point.
Definition: console.c:154
void _Console_simple_Initialize(void)
Initializes a simple console device.
Definition: consolesimple.c:91
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
This header file defines the IO Manager API.
uint32_t rtems_device_major_number
This integer type represents the major number of devices.
Definition: io.h:103
uint32_t rtems_device_minor_number
This integer type represents the minor number of devices.
Definition: io.h:115
rtems_status_code
This enumeration provides status codes for directives of the Classic API.
Definition: status.h:85