diff options
author | 2005-07-20 23:02:41 +0000 | |
---|---|---|
committer | 2005-07-20 23:02:41 +0000 | |
commit | 7abc721f34375f476a01a82b42b56cf3f262fa8e (patch) | |
tree | d2941779406344b6845f0add69a5b4bf5d53764b /sys | |
parent | fix setting the MAC address in rl_init() so that "ifconfig lladdr" works (diff) | |
download | wireguard-openbsd-7abc721f34375f476a01a82b42b56cf3f262fa8e.tar.xz wireguard-openbsd-7abc721f34375f476a01a82b42b56cf3f262fa8e.zip |
add a comment explaining why we set the MAC address as we do.
From FreeBSD
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ic/rtl81x9.c | 8 |
1 files changed, 6 insertions, 2 deletions
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])); |