From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10866 invoked by alias); 14 Jun 2012 15:33:53 -0000 Received: (qmail 10825 invoked by uid 22791); 14 Jun 2012 15:33:52 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,MAY_BE_FORGED,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from gw.kuantic.com (HELO gw.kuantic.com) (213.244.28.44) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 14 Jun 2012 15:33:38 +0000 Received: from [10.0.0.43] (E1.s02.p2.bcn1.Coplan.nic.completel.fr [213.244.28.45] (may be forged)) (authenticated bits=0) by gw.kuantic.com (8.14.5/8.14.4) with ESMTP id q5EFXZPn006601 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Thu, 14 Jun 2012 17:33:36 +0200 Message-ID: <4FDA044F.7070504@kuantic.com> Date: Thu, 14 Jun 2012 15:33:00 -0000 From: =?ISO-8859-1?Q?Bernard_Fouch=E9?= User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: ecos-devel@ecos.sourceware.org Subject: Re: Handling RTS with an UART that doesn't directly drives the RTS pin References: <4FD7374A.1090602@kuantic.com> <4FD7410D.5060105@calivar.com> <4FD7748C.1000707@kuantic.com> <4FD86705.6080300@calivar.com> <4FD8C192.20208@kuantic.com> In-Reply-To: <4FD8C192.20208@kuantic.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: 2012-06/txt/msg00006.txt.bz2 It took me some time to figure that putc/get/set_config etc. are per hardware driver type, not per UART... hence only one 'hook' for any of these function for a given driver is available, and when the hook function is called it has trouble to figure what UART is concerned since it can't know about the 'priv' field setup by the underlying driver. I found a hack to know what UART is concerned but this isn't very clean... no good solution yet!