From owner-freebsd-hackers@FreeBSD.ORG Sat Nov 12 17:49:30 2005 Return-Path: X-Original-To: freebsd-hackers@FreeBSD.org Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EB45C16A420 for ; Sat, 12 Nov 2005 17:49:30 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5790E43D53 for ; Sat, 12 Nov 2005 17:49:30 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1] (may be forged)) by harmony.bsdimp.com (8.13.3/8.13.3) with ESMTP id jACHktKX090626; Sat, 12 Nov 2005 10:46:57 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Sat, 12 Nov 2005 10:47:33 -0700 (MST) Message-Id: <20051112.104733.13599970.imp@bsdimp.com> To: dirkx@webweaving.org From: "M. Warner Losh" In-Reply-To: <20051112072658.Q14448@skutsje.san.webweaving.org> References: <20051112072658.Q14448@skutsje.san.webweaving.org> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Sat, 12 Nov 2005 10:46:58 -0700 (MST) Cc: freebsd-hackers@FreeBSD.org Subject: Re: Sierra Wireless / AC775 / Loading an external cisfile as a 'quirck' X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Nov 2005 17:49:31 -0000 In message: <20051112072658.Q14448@skutsje.san.webweaving.org> Dirk-Willem van Gulik writes: : : I've got the (correct) CIS files below for a Sierra Wireeless Airnet 775 : (AC775) card. The actual data on the card (see second cut-and-paste) is : wrong (i.e. multi function instead of a modem). : : So I am looking for a way to either import a CIS file dynamically; at run : time - or to translate a CIS file in what I assume should be a quirk entry : in the file /sys/dev/pccard/pccard_cis_quirks.c (is that corect) ? OpenBSD solved this problem by listing this card in pcmica_cis_quirk.c. Maybe you can try that as an iterrum solution? That's the short term solution. I really hate the quirks in the present system and plan on doing something about it. : I.e. something akin to: : : #cat SW_775_SER.dat > /dev/pccard0.cis : : Looking for a solution on either 5, 6 or CURRENT. : : Any hints - or guidance how to best map this into the quirk section - as : the fields are not quite clear to me. We just got the ability to dump the CIS out of a card. It is unclear how we should go about replacing the CIS in the kernel. Do we do this by loading the CIS in before the card is inserted? Do we keep a database of bad cards and automatically subsitute the right one? Do we detach an reprobe the card when a new CIS is loaded in (like your example above)? Being able to load CIS in would fix a bunch of multi-function cards that aren't listed as such (and vice versa). Warner