]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Make hme(4), i.e. the PCI-variant, MI by reading the MAC address on sytems
authorMarius Strobl <marius@FreeBSD.org>
Sat, 14 Aug 2004 22:38:20 +0000 (22:38 +0000)
committerMarius Strobl <marius@FreeBSD.org>
Sat, 14 Aug 2004 22:38:20 +0000 (22:38 +0000)
commitf348e5ac4bb0ca8bff5d92cc24e0662b56f3a602
tree9c2fc2072d5bff3917d91a002da47199de636186
parent487d427700ec4c0109fd675dc6b06d0908422dce
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
sys/dev/hme/if_hme_pci.c