summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/eth_comm
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libbsp/powerpc/eth_comm')
-rw-r--r--c/src/lib/libbsp/powerpc/eth_comm/ChangeLog5
-rw-r--r--c/src/lib/libbsp/powerpc/eth_comm/console/console.c18
2 files changed, 23 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/powerpc/eth_comm/ChangeLog b/c/src/lib/libbsp/powerpc/eth_comm/ChangeLog
index 9d74127f55..fcd7af8daa 100644
--- a/c/src/lib/libbsp/powerpc/eth_comm/ChangeLog
+++ b/c/src/lib/libbsp/powerpc/eth_comm/ChangeLog
@@ -1,3 +1,8 @@
+2000-10-20 Joel Sherrill <joel@OARcorp.com>
+
+ * console/console.c: Add mbx8xx_console_get_configuration() which
+ returns either nvram configuration or a static equivalent.
+
2000-09-29 Charles-Antoine Gauthier <charles.gauthier@nrc.ca>
* startup/linkcmds: Added lines so DWARF debug information
diff --git a/c/src/lib/libbsp/powerpc/eth_comm/console/console.c b/c/src/lib/libbsp/powerpc/eth_comm/console/console.c
index 972803658b..7118cbcd3e 100644
--- a/c/src/lib/libbsp/powerpc/eth_comm/console/console.c
+++ b/c/src/lib/libbsp/powerpc/eth_comm/console/console.c
@@ -227,3 +227,21 @@ rtems_device_driver console_control(rtems_device_major_number major,
#endif
}
+/*
+ * Support routine for console-generic
+ */
+
+int mbx8xx_console_get_configuration(void)
+{
+#if NVRAM_CONFIGURE == 1
+ return nvram->console_mode;
+#else
+#if UARTS_IO_MODE == 1
+ return 0x02;
+#else
+ return 0;
+#endif
+#endif
+
+}
+