From owner-cvs-all@FreeBSD.ORG Tue Sep 6 22:44:27 2005 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3501A16A44B; Tue, 6 Sep 2005 22:44:27 +0000 (GMT) (envelope-from imp@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id E1F7343D49; Tue, 6 Sep 2005 22:44:26 +0000 (GMT) (envelope-from imp@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j86MiQTG061957; Tue, 6 Sep 2005 22:44:26 GMT (envelope-from imp@repoman.freebsd.org) Received: (from imp@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j86MiQKw061956; Tue, 6 Sep 2005 22:44:26 GMT (envelope-from imp) Message-Id: <200509062244.j86MiQKw061956@repoman.freebsd.org> From: Warner Losh Date: Tue, 6 Sep 2005 22:44:26 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/dev/ed if_ed_pccard.c if_edvar.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Sep 2005 22:44:27 -0000 imp 2005-09-06 22:44:26 UTC FreeBSD src repository Modified files: sys/dev/ed if_ed_pccard.c if_edvar.h Log: It turns out that many of the ambicom cards have their CIS resources listed in different orders. Since it is easy to identify the Modem resources vs the Ethernet resources by looking at the size, use that rather than hard coded rids. For such parts, go ahead and guess which rid we should use based on the size. This guess appears reliable for the two example cards that I have with different CIS info. Revision Changes Path 1.88 +26 -8 src/sys/dev/ed/if_ed_pccard.c 1.34 +1 -0 src/sys/dev/ed/if_edvar.h