From owner-freebsd-stable Wed Jun 3 21:43:38 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA24420 for freebsd-stable-outgoing; Wed, 3 Jun 1998 21:43:38 -0700 (PDT) (envelope-from owner-freebsd-stable@FreeBSD.ORG) Received: from labinfo.iet.unipi.it (labinfo.iet.unipi.it [131.114.9.5]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id VAA24413 for ; Wed, 3 Jun 1998 21:43:25 -0700 (PDT) (envelope-from luigi@labinfo.iet.unipi.it) Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id FAA08620; Thu, 4 Jun 1998 05:04:04 +0200 From: Luigi Rizzo Message-Id: <199806040304.FAA08620@labinfo.iet.unipi.it> Subject: Re: PnP support for if_ed, and more... To: eivind@yes.no (Eivind Eklund) Date: Thu, 4 Jun 1998 05:04:03 +0200 (MET DST) Cc: mike@smith.net.au, paterno@dsi.UNIFI.IT, freebsd-stable@FreeBSD.ORG In-Reply-To: <19980604004051.40689@follo.net> from "Eivind Eklund" at Jun 4, 98 00:40:32 am X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > On Wed, Jun 03, 1998 at 12:09:05PM -0700, Mike Smith wrote: > > It's erroneous to use device-specific PnP ID's when the generic > > fallback ID is available. But this is not always the case: e.g. the OPTI931 audio card does not seem to have a fallback ID in the PnP description . So in the end, i think it is always better to use the specific PnP ID. My experience with audio cards is that devices are sufficiently different from each other to require the specific id's. ... > > If you need more information on this (ie. you are interested in fixing > > this) please let me know and I will point you in the appropriate > > directions. > > The problem with this is that that info as far as I could tell isn't > available through the FreeBSD PnP driver... right. The current pnp support does not do a full scan of the PnP info, only reads the vendor_id and serial number of the card. pnpinfo has the code to extract more infor from the PnP configuration. But i don't think it is worth the effort to implement a full scan of the PnP info. What I think we would really need is a simple mechanism (perhaps in userconfig) to list vendor_id's known to the kernel, and map new id's to know ids. Something like boot> pnp ls id 0x3600630e CS4236 0x3000a865 Yamaha SA3 0x3109143e OPTi931 boot> pnp map 0x3500630e 0x3600630e boot> pnp ls id 0x3600630e CS4236 0x3000a865 Yamaha SA3 0x3109143e OPTi931 0x3500630e --> mapped to 0x3600630e Wouldn't be too hard to add (just set up a list of id's, to fill up with DATA_SET in the kenrel, and modify userconfig to add the above commands), and it is sufficiently flexible to add new 'compatible' devices. > Eivind, who added the original if_ed PnP code (port from sio). Luigi, who added kernel PnP support :) cheers luigi -----------------------------+-------------------------------------- Luigi Rizzo | Dip. di Ingegneria dell'Informazione email: luigi@iet.unipi.it | Universita' di Pisa tel: +39-50-568533 | via Diotisalvi 2, 56126 PISA (Italy) fax: +39-50-568522 | http://www.iet.unipi.it/~luigi/ _____________________________|______________________________________ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message