RTEMS: bsps/include/bsp/console-termios.h Source File

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
console-termios.h
1/*
2 * Copyright (c) 2014 embedded brains GmbH. All rights reserved.
3 *
4 * embedded brains GmbH
5 * Dornierstr. 4
6 * 82178 Puchheim
7 * Germany
8 * <rtems@embedded-brains.de>
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.rtems.org/license/LICENSE.
13 */
14
15#ifndef BSP_CONSOLE_TERMIOS_H
16#define BSP_CONSOLE_TERMIOS_H
17
18#include <rtems/termiostypes.h>
19
20#ifdef __cplusplus
21extern "C" {
22#endif /* __cplusplus */
23
54 typedef bool (*console_device_probe)(rtems_termios_device_context *context);
55
59 typedef struct {
66 const char *device_file;
67
71 console_device_probe probe;
72
76 const rtems_termios_device_handler *handler;
77
81 const rtems_termios_device_flow *flow;
82
86 rtems_termios_device_context *context;
87} console_device;
88
92bool console_device_probe_default(rtems_termios_device_context *context);
93
102extern const console_device console_device_table[];
103
109extern const size_t console_device_count;
110
113#ifdef __cplusplus
114}
115#endif /* __cplusplus */
116
117#endif /* BSP_CONSOLE_TERMIOS_H */
console_device::device_file
const char * device_file
The device file path.
Definition: console-termios.h:66
console_device_probe
bool(* console_device_probe)(rtems_termios_device_context *context)
Console device probe function type.
Definition: console-termios.h:54
console_device_probe_default
bool console_device_probe_default(rtems_termios_device_context *context)
Returns true and does nothing else.
Definition: console-termios-init.c:22
console_device::handler
const rtems_termios_device_handler * handler
The Termios device handler.
Definition: console-termios.h:76
console_device::context
rtems_termios_device_context * context
The Termios device context.
Definition: console-termios.h:86
console_device_table
const console_device console_device_table[]
Table for console devices installed via console_initialize() during system initialization.
Definition: console-config.c:134
console_device::probe
console_device_probe probe
The device probe function.
Definition: console-termios.h:71
console_device::flow
const rtems_termios_device_flow * flow
The Termios device flow control handler.
Definition: console-termios.h:81
console_device_count
const size_t console_device_count
Count of entries in the console_device_table.
Definition: console-config.c:153
console_device
Console device information.
Definition: console-termios.h:59
rtems_termios_device_context
Termios device context.
Definition: termiostypes.h:75
rtems_termios_device_flow
Termios device flow control handler.
Definition: termiostypes.h:248
rtems_termios_device_handler
Termios device handler.
Definition: termiostypes.h:141
termiostypes.h