Date: Thu, 15 Feb 2007 01:00:12 -0700 (MST) From: "M. Warner Losh" <imp@bsdimp.com> To: joerg_wunsch@uriah.heep.sax.de, j@uriah.heep.sax.de Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/etc devd.conf Message-ID: <20070215.010012.1723241386.imp@bsdimp.com> In-Reply-To: <20070215074202.GB38723@uriah.heep.sax.de> References: <20070215060243.GY38723@uriah.heep.sax.de> <20070215.003046.-432838250.imp@bsdimp.com> <20070215074202.GB38723@uriah.heep.sax.de>
next in thread | previous in thread | raw e-mail | index | archive | help
In message: <20070215074202.GB38723@uriah.heep.sax.de>
Joerg Wunsch <j@uriah.heep.sax.de> writes:
: As M. Warner Losh wrote:
:
: > : Another thing that is entirely missing (even as a variable) appears
: > : to be a pccard's "function_type". ...
:
: > I thought that was published. pccard's pnpinfo includes
: > function_type (I just checked the sources).
:
: Hmm, I blindly trusted the comment that claimed pnpinfo wasn't set
: inside devd...
The message from the kernel is:
? at function=0 manufacturer=0x0098 product=0x0000 cisvendor="TOSHIBA THNCF512MPG " cisproduct="" function_type=4 on pccard0
and the code to parse it does:
case nomatch:
//? at location pnp-info on bus
sp = strchr(sp, ' ');
if (sp == NULL)
return; /* Can't happen? */
*sp++ = '\0';
if (strncmp(sp, "at ", 3) == 0)
sp += 3;
sp = cfg.set_vars(sp);
if (strncmp(sp, "on ", 3) == 0)
cfg.set_variable("bus", sp + 3);
break;
which I think should result in function_type=4 being set in devd.
where's this comment to which you refer so I can go kill it :-)
Warner
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070215.010012.1723241386.imp>
