nozomi driver (was: Vodafone Mobile Connect HSDPA/UMTS/EDGE
datacard supported?)
Matthias Apitz
matthias.apitz at oclc.org
Mon May 5 09:40:35 UTC 2008
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
More information about the freebsd-mobile
mailing list