]> git.kernelconcepts.de Git - karo-tx-redboot.git/blobdiff - packages/io/serial/v2_0/src/common/tty.c
unified MX27, MX25, MX37 trees
[karo-tx-redboot.git] / packages / io / serial / v2_0 / src / common / tty.c
index dca69e93ef4d065f0cd539a981e72ac9601fc822..4ec06f9d63c038eb03b3686af2fa9f4420c088c0 100644 (file)
@@ -127,12 +127,23 @@ 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)
 {
     struct tty_private_info *priv = (struct tty_private_info *)tab->priv;
 #ifdef CYGDBG_IO_INIT
-    diag_printf("Init tty channel: %x\n", tab);
+    diag_printf("Init tty channel: %p\n", tab);
 #endif
     priv->dev_info.tty_out_flags = CYG_TTY_OUT_FLAGS_DEFAULT;
     priv->dev_info.tty_in_flags = CYG_TTY_IN_FLAGS_DEFAULT;