From owner-freebsd-usb@FreeBSD.ORG Fri Nov 10 11:06:04 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 76D1B16A40F; Fri, 10 Nov 2006 11:06:04 +0000 (UTC) (envelope-from maxim@macomnet.ru) Received: from mp2.macomnet.net (mp2.macomnet.net [195.128.64.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7238F43D58; Fri, 10 Nov 2006 11:05:52 +0000 (GMT) (envelope-from maxim@macomnet.ru) Received: from localhost (localhost.int.ru [127.0.0.1] (may be forged)) by mp2.macomnet.net (8.13.7/8.13.8) with ESMTP id kAAB5fpp012838; Fri, 10 Nov 2006 14:05:41 +0300 (MSK) (envelope-from maxim@macomnet.ru) Date: Fri, 10 Nov 2006 14:05:41 +0300 (MSK) From: Maxim Konovalov To: Hans Petter Selasky In-Reply-To: <200611101157.19387.hselasky@c2i.net> Message-ID: <20061110140505.L95402@mp2.macomnet.net> References: <200605031402.QAA17412@galaxy.hbg.de.ao-srv.com> <200611100838.06503.hselasky@c2i.net> <20061110120619.J7582@mp2.macomnet.net> <200611101157.19387.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: iedowse@freebsd.org, freebsd-stable , Alex Rodin , David Coder , freebsd-usb@freebsd.org Subject: Re: usb to serial X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Nov 2006 11:06:04 -0000 [...] > > 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, > 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 > the new USB architecture. > > Have a look at "ufoma.c": > > http://www.turbocat.net/~hselasky/isdn4bsd/sources/src/sys/dev/usb/ufoma.c > > >From what I can see you need to: > > Make a config thread, from where you do the configuration. You should not call > usbd_do_request() directly from the ucom callbacks! > > Add config for the USB BULK transfers needed. > > And a little more. Thanks for the tips! > Do you have hardware that you can test the UARK driver with? Alex does, I don't. -- Maxim Konovalov