Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/sbni/if_sbni_isa.c
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | |||||
error = ISA_PNP_PROBE(device_get_parent(dev), dev, sbni_ids); | error = ISA_PNP_PROBE(device_get_parent(dev), dev, sbni_ids); | ||||
if (error && error != ENOENT) | if (error && error != ENOENT) | ||||
return (error); | return (error); | ||||
sc = device_get_softc(dev); | sc = device_get_softc(dev); | ||||
sc->io_res = bus_alloc_resource(dev, SYS_RES_IOPORT, &sc->io_rid, | sc->io_res = bus_alloc_resource(dev, SYS_RES_IOPORT, &sc->io_rid, | ||||
0ul, ~0ul, SBNI_PORTS, RF_ACTIVE); | 0, ~0, SBNI_PORTS, RF_ACTIVE); | ||||
if (!sc->io_res) { | if (!sc->io_res) { | ||||
printf("sbni: cannot allocate io ports!\n"); | printf("sbni: cannot allocate io ports!\n"); | ||||
return (ENOENT); | return (ENOENT); | ||||
} | } | ||||
if (sbni_probe(sc) != 0) { | if (sbni_probe(sc) != 0) { | ||||
sbni_release_resources(sc); | sbni_release_resources(sc); | ||||
return (ENXIO); | return (ENXIO); | ||||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |