mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
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
This commit is contained in:
parent
79bf951d43
commit
f9fe4786ef
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=55161
@ -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;
|
||||
|
@ -60,9 +60,10 @@ static int sn_isa_attach (device_t);
|
||||
static int
|
||||
sn_isa_probe (device_t dev)
|
||||
{
|
||||
#if 0
|
||||
if (sn_probe(dev, 0) != 0)
|
||||
return (0);
|
||||
|
||||
#endif
|
||||
return (ENXIO);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user