RTEMS
5.1
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