sio(4) driver

Thomas Moestl t.moestl at tu-bs.de
Sat Aug 23 10:59:45 PDT 2003


On Fri, 2003/08/22 at 21:59:56 +0300, Maxim Mazurok wrote:
> but i no reslolve next problem.
> in my Ultra AXi motherboard i have:
> 1. 4 rl cards
> 2. dual-port sio card
> 3. VGA+dual ethernet (hme) card
> 
> on 5.1-RELEASE on all hme cards (one onboard and two on PCI card) i have
> same mac-address. Width any value OFW option "local-mac-address?".

That should not be too hard to fix. Do you actually require different
MAC addresses for some network setup?

> i rebuild kernel to 5-CURRENT width options OFW_NEWPCI, but i have same
> effect. width new problem: rl cards no worked. i have not any arp addresses
> from rl cards.

The attached patch might fix that, I haven't tested it because of lack
of hardware, though.

	- Thomas

-- 
Thomas Moestl <t.moestl at tu-bs.de>	http://www.tu-bs.de/~y0015675/
              <tmm at FreeBSD.org>		http://people.FreeBSD.org/~tmm/
PGP fingerprint: 1C97 A604 2BD0 E492 51D0  9C0F 1FE6 4F1D 419C 776C
-------------- next part --------------
Index: if_rl.c
===================================================================
RCS file: /vol/ncvs/src/sys/pci/if_rl.c,v
retrieving revision 1.113
diff -u -r1.113 if_rl.c
--- if_rl.c	22 Aug 2003 07:13:21 -0000	1.113
+++ if_rl.c	23 Aug 2003 17:45:29 -0000
@@ -2673,8 +2673,9 @@
 	 * register write enable" mode to modify the ID registers.
 	 */
 	CSR_WRITE_1(sc, RL_EECMD, RL_EEMODE_WRITECFG);
-	CSR_WRITE_4(sc, RL_IDR0, *(u_int32_t *)(&sc->arpcom.ac_enaddr[0]));
-	CSR_WRITE_4(sc, RL_IDR4, *(u_int32_t *)(&sc->arpcom.ac_enaddr[4]));
+	/* Init our MAC address */
+	for (i = 0; i < ETHER_ADDR_LEN; i++)
+		CSR_WRITE_1(sc, RL_IDR0 + i, sc->arpcom.ac_enaddr[i]);
 	CSR_WRITE_1(sc, RL_EECMD, RL_EEMODE_OFF);
 
 	/*


More information about the freebsd-sparc64 mailing list