From owner-cvs-src@FreeBSD.ORG Sun Dec 12 00:32:51 2004 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 EFB8116A4CE; Sun, 12 Dec 2004 00:32:51 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id E159543D58; Sun, 12 Dec 2004 00:32:51 +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 iBC0WpJN095750; Sun, 12 Dec 2004 00:32:51 GMT (envelope-from marius@repoman.freebsd.org) Received: (from marius@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id iBC0WpdO095749; Sun, 12 Dec 2004 00:32:51 GMT (envelope-from marius) Message-Id: <200412120032.iBC0WpdO095749@repoman.freebsd.org> From: Marius Strobl Date: Sun, 12 Dec 2004 00:32:51 +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: Sun, 12 Dec 2004 00:32:52 -0000 marius 2004-12-12 00:32:51 UTC FreeBSD src repository Modified files: sys/dev/hme if_hme_pci.c Log: Some changes related to reading the MAC-address from the VPD on systems without Open Firmware: - The PCI data structure of some HME PROMs contains a non-zero interface revision in the class code. Thus remove the checks for matching class code and PCI data structure length and revsion. These were pretty much useless anyway as we only really need the pointer to the VPD which is located before the structure length and revision fields. - On Sun QFE (Quad FastEthernet) cards read the Nth MAC-address for the Nth HME controller instead of always the first one for all four HMEs. [1] - Improve the comment describing the used VPD format to better reflect reality. - Minor clean-up. Prodded by: joerg [1] Revision Changes Path 1.17 +18 -19 src/sys/dev/hme/if_hme_pci.c