RTEMS
5.1
Main Page
Related Pages
Modules
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Variables
_
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
v
w
+
Typedefs
a
b
c
d
e
f
g
h
i
l
m
o
p
q
r
s
t
u
v
w
x
+
Enumerations
a
b
c
e
h
i
l
m
o
p
q
r
s
t
w
+
Enumerator
a
c
d
h
i
l
m
p
r
s
t
w
+
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
bsps
include
grlib
cons.h
1
/* Console driver interface to UART drivers
2
*
3
* - First console device that has System Console flag set will be
4
* system console.
5
* - If none of the registered console devices has system console set,
6
* the first is registered device is used, unless it has
7
*
8
* COPYRIGHT (c) 2010.
9
* Cobham Gaisler AB.
10
*
11
* The license and distribution terms for this file may be
12
* found in the file LICENSE in this distribution or at
13
* http://www.rtems.org/license/LICENSE.
14
*/
15
16
#ifndef __CONS_H__
17
#define __CONS_H__
18
19
#include <
rtems/termiostypes.h
>
20
21
struct
console_dev
;
22
23
#define CONSOLE_FLAG_SYSCON 0x01
24
#define CONSOLE_FLAG_SYSCON_GRANT 0x02
25
26
struct
console_dev
{
27
rtems_termios_device_context
base;
28
/* Set CONSOLE_FLAG_SYSCON to request this device to be system console
29
* and/or debug console. CONSOLE_FLAG_SYSCON_GRANT will be set on the
30
* device which was selected as system console.
31
*/
32
int
flags;
33
char
*fsname;
/* File system prefix */
34
const
rtems_termios_device_handler
*handler;
35
};
36
37
extern
void
console_dev_register(
struct
console_dev
*dev);
38
#if 0
39
extern
void
console_dev_unregister(
struct
console_dev
*dev);
40
#endif
41
42
#endif
rtems_termios_device_context
Termios device context.
Definition:
termiostypes.h:75
termiostypes.h
console_dev
Definition:
cons.h:26
rtems_termios_device_handler
Termios device handler.
Definition:
termiostypes.h:141
Generated by
1.8.15