summaryrefslogtreecommitdiff
path: root/sys/dev/sbus
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2003-06-17 19:47:46 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2003-06-17 19:47:46 +0000
commitc0549bc55fa12827d6b81b623d3e92f8ac575c32 (patch)
tree201648ce99ff6ba909034fb4c4104720ffc5ec48 /sys/dev/sbus
parent5cac98ddde265ca2fc2385e6e7733d944e3afb97 (diff)
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...
Diffstat (limited to 'sys/dev/sbus')
-rw-r--r--sys/dev/sbus/cgthree.c8
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);
}