From owner-cvs-src@FreeBSD.ORG Wed Mar 2 00:49:38 2005 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0497E16A4CE; Wed, 2 Mar 2005 00:49:38 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id E1D0C43D49; Wed, 2 Mar 2005 00:49:37 +0000 (GMT) (envelope-from marius@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 j220nbvU018559; Wed, 2 Mar 2005 00:49:37 GMT (envelope-from marius@repoman.freebsd.org) Received: (from marius@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j220nb2F018558; Wed, 2 Mar 2005 00:49:37 GMT (envelope-from marius) Message-Id: <200503020049.j220nb2F018558@repoman.freebsd.org> From: Marius Strobl Date: Wed, 2 Mar 2005 00:49:37 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/hme if_hme_pci.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Mar 2005 00:49:38 -0000 marius 2005-03-02 00:49:37 UTC FreeBSD src repository Modified files: sys/dev/hme if_hme_pci.c Log: - Fix braino introduced in rev. 1.17, unlike the X1032A (HME-ISP1040-combo) and the X1034A (quad HME; QFE) cards the X1033A (single HME) don't have a PCI-PCI-bridge so we can't rely on the PCI slot number being useable as index for the network address to read from the VPD on the latter. Use the end tag to determine whether it is a QFE VPD with 4 NAs and only use the slot number as index in this case. - Remove a useless check. Prodded by: joerg Additional testing by: joerg MFC after: 1 day Revision Changes Path 1.19 +8 -8 src/sys/dev/hme/if_hme_pci.c