summaryrefslogtreecommitdiff
path: root/sys/dev/mca
diff options
context:
space:
mode:
authorjdolecek <jdolecek@NetBSD.org>2021-04-08 17:36:33 +0000
committerjdolecek <jdolecek@NetBSD.org>2021-04-08 17:36:33 +0000
commit855b5a3e38fdc94964da94aa9cacfcc7079b047e (patch)
tree3d13114184d86ee304cd4f3821119d998dd46531 /sys/dev/mca
parente509c2ecee033f44877e39b1930fb60e318a65a9 (diff)
update comment about the 'quirk' in we_mca_init_hook() - actually that is
just interrupt enable bit, so not a quirk at all; NFCI info passed by Valery Ushakov from a guy running https://www.os2museum.com/wp/
Diffstat (limited to 'sys/dev/mca')
-rw-r--r--sys/dev/mca/if_we_mca.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/dev/mca/if_we_mca.c b/sys/dev/mca/if_we_mca.c
index f09a5e8c4a5..305ab337dab 100644
--- a/sys/dev/mca/if_we_mca.c
+++ b/sys/dev/mca/if_we_mca.c
@@ -1,4 +1,4 @@
-/* $NetBSD: if_we_mca.c,v 1.21 2008/04/28 20:23:53 martin Exp $ */
+/* $NetBSD: if_we_mca.c,v 1.22 2021/04/08 17:36:33 jdolecek Exp $ */
/*-
* Copyright (c) 1997, 1998, 2001 The NetBSD Foundation, Inc.
@@ -53,7 +53,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_we_mca.c,v 1.21 2008/04/28 20:23:53 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_we_mca.c,v 1.22 2021/04/08 17:36:33 jdolecek Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -302,11 +302,9 @@ void
we_mca_init_hook(struct we_softc *wsc)
{
/*
- * This quirk really needs to be here, at least for WD8003W/A. Without
- * this, the card doesn't send any interrupts in 16bit mode. The quirk
+ * Enable interrupts. This is required for at least WD8003W/A, without
+ * this, the card doesn't send any interrupts in 16bit mode. The code
* was taken from Linux smc-mca.c driver.
- * I do not know why it's necessary. I don't want to know. It works
- * and that is enough for me.
*/
bus_space_write_1(wsc->sc_asict, wsc->sc_asich, WE_LAAR, 0x04);
wsc->sc_laar_proto |= 0x04;