From c0549bc55fa12827d6b81b623d3e92f8ac575c32 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Tue, 17 Jun 2003 19:47:46 +0000 Subject: 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... --- sys/dev/sbus/cgthree.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/dev') 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); } -- cgit v1.2.3