cvs commit: src/sys/dev/hme if_hme_pci.c

Marius Strobl marius at FreeBSD.org
Sat Aug 14 15:38:21 PDT 2004


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


More information about the cvs-src mailing list