From 152b4a4f565c1aa8e8a07f9b365c4fe9ec98d24d Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Wed, 20 Jul 2005 23:02:42 +0000 Subject: add a comment explaining why we set the MAC address as we do. From FreeBSD --- sys/dev/ic/rtl81x9.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/ic/rtl81x9.c b/sys/dev/ic/rtl81x9.c index 8c13f0285d1..7a61d069837 100644 --- a/sys/dev/ic/rtl81x9.c +++ b/sys/dev/ic/rtl81x9.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtl81x9.c,v 1.43 2005/07/20 22:59:52 brad Exp $ */ +/* $OpenBSD: rtl81x9.c,v 1.44 2005/07/20 23:02:41 brad Exp $ */ /* * Copyright (c) 1997, 1998 @@ -971,7 +971,11 @@ void rl_init(xsc) */ rl_stop(sc); - /* Init our MAC address */ + /* + * Init our MAC address. Even though the chipset + * documentation doesn't mention it, we need to enter "Config + * 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->sc_arpcom.ac_enaddr[0])); CSR_WRITE_4(sc, RL_IDR4, *(u_int32_t *)(&sc->sc_arpcom.ac_enaddr[4])); -- cgit v1.2.3