diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-10-20 13:31:31 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-10-20 13:31:31 +0000 |
commit | 6a04140780d878b7dcc92807d3be508f8c0cfcb5 (patch) | |
tree | 736a85718c1ada6897cdacba08d2977b642de795 /c/src/lib/libbsp/powerpc/mbx8xx/console/console.c | |
parent | 2000-10-20 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-6a04140780d878b7dcc92807d3be508f8c0cfcb5.tar.bz2 |
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.
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libbsp/powerpc/mbx8xx/console/console.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/c/src/lib/libbsp/powerpc/mbx8xx/console/console.c b/c/src/lib/libbsp/powerpc/mbx8xx/console/console.c index 011dae7227..a601572703 100644 --- a/c/src/lib/libbsp/powerpc/mbx8xx/console/console.c +++ b/c/src/lib/libbsp/powerpc/mbx8xx/console/console.c @@ -885,16 +885,13 @@ rtems_device_driver console_control( * Support routine for console-generic */ -int mbx8xx_console_use_maximum_buffer_size(void) +int mbx8xx_console_get_configuration(void) { #if NVRAM_CONFIGURE == 1 - if ( (nvram->console_mode & 0x06) == 0x02 ) - return 1; - else - return 0; + return nvram->console_mode; #else #if UARTS_IO_MODE == 1 - return 1; + return 0x02; #else return 0; #endif |