diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2001-08-16 21:07:41 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2001-08-16 21:07:41 +0000 |
commit | ede9699cf408b3bc394471e7ac1b580e2942ad3f (patch) | |
tree | de3082e12d7393e07fe6f6d618612ce76af9aaf0 /c/src/lib/libbsp/sh/gensh2/include/bsp.h | |
parent | 2001-08-16 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-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 'c/src/lib/libbsp/sh/gensh2/include/bsp.h')
-rw-r--r-- | c/src/lib/libbsp/sh/gensh2/include/bsp.h | 13 |
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 */ |