summaryrefslogtreecommitdiffstats
path: root/sys/dev/isa/wdc_isa.c
diff options
context:
space:
mode:
authorcsapuntz <csapuntz@openbsd.org>2001-01-29 00:20:16 +0000
committercsapuntz <csapuntz@openbsd.org>2001-01-29 00:20:16 +0000
commit1cfaf44cb3589a650705dd10564f445c41cc9efc (patch)
tree42a38507cf7da55245b3841dc69599da8eabb95a /sys/dev/isa/wdc_isa.c
parentimplement a few macros in cpu.h; pointer out by miod@ (diff)
downloadwireguard-openbsd-1cfaf44cb3589a650705dd10564f445c41cc9efc.tar.xz
wireguard-openbsd-1cfaf44cb3589a650705dd10564f445c41cc9efc.zip
Add wdc_print_current_modes to print current transfer modes set on the
devices. Print after attach in wdc_isa, wdc_isapnp, wdc_pcmcia. pciide_print_modes rewritten to use wdc_print_current_modes. Disable wdc_print_caps since it's not as useful. Inspired by NetBSD. Thanks to Dale and Theo for pointing out this improvement.
Diffstat (limited to 'sys/dev/isa/wdc_isa.c')
-rw-r--r--sys/dev/isa/wdc_isa.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/isa/wdc_isa.c b/sys/dev/isa/wdc_isa.c
index 79937afcedd..033f246602f 100644
--- a/sys/dev/isa/wdc_isa.c
+++ b/sys/dev/isa/wdc_isa.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wdc_isa.c,v 1.5 2000/07/20 19:15:22 csapuntz Exp $ */
+/* $OpenBSD: wdc_isa.c,v 1.6 2001/01/29 00:20:17 csapuntz Exp $ */
/* $NetBSD: wdc_isa.c,v 1.15 1999/05/19 14:41:25 bouyer Exp $ */
/*-
@@ -201,6 +201,7 @@ wdc_isa_attach(parent, self, aux)
return;
}
wdcattach(&sc->wdc_channel);
+ wdc_print_current_modes(&sc->wdc_channel);
}
#if NISADMA > 0