From owner-freebsd-stable@FreeBSD.ORG Fri Nov 10 10:57:42 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C3E3016A403; Fri, 10 Nov 2006 10:57:42 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe02.swip.net [212.247.154.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9103B43D46; Fri, 10 Nov 2006 10:57:41 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: NBzM59/KaCuBStVqzvOX3Q== X-Cloudmark-Score: 0.000000 [] Received: from [193.216.90.171] (account mc467741@c2i.net HELO [10.0.0.249]) by mailfe02.swip.net (CommuniGate Pro SMTP 5.0.12) with ESMTPA id 325365817; Fri, 10 Nov 2006 11:57:39 +0100 From: Hans Petter Selasky To: Maxim Konovalov Date: Fri, 10 Nov 2006 11:57:17 +0100 User-Agent: KMail/1.7 References: <200605031402.QAA17412@galaxy.hbg.de.ao-srv.com> <200611100838.06503.hselasky@c2i.net> <20061110120619.J7582@mp2.macomnet.net> In-Reply-To: <20061110120619.J7582@mp2.macomnet.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200611101157.19387.hselasky@c2i.net> Cc: iedowse@freebsd.org, freebsd-stable , Alex Rodin , David Coder , freebsd-usb@freebsd.org Subject: Re: usb to serial X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Nov 2006 10:57:42 -0000 On Friday 10 November 2006 10:08, Maxim Konovalov wrote: > Hi Hans, > > On Fri, 10 Nov 2006, 08:38+0100, Hans Petter Selasky wrote: > > On Thursday 09 November 2006 18:29, Maxim Konovalov wrote: > > > [ iedowse CC'ed ] > > > > > > Hello, > > > > > > On Fri, 5 May 2006, 11:04-0400, David Coder wrote: > > > > thx for the suggestions, guys. with > > > > > > > > device uftdi > > > > device uplcom > > > > > > > > in the kernel config the adapter shows up as > > > > > > > > ugen0: ArkMicroChips USB-UART Controller, rev 1.10/0.01, addr 2 > > > > > > > > no specific com port shows up, however, so i must need something > > > > else. > > > > > > Alex Rodin have ported uark(4) driver from OpenBSD. I made code > > > cleanup and intergation in the tree. You can get&test patches for > > > HEAD and RELENG_6 there: > > > > > > http://maxim.int.ru/stuff/uark.diff > > > http://maxim.int.ru/stuff/uark.diff.6 > > > > > > Ian, could you please review the patches? > > > > Hi, do you think that you could also port the serial driver to the new > > USB stack, and send me a patch file? > > > > Please see: > > > > http://www.turbocat.net/~hselasky/usb4bsd > > > > Download the SVN version, and type "svn diff" to generate a patch when > > you are finished. Look at the other serial drivers in my SVN tree, how > > the USB/UCOM stuff is done. > > Are there any correlations with p4://depot/projects/usb? Yes, it is the same. > > The second question: is it OK to commit uark(4) as is and then convert > it to the new model? I would prefer no. It is better to commit "uark(4)" to the USB p4 project,= =20 than HEAD, because then we don't have to worry about integrating the driver. I looked at your uark.diff, and it shouldn't be too difficult to port it to= =20 the new USB architecture. Have a look at "ufoma.c": http://www.turbocat.net/~hselasky/isdn4bsd/sources/src/sys/dev/usb/ufoma.c =46rom what I can see you need to: Make a config thread, from where you do the configuration. You should not c= all=20 usbd_do_request() directly from the ucom callbacks! Add config for the USB BULK transfers needed. And a little more. Do you have hardware that you can test the UARK driver with? =2D-HPS