summaryrefslogtreecommitdiff
path: root/sys/arch/mac68k/dev/if_sn.c
diff options
context:
space:
mode:
authorbriggs <briggs@cvs.openbsd.org>1997-04-10 03:16:01 +0000
committerbriggs <briggs@cvs.openbsd.org>1997-04-10 03:16:01 +0000
commit1ed5e3f9d8d07641fb85ed34cb6520960d07d764 (patch)
treedbd0baac166638fcb0a967617337e579d1e61524 /sys/arch/mac68k/dev/if_sn.c
parent24266347a6b2e7e9701e5eea5b351d02a0290834 (diff)
Stop the SONIC before setting reset, not after...
Diffstat (limited to 'sys/arch/mac68k/dev/if_sn.c')
-rw-r--r--sys/arch/mac68k/dev/if_sn.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/mac68k/dev/if_sn.c b/sys/arch/mac68k/dev/if_sn.c
index 4dd01df444e..b92e858ca70 100644
--- a/sys/arch/mac68k/dev/if_sn.c
+++ b/sys/arch/mac68k/dev/if_sn.c
@@ -1,5 +1,5 @@
/* $NetBSD: if_sn.c,v 1.7 1997/03/20 17:47:51 scottr Exp $ */
-/* $OpenBSD: if_sn.c,v 1.18 1997/04/10 02:35:02 briggs Exp $ */
+/* $OpenBSD: if_sn.c,v 1.19 1997/04/10 03:15:59 briggs Exp $ */
/*
* National Semiconductor SONIC Driver
@@ -131,10 +131,10 @@ snsetup(sc)
* Put the pup in reset mode (sninit() will fix it later),
* stop the timer, disable all interrupts and clear any interrupts.
*/
- NIC_PUT(sc, SNR_CR, CR_RST);
- wbflush();
NIC_PUT(sc, SNR_CR, CR_STP);
wbflush();
+ NIC_PUT(sc, SNR_CR, CR_RST);
+ wbflush();
NIC_PUT(sc, SNR_IMR, 0);
wbflush();
NIC_PUT(sc, SNR_ISR, ISR_ALL);