summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/mbx8xx/console/console.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2000-10-18 15:47:26 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2000-10-18 15:47:26 +0000
commit1fc2292d3590e154edb86ac9e0361a6156f8df72 (patch)
tree7d501e5bdf06d8fa7bf63152aced6f5e926bf723 /c/src/lib/libbsp/powerpc/mbx8xx/console/console.c
parent8c4970175dc855549ddd43d410c0adb1a8efc00f (diff)
downloadrtems-1fc2292d3590e154edb86ac9e0361a6156f8df72.tar.bz2
2000-10-18 Joel Sherrill <joel@OARcorp.com>
* console/console.c: Added BSP dependent routine mbx8xx_console_use_maximum_buffer_size() required by mbx8xx console-generic code. This avoids libcpu use of bsp.h.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/mbx8xx/console/console.c')
-rw-r--r--c/src/lib/libbsp/powerpc/mbx8xx/console/console.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/powerpc/mbx8xx/console/console.c b/c/src/lib/libbsp/powerpc/mbx8xx/console/console.c
index e5bf1a0816..011dae7227 100644
--- a/c/src/lib/libbsp/powerpc/mbx8xx/console/console.c
+++ b/c/src/lib/libbsp/powerpc/mbx8xx/console/console.c
@@ -881,3 +881,24 @@ rtems_device_driver console_control(
#endif
}
+/*
+ * Support routine for console-generic
+ */
+
+int mbx8xx_console_use_maximum_buffer_size(void)
+{
+#if NVRAM_CONFIGURE == 1
+ if ( (nvram->console_mode & 0x06) == 0x02 )
+ return 1;
+ else
+ return 0;
+#else
+#if UARTS_IO_MODE == 1
+ return 1;
+#else
+ return 0;
+#endif
+#endif
+
+}
+