socsvn commit: r286647 - soc2015/iateaca/bhyve-ne2000-head/usr.sbin/bhyve
iateaca at FreeBSD.org
iateaca at FreeBSD.org
Thu Jun 4 18:35:30 UTC 2015
Author: iateaca
Date: Thu Jun 4 18:35:29 2015
New Revision: 286647
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=286647
Log:
add a static MAC address for the NE2000 card
Modified:
soc2015/iateaca/bhyve-ne2000-head/usr.sbin/bhyve/pci_ne2000.c
Modified: soc2015/iateaca/bhyve-ne2000-head/usr.sbin/bhyve/pci_ne2000.c
==============================================================================
--- soc2015/iateaca/bhyve-ne2000-head/usr.sbin/bhyve/pci_ne2000.c Thu Jun 4 17:54:41 2015 (r286646)
+++ soc2015/iateaca/bhyve-ne2000-head/usr.sbin/bhyve/pci_ne2000.c Thu Jun 4 18:35:29 2015 (r286647)
@@ -164,6 +164,14 @@
ne2000_set_reg_by_offset(sc, NE2000_P3,
ED_RTL80X9_CONFIG3, ED_RTL80X9_CF3_FUDUP);
+ /* the NE2000 card has his MAC address located in the first 6 words of the RAM memory */
+ sc->ram[0] = 0x00;
+ sc->ram[2] = 0xa0;
+ sc->ram[4] = 0x98;
+ sc->ram[6] = 0x4a;
+ sc->ram[8] = 0x0e;
+ sc->ram[10] = 0xee;
+
return 0;
}
More information about the svn-soc-all
mailing list