summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/sh/gensh2/include/bsp.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2001-08-16 21:07:41 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2001-08-16 21:07:41 +0000
commitede9699cf408b3bc394471e7ac1b580e2942ad3f (patch)
treede3082e12d7393e07fe6f6d618612ce76af9aaf0 /c/src/lib/libbsp/sh/gensh2/include/bsp.h
parent2001-08-16 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-ede9699cf408b3bc394471e7ac1b580e2942ad3f.tar.bz2
2001-08-01 Radzislaw Galler <rgaller@et.put.poznan.pl>
* include/bsp.h: Disabled redefinition of CONSOLE_DRIVER_TABLE_ENTRY. Some "FIXME:" comments added. * console/config.c: New file. Definitions of externs referenced from libbsp/shared/console.c. * console/Makefile.am: Changed VPATH to point to libbsp/shared. Added config.c to C_FILES and EXTRA_DIST.
Diffstat (limited to '')
-rw-r--r--c/src/lib/libbsp/sh/gensh2/include/bsp.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/sh/gensh2/include/bsp.h b/c/src/lib/libbsp/sh/gensh2/include/bsp.h
index 514c82cdfd..5bf802b51b 100644
--- a/c/src/lib/libbsp/sh/gensh2/include/bsp.h
+++ b/c/src/lib/libbsp/sh/gensh2/include/bsp.h
@@ -62,8 +62,14 @@ extern "C" {
#define BSP_CONSOLE_DRIVER_TABLE_ENTRY DEVNULL_DRIVER_TABLE_ENTRY
#else
#include <sh/sci.h>
+/* FIXME:
+ * These definitions will be no longer necessary if the old
+ * implementation of SCI driver will be droped
+ */
#define BSP_CONSOLE_DEVNAME "/dev/sci0"
+#define BSP_CONSOLE_MINOR_NUMBER ((rtems_device_minor_number) 0)
#define BSP_CONSOLE_DRIVER_TABLE_ENTRY DEVSCI_DRIVER_TABLE_ENTRY
+#define BSP_CONSOLE_DEVICE_TERMIOS_HANDLERS (sh_sci_get_termios_handlers(TRUE))
#endif
/*
@@ -131,13 +137,18 @@ extern void bsp_cleanup( void );
/*
* We redefine CONSOLE_DRIVER_TABLE_ENTRY to redirect /dev/console
+ *
+ * FIXME: Since console driver works properly this is not
+ * necessary. When enabled - causes error in console_initialize.
*/
+#if 0
#undef CONSOLE_DRIVER_TABLE_ENTRY
#define CONSOLE_DRIVER_TABLE_ENTRY \
BSP_CONSOLE_DRIVER_TABLE_ENTRY, \
{ console_initialize, console_open, console_close, \
console_read, console_write, console_control }
-
+#endif
+
/*
* NOTE: Use the standard Clock driver entry
*/