From 6a04140780d878b7dcc92807d3be508f8c0cfcb5 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 20 Oct 2000 13:31:31 +0000 Subject: 2000-10-20 Joel Sherrill * console/console.c: Add mbx8xx_console_get_configuration() which returns either nvram configuration or a static equivalent. --- c/src/lib/libbsp/powerpc/eth_comm/ChangeLog | 5 +++++ c/src/lib/libbsp/powerpc/eth_comm/console/console.c | 18 ++++++++++++++++++ 2 files changed, 23 insertions(+) (limited to 'c/src/lib/libbsp/powerpc/eth_comm') 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 + + * console/console.c: Add mbx8xx_console_get_configuration() which + returns either nvram configuration or a static equivalent. + 2000-09-29 Charles-Antoine Gauthier * 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 + +} + -- cgit v1.2.3