summaryrefslogtreecommitdiffstats
path: root/sys/dev/sn/if_sn.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>1999-12-28 01:07:16 +0000
committerimp <imp@FreeBSD.org>1999-12-28 01:07:16 +0000
commit293c4f50f0f5561061a3452727209e02d889e8f9 (patch)
treefd62b434bca53a8334b73f1d99bc652cba4af864 /sys/dev/sn/if_sn.c
parent83843a44a4f7ba061906588ceae18db10c46859c (diff)
downloadFreeBSD-src-293c4f50f0f5561061a3452727209e02d889e8f9.zip
FreeBSD-src-293c4f50f0f5561061a3452727209e02d889e8f9.tar.gz
Two nits and disable isa probe due to its overly agressive claiming of
devices. o Return ENXIO from sn_isa_probe o Fix SN_DEBUG printf o Use IFQ_MAXLEN rather than 8 I'll fix the isa probe when I get access to a real isa attachment device to test against here in a few days. Overly agressive snagging behavior noticed by: phk
Diffstat (limited to 'sys/dev/sn/if_sn.c')
-rw-r--r--sys/dev/sn/if_sn.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/sn/if_sn.c b/sys/dev/sn/if_sn.c
index 7f0750f..4bf1553 100644
--- a/sys/dev/sn/if_sn.c
+++ b/sys/dev/sn/if_sn.c
@@ -228,8 +228,7 @@ sn_attach(device_t dev)
ifp->if_ioctl = snioctl;
ifp->if_watchdog = snwatchdog;
ifp->if_init = sninit;
- ifp->if_snd.ifq_maxlen = 8;
-
+ ifp->if_snd.ifq_maxlen = IFQ_MAXLEN;
ifp->if_timer = 0;
if_attach(ifp);
@@ -1287,7 +1286,7 @@ sn_activate(device_t dev)
0, ~0, 1, RF_ACTIVE);
if (!sc->irq_res) {
#ifdef SN_DEBUG
- deivce_printf(dev, "Cannot allocate irq\n");
+ device_printf(dev, "Cannot allocate irq\n");
#endif
sn_deactivate(dev);
return ENOMEM;
OpenPOWER on IntegriCloud