diff options
author | Martin Aberg <maberg@gaisler.com> | 2017-03-10 15:32:38 +0100 |
---|---|---|
committer | Daniel Hellstrom <daniel@gaisler.com> | 2017-05-02 12:34:46 +0200 |
commit | f164a294706afeea3507559ef4cb4b273ef4a96b (patch) | |
tree | 3e90fed176c676cfd13b40c69c0a720f77b4e4a6 /c/src/lib/libbsp/sparc/shared/include | |
parent | leon, apbuart: Assign proper device name (diff) | |
download | rtems-f164a294706afeea3507559ef4cb4b273ef4a96b.tar.bz2 |
leon, apbuart: Inherit HW parameters on sysconsole
The cons layer decides which of the registered console device is granted as
system console. When a device specific console driver performs its first_open,
it inherits UART parameters from boot loader only if it is the system console.
Diffstat (limited to 'c/src/lib/libbsp/sparc/shared/include')
-rw-r--r-- | c/src/lib/libbsp/sparc/shared/include/cons.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/c/src/lib/libbsp/sparc/shared/include/cons.h b/c/src/lib/libbsp/sparc/shared/include/cons.h index 9a26a26769..c30e41cf14 100644 --- a/c/src/lib/libbsp/sparc/shared/include/cons.h +++ b/c/src/lib/libbsp/sparc/shared/include/cons.h @@ -20,12 +20,14 @@ struct console_dev; -#define CONSOLE_FLAG_SYSCON 0x01 +#define CONSOLE_FLAG_SYSCON 0x01 +#define CONSOLE_FLAG_SYSCON_GRANT 0x02 struct console_dev { rtems_termios_device_context base; - /* Set to CONSOLE_FLAG_SYSCON if this UART should be system console and/or - * debug console. + /* Set CONSOLE_FLAG_SYSCON to request this device to be system console + * and/or debug console. CONSOLE_FLAG_SYSCON_GRANT will be set on the + * device which was selected as system console. */ int flags; char *fsname; /* File system prefix */ |