Date: Mon, 5 May 2008 11:40:29 +0200 From: Matthias Apitz <matthias.apitz@oclc.org> To: Volker <volker@vwsoft.com>, freebsd-mobile@freebsd.org Subject: Re: nozomi driver (was: Vodafone Mobile Connect HSDPA/UMTS/EDGE datacard supported?) Message-ID: <20080505094029.GA3452@rebelion.Sisis.de> In-Reply-To: <20080505063530.GA4581@rebelion.Sisis.de> References: <20080503064135.GA2355@rebelion.Sisis.de> <481C6A3D.6030007@vwsoft.com> <20080504143704.GA2571@rebelion.Sisis.de> <20080505063530.GA4581@rebelion.Sisis.de>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080505094029.GA3452>