From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24951 invoked by alias); 3 Sep 2010 14:00:33 -0000 Received: (qmail 24899 invoked by uid 22791); 3 Sep 2010 14:00:28 -0000 X-SWARE-Spam-Status: No, hits=-0.5 required=5.0 tests=AWL,BAYES_40 X-Spam-Check-By: sourceware.org Received: from hagrid.ecoscentric.com (HELO mail.ecoscentric.com) (212.13.207.197) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 03 Sep 2010 14:00:19 +0000 Received: from localhost (hagrid.ecoscentric.com [127.0.0.1]) by mail.ecoscentric.com (Postfix) with ESMTP id 8B9162F78008 for ; Fri, 3 Sep 2010 15:00:16 +0100 (BST) Received: from mail.ecoscentric.com ([127.0.0.1]) by localhost (hagrid.ecoscentric.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Lh4g5J64YUCU; Fri, 3 Sep 2010 15:00:11 +0100 (BST) From: bugzilla-daemon@bugs.ecos.sourceware.org To: ecos-patches@ecos.sourceware.org Subject: [Bug 1001024] STM32 USB driver and proposed USB API change X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: eCos X-Bugzilla-Component: Patches and contributions X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: john@dallaway.org.uk X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: low X-Bugzilla-Assigned-To: unassigned@bugs.ecos.sourceware.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: In-Reply-To: References: X-Bugzilla-URL: http://bugs.ecos.sourceware.org/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Fri, 03 Sep 2010 14:00:00 -0000 Message-Id: <20100903140011.B329E2F78006@mail.ecoscentric.com> Mailing-List: contact ecos-patches-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-patches-owner@ecos.sourceware.org X-SW-Source: 2010-09/txt/msg00000.txt.bz2 Please do not reply to this email. Use the web interface provided at: http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001024 --- Comment #3 from John Dallaway 2010-09-03 15:00:08 BST --- (In reply to comment #2) > > If we provide the following functions in the generic USB slave API: > > > > usbs_rx_endpoint* cyg_usbs_rx_endpoint (cyg_uint32 ep_id); > > usbs_rx_endpoint* cyg_usbs_tx_endpoint (cyg_uint32 ep_id); > > > > how do you propose that the implementation of these functions looks up the > > endpoint structure? Another parameter to specify the hardware device driver > > lookup function? > > The functions would need to be indirected through the control endpoint data > structure as per the existing USB API functions. Chris, can you provide an example implementation of this in the form of a patch for the USB slave I/O layer and the USB serial function device? With a complete implementation in place, it should be clear to everyone how to roll out the improved API to other drivers over time. -- Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.