diff options
author | 2003-06-17 19:47:45 +0000 | |
---|---|---|
committer | 2003-06-17 19:47:45 +0000 | |
commit | 241b1d7116d8d63d06a433161c8253c3e70f958a (patch) | |
tree | 3aeff136f9aed7b9354afe83cffbe2792f8503d6 | |
parent | use license from /usr/share/misc/license.template for new code (diff) | |
download | wireguard-openbsd-241b1d7116d8d63d06a433161c8253c3e70f958a.tar.xz wireguard-openbsd-241b1d7116d8d63d06a433161c8253c3e70f958a.zip |
A few typos in the Bt initialisation sequence were introduced in 1.29, and
curiously this only broke some cgthree clones, but not the genuine Sun's...
-rw-r--r-- | sys/dev/sbus/cgthree.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/sbus/cgthree.c b/sys/dev/sbus/cgthree.c index 6b4b6f8de2e..5613ecb4eac 100644 --- a/sys/dev/sbus/cgthree.c +++ b/sys/dev/sbus/cgthree.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cgthree.c,v 1.30 2003/06/02 18:32:41 jason Exp $ */ +/* $OpenBSD: cgthree.c,v 1.31 2003/06/17 19:47:45 miod Exp $ */ /* * Copyright (c) 2001 Jason L. Wright (jason@thought.net) @@ -633,13 +633,13 @@ cgthree_reset(sc) BT_WRITE(sc, BT_ADDR, BT_CR); BT_BARRIER(sc, BT_ADDR, BUS_SPACE_BARRIER_WRITE); BT_WRITE(sc, BT_CTRL, - (BTCR_MPLX_4 | BTCR_RAMENA | BTCR_BLINK_6464) << 24); + (BTCR_MPLX_4 | BTCR_RAMENA | BTCR_BLINK_6464)); BT_BARRIER(sc, BT_CTRL, BUS_SPACE_BARRIER_WRITE); /* disable the D/A read pins */ - BT_WRITE(sc, BT_ADDR, BT_CTR << 24); + BT_WRITE(sc, BT_ADDR, BT_CTR); BT_BARRIER(sc, BT_ADDR, BUS_SPACE_BARRIER_WRITE); - BT_WRITE(sc, BT_CTRL, 0x00 << 24); + BT_WRITE(sc, BT_CTRL, 0x00); BT_BARRIER(sc, BT_CTRL, BUS_SPACE_BARRIER_WRITE); } |