diff options
author | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2002-06-22 16:14:15 +0000 |
---|---|---|
committer | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2002-06-22 16:14:15 +0000 |
commit | 6f4cfe4382ea018afe6fb8c421137b5302e3896d (patch) | |
tree | b73e288b971320d128d36c4865e6a366e3f221f2 /sys | |
parent | 54d462602c4e32c19e79c21eeace7f9664e24681 (diff) |
use 8-bits when accessing the wi_cor_offset; millert@ ok.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ic/if_wi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/if_wi.c b/sys/dev/ic/if_wi.c index 7832ea5bb65..96a0dca5091 100644 --- a/sys/dev/ic/if_wi.c +++ b/sys/dev/ic/if_wi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_wi.c,v 1.71 2002/06/21 20:15:37 millert Exp $ */ +/* $OpenBSD: if_wi.c,v 1.72 2002/06/22 16:14:14 fgsch Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -124,7 +124,7 @@ u_int32_t widebug = WIDEBUG; #if !defined(lint) && !defined(__OpenBSD__) static const char rcsid[] = - "$OpenBSD: if_wi.c,v 1.71 2002/06/21 20:15:37 millert Exp $"; + "$OpenBSD: if_wi.c,v 1.72 2002/06/22 16:14:14 fgsch Exp $"; #endif /* lint */ #ifdef foo @@ -908,7 +908,7 @@ wi_cor_reset(sc) * we only soft reset Symbol cards for now. */ if (sc->sc_firmware_type == WI_SYMBOL) { - cor_value = bus_space_read_2(sc->wi_ltag, sc->wi_lhandle, + cor_value = bus_space_read_1(sc->wi_ltag, sc->wi_lhandle, sc->wi_cor_offset); bus_space_write_1(sc->wi_ltag, sc->wi_lhandle, sc->wi_cor_offset, (cor_value | WI_COR_SOFT_RESET)); |