summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/sparc/shared/include
diff options
context:
space:
mode:
authorMartin Aberg <maberg@gaisler.com>2017-03-10 15:32:38 +0100
committerDaniel Hellstrom <daniel@gaisler.com>2017-05-02 12:34:46 +0200
commitf164a294706afeea3507559ef4cb4b273ef4a96b (patch)
tree3e90fed176c676cfd13b40c69c0a720f77b4e4a6 /c/src/lib/libbsp/sparc/shared/include
parentleon, apbuart: Assign proper device name (diff)
downloadrtems-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.h8
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 */