4.115
Rev | Line | |
---|
[c1764100] | 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 |
---|
[4a7d1026] | 13 | * http://www.rtems.org/license/LICENSE. |
---|
[c1764100] | 14 | */ |
---|
| 15 | |
---|
| 16 | #ifndef __CONS_H__ |
---|
| 17 | #define __CONS_H__ |
---|
| 18 | |
---|
| 19 | struct console_dev; |
---|
| 20 | |
---|
| 21 | #define CONSOLE_FLAG_SYSCON 0x01 |
---|
| 22 | |
---|
| 23 | struct console_cons_ops { |
---|
| 24 | void (*get_uart_attrs)(struct console_dev *, struct termios *t); |
---|
| 25 | }; |
---|
| 26 | |
---|
| 27 | struct console_dev { |
---|
| 28 | /* Set to non-zero if this UART should be system console and/or |
---|
| 29 | * debug console. |
---|
| 30 | */ |
---|
| 31 | int flags; |
---|
| 32 | char *fsname; /* File system prefix */ |
---|
| 33 | const struct rtems_termios_callbacks *callbacks; /* TERMIOS Callbacks */ |
---|
| 34 | struct console_cons_ops ops; |
---|
| 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 |
---|
Note: See
TracBrowser
for help on using the repository browser.