From owner-cvs-src@FreeBSD.ORG Sat Aug 14 22:38:21 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 12FCB16A4CE; Sat, 14 Aug 2004 22:38:21 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A31343D39; Sat, 14 Aug 2004 22:38:21 +0000 (GMT) (envelope-from marius@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i7EMcKOW061059; Sat, 14 Aug 2004 22:38:20 GMT (envelope-from marius@repoman.freebsd.org) Received: (from marius@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i7EMcKV0061058; Sat, 14 Aug 2004 22:38:20 GMT (envelope-from marius) Message-Id: <200408142238.i7EMcKV0061058@repoman.freebsd.org> From: Marius Strobl Date: Sat, 14 Aug 2004 22:38:20 +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: Sat, 14 Aug 2004 22:38:21 -0000 marius 2004-08-14 22:38:20 UTC FreeBSD src repository Modified files: sys/dev/hme if_hme_pci.c Log: Make hme(4), i.e. the PCI-variant, MI by reading the MAC address on sytems without Open Firmware directly instead of using OF_getetheraddr(). This is a bit painful though, as the MAC address is contained in the NA field of the VPD of the EBus bridge, which is is another function of the same chip. To make it worse, the VPD of the EBus bridge can't be accessed via the PCI capability pointer but has to be digged out from the Boot PROM and has a non-standard format. The PCI VPD struct and macros used here should be part of the FreeBSD PCI code nevertheless. Approved by: tmm Based on: NetBSD Tested with: Sun X1032A (hme(4)-isp(4)-combo card) on alpha and i386 Revision Changes Path 1.15 +152 -3 src/sys/dev/hme/if_hme_pci.c