# HG changeset patch # User asl # Date 1157304751 0 # Node ID e869b71cc3ed924939f110100e855a55dc995ddd # Parent 61a94be4cc1bf77249461c32e58d0a6f8b857769 * cdl/termios.cdl: src/common/termiostty.c: added Termios TTY channel #3 * cdl/tty.cdl: src/common/tty.c: added TTY mode channel #3 diff --git a/packages/io/serial/current/ChangeLog b/packages/io/serial/current/ChangeLog --- a/packages/io/serial/current/ChangeLog +++ b/packages/io/serial/current/ChangeLog @@ -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 diff --git a/packages/io/serial/current/cdl/termios.cdl b/packages/io/serial/current/cdl/termios.cdl --- a/packages/io/serial/current/cdl/termios.cdl +++ b/packages/io/serial/current/cdl/termios.cdl @@ -116,6 +116,25 @@ cdl_component CYGPKG_IO_SERIAL_TERMIOS_T } } +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 diff --git a/packages/io/serial/current/cdl/tty.cdl b/packages/io/serial/current/cdl/tty.cdl --- a/packages/io/serial/current/cdl/tty.cdl +++ b/packages/io/serial/current/cdl/tty.cdl @@ -128,3 +128,21 @@ cdl_component CYGPKG_IO_SERIAL_TTY_TTY2 '/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'." + } +} diff --git a/packages/io/serial/current/src/common/termiostty.c b/packages/io/serial/current/src/common/termiostty.c --- a/packages/io/serial/current/src/common/termiostty.c +++ b/packages/io/serial/current/src/common/termiostty.c @@ -158,6 +158,17 @@ DEVTAB_ENTRY(termios_io2, &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 */ diff --git a/packages/io/serial/current/src/common/tty.c b/packages/io/serial/current/src/common/tty.c --- a/packages/io/serial/current/src/common/tty.c +++ b/packages/io/serial/current/src/common/tty.c @@ -127,6 +127,17 @@ DEVTAB_ENTRY(tty_io2, &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) {