From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17652 invoked by alias); 27 Mar 2011 21:11:12 -0000 Received: (qmail 17644 invoked by uid 22791); 27 Mar 2011 21:11:12 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-fx0-f49.google.com (HELO mail-fx0-f49.google.com) (209.85.161.49) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 27 Mar 2011 21:11:07 +0000 Received: by fxm14 with SMTP id 14so1938611fxm.36 for ; Sun, 27 Mar 2011 14:11:06 -0700 (PDT) Received: by 10.223.36.1 with SMTP id r1mr3732328fad.19.1301260266262; Sun, 27 Mar 2011 14:11:06 -0700 (PDT) Received: from sg-laptop ([178.123.254.54]) by mx.google.com with ESMTPS id k5sm1210745faa.39.2011.03.27.14.11.04 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 27 Mar 2011 14:11:05 -0700 (PDT) Date: Sun, 27 Mar 2011 21:11:00 -0000 From: Sergei Gavrikov To: Ilija Kocho cc: ecos-devel@ecos.sourceware.org Subject: Re: tty.cdl In-Reply-To: <4D8F963A.6050501@siva.com.mk> Message-ID: References: <4D8DBE3F.2000708@siva.com.mk> <4D8F2207.7070701@siva.com.mk> <4D8F5BAD.6020708@siva.com.mk> <4D8F9147.10204@siva.com.mk> <4D8F963A.6050501@siva.com.mk> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-IsSubscribed: yes Mailing-List: contact ecos-devel-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-devel-owner@ecos.sourceware.org X-SW-Source: 2011-03/txt/msg00033.txt.bz2 On Sun, 27 Mar 2011, Ilija Kocho wrote: > Sergei, I started this discussion in order to discuss this issue before > I drop any code. Your proposal sounds rational. I shall open a Bug and > reference this discussion. Ilija and may be not :-) I've seen that io_serial.h has #ifdef CYGDAT_IO_SERIAL_DEVICE_HEADER # include CYGDAT_IO_SERIAL_DEVICE_HEADER #endif So, your issue can be managed on the target's side, as both and tty.c and termios.c include this header. You can add CDL component in your HAL config file which parent should be CYGPKG_IO_SERIAL_TTY and define extra devices (TTY4, TTY5, ...) there. Also define/set your own value for the CYGDAT_IO_SERIAL_DEVICE_HEADER in the HAL's config file. Sergei