Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/aha/aha_isa.c
Context not available. | |||||
port_rid = 0; | port_rid = 0; | ||||
aha->port = bus_alloc_resource(dev, SYS_RES_IOPORT, &port_rid, | aha->port = bus_alloc_resource(dev, SYS_RES_IOPORT, &port_rid, | ||||
0ul, ~0ul, AHA_NREGS, RF_ACTIVE); | 0, ~0, AHA_NREGS, RF_ACTIVE); | ||||
if (aha->port == NULL) | if (aha->port == NULL) | ||||
return (ENXIO); | return (ENXIO); | ||||
Context not available. | |||||
aha->dev = dev; | aha->dev = dev; | ||||
aha->portrid = 0; | aha->portrid = 0; | ||||
aha->port = bus_alloc_resource(dev, SYS_RES_IOPORT, &aha->portrid, | aha->port = bus_alloc_resource(dev, SYS_RES_IOPORT, &aha->portrid, | ||||
0ul, ~0ul, AHA_NREGS, RF_ACTIVE); | 0, ~0, AHA_NREGS, RF_ACTIVE); | ||||
if (!aha->port) { | if (!aha->port) { | ||||
device_printf(dev, "Unable to allocate I/O ports\n"); | device_printf(dev, "Unable to allocate I/O ports\n"); | ||||
goto fail; | goto fail; | ||||
Context not available. |