Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Jun 2015 18:35:29 GMT
From:      iateaca@FreeBSD.org
To:        svn-soc-all@FreeBSD.org
Subject:   socsvn commit: r286647 - soc2015/iateaca/bhyve-ne2000-head/usr.sbin/bhyve
Message-ID:  <201506041835.t54IZTVp045165@socsvn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201506041835.t54IZTVp045165>