/* $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
* 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);
-/* $OpenBSD: if_sn_obio.c,v 1.10 1997/04/07 13:03:17 briggs Exp $ */
+/* $OpenBSD: if_sn_obio.c,v 1.11 1997/04/10 03:16:00 briggs Exp $ */
/*
* Copyright (C) 1997 Allen Briggs
int i, ors=0;
/* Shut down NIC */
- 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);
wbflush();
+ NIC_PUT(sc, SNR_CR, CR_RST);
+ wbflush();
NIC_PUT(sc, SNR_CEP, 15); /* For some reason, Apple fills top first. */
wbflush();
i = NIC_GET(sc, SNR_CAP2);