Date: Sat, 14 Aug 2004 22:38:20 +0000 (UTC) From: Marius Strobl <marius@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/hme if_hme_pci.c Message-ID: <200408142238.i7EMcKV0061058@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200408142238.i7EMcKV0061058>