Index: ChangeLog =================================================================== RCS file: /cvs/ecos/ecos/packages/io/serial/current/ChangeLog,v retrieving revision 1.70 diff -u -r1.70 ChangeLog --- ChangeLog 1 Sep 2006 11:15:01 -0000 1.70 +++ ChangeLog 3 Sep 2006 17:30:42 -0000 @@ -1,3 +1,12 @@ +2006-08-31 Ilija Koco + Andrew Lunn + + * cdl/termios.cdl: + src/common/termiostty.c: added Termios TTY channel #3 + * cdl/tty.cdl: + src/common/tty.c: added TTY mode channel #3 + + 2006-08-22 Peter Csordas * include/serialio.h (cyg_serial_baud_rate_t): Adding baud rate Index: cdl/termios.cdl =================================================================== RCS file: /cvs/ecos/ecos/packages/io/serial/current/cdl/termios.cdl,v retrieving revision 1.3 diff -u -r1.3 termios.cdl --- cdl/termios.cdl 23 May 2002 23:06:24 -0000 1.3 +++ cdl/termios.cdl 3 Sep 2006 17:30:42 -0000 @@ -116,6 +116,25 @@ } } +cdl_component CYGPKG_IO_SERIAL_TERMIOS_TERMIOS3 { + display "Termios TTY channel #3" + flavor bool + default_value 0 + implements CYGINT_IO_SERIAL_TERMIOS_TERMIOS_TTY + description " + This option causes '/dev/termios3' to be included in the standard + drivers." + + cdl_option CYGDAT_IO_SERIAL_TERMIOS_TERMIOS3_DEV { + display "Termios TTY channel #3 device" + flavor data + default_value {"\"/dev/ser3\""} + description " + This option selects the physical device to use for + '/dev/termios3'." + } +} + cdl_option CYGSEM_IO_SERIAL_TERMIOS_USE_SIGNALS { display "Support signals" flavor bool Index: cdl/tty.cdl =================================================================== RCS file: /cvs/ecos/ecos/packages/io/serial/current/cdl/tty.cdl,v retrieving revision 1.4 diff -u -r1.4 tty.cdl --- cdl/tty.cdl 23 May 2002 23:06:24 -0000 1.4 +++ cdl/tty.cdl 3 Sep 2006 17:30:42 -0000 @@ -128,3 +128,21 @@ '/dev/tty2'." } } + +cdl_component CYGPKG_IO_SERIAL_TTY_TTY3 { + display "TTY mode channel #3" + flavor bool + default_value 0 + description " + This option causes '/dev/tty3' to be included in the standard + drivers." + + cdl_option CYGDAT_IO_SERIAL_TTY_TTY3_DEV { + display "TTY mode channel #3 device" + flavor data + default_value {"\"/dev/ser3\""} + description " + This option selects the physical device to use for + '/dev/tty3'." + } +} Index: src/common/termiostty.c =================================================================== RCS file: /cvs/ecos/ecos/packages/io/serial/current/src/common/termiostty.c,v retrieving revision 1.8 diff -u -r1.8 termiostty.c --- src/common/termiostty.c 3 Sep 2005 13:01:43 -0000 1.8 +++ src/common/termiostty.c 3 Sep 2006 17:30:47 -0000 @@ -158,6 +158,17 @@ &termios_private_info2); #endif +#ifdef CYGPKG_IO_SERIAL_TERMIOS_TERMIOS3 +static struct termios_private_info termios_private_info3; +DEVTAB_ENTRY(termios_io3, + "/dev/termios3", + CYGDAT_IO_SERIAL_TERMIOS_TERMIOS3_DEV, + &termios_devio, + termios_init, + termios_lookup, + &termios_private_info3); +#endif + static const cc_t c_cc_init[ NCCS ] = { 0x04, /* EOF == ^D */ 0, /* EOL */ Index: src/common/tty.c =================================================================== RCS file: /cvs/ecos/ecos/packages/io/serial/current/src/common/tty.c,v retrieving revision 1.13 diff -u -r1.13 tty.c --- src/common/tty.c 9 May 2006 16:08:21 -0000 1.13 +++ src/common/tty.c 3 Sep 2006 17:30:47 -0000 @@ -127,6 +127,17 @@ &tty_private_info2); #endif +#ifdef CYGPKG_IO_SERIAL_TTY_TTY3 +static struct tty_private_info tty_private_info3; +DEVTAB_ENTRY(tty_io3, + "/dev/tty3", + CYGDAT_IO_SERIAL_TTY_TTY3_DEV, + &tty_devio, + tty_init, + tty_lookup, // Execute this when device is being looked up + &tty_private_info3); +#endif + static bool tty_init(struct cyg_devtab_entry *tab) {