From owner-freebsd-mobile@FreeBSD.ORG Mon May 5 09:40:35 2008 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 672B8106567E for ; Mon, 5 May 2008 09:40:35 +0000 (UTC) (envelope-from Matthias.Apitz@oclc.org) Received: from mail.pica.nl (mail.pica.nl [192.87.44.30]) by mx1.freebsd.org (Postfix) with ESMTP id EE1028FC13 for ; Mon, 5 May 2008 09:40:34 +0000 (UTC) (envelope-from Matthias.Apitz@oclc.org) Received: from rebelion.Sisis.de ([193.31.10.34]) by mail.pica.nl with Microsoft SMTPSVC(6.0.3790.3959); Mon, 5 May 2008 11:43:34 +0200 Received: (from guru@localhost) by rebelion.Sisis.de (8.14.2/8.13.8/Submit) id m459eT4d003505; Mon, 5 May 2008 11:40:29 +0200 (CEST) (envelope-from matthias.apitz@oclc.org) X-Authentication-Warning: rebelion.Sisis.de: guru set sender to matthias.apitz@oclc.org using -f Date: Mon, 5 May 2008 11:40:29 +0200 From: Matthias Apitz To: Volker , freebsd-mobile@freebsd.org Message-ID: <20080505094029.GA3452@rebelion.Sisis.de> References: <20080503064135.GA2355@rebelion.Sisis.de> <481C6A3D.6030007@vwsoft.com> <20080504143704.GA2571@rebelion.Sisis.de> <20080505063530.GA4581@rebelion.Sisis.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20080505063530.GA4581@rebelion.Sisis.de> User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 7.0-RELEASE (i386) X-OriginalArrivalTime: 05 May 2008 09:43:34.0380 (UTC) FILETIME=[7C4BE2C0:01C8AE94] Cc: Subject: Re: nozomi driver (was: Vodafone Mobile Connect HSDPA/UMTS/EDGE datacard supported?) X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 May 2008 09:40:35 -0000 El día Monday, May 05, 2008 a las 08:35:30AM +0200, Matthias Apitz escribió: > I have digged into this and it turned out that ttycreate() is called with > incompatible (means: incompatible to FreeBSD 7.0-REL) arguments: > > *** nozomi.c 2008-05-05 08:05:54.000000000 +0200 > --- nozomi.c.orig 2007-04-18 00:47:50.000000000 +0200 > *************** > *** 1070,1078 **** > tmptty->t_modem = nzmodem; > tmptty->t_ioctl = nzioctl; > tmptty->t_sc = sc; > ! // see /usr/src/sys/kern/tty.c: > ! device_printf(sc->dev, "ttycreate for /dev/cuaN%d\n", i); > ! ttycreate(tmptty, TS_CALLOUT, "N%r", i); > sc->port[i].tty_devunit = tmptty->t_devunit; > sc->port[i].tty_open_count = 0; > } > --- 1070,1076 ---- > tmptty->t_modem = nzmodem; > tmptty->t_ioctl = nzioctl; > tmptty->t_sc = sc; > ! ttycreate(tmptty, NULL, 0, 0, "N%r", i); > sc->port[i].tty_devunit = tmptty->t_devunit; > sc->port[i].tty_open_count = 0; > } > > This and the missing argument for bus_setup_intr() let me think that the > driver was not ported to FreeBSD 7.0-REL (don't know if this interface > changed from 6.x to 7.0, will have a look into some older server when > I'm at work); ... I have checked this in a box running FreeBSD 6.1-REL: the arguments to be passed to ttycreate() has changed between 6.1-REL and 7.0-REL and the call 'ttycreate(tmptty, NULL, 0, 0, "N%r", i)' would work on 6.1; matthias