Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/snc/if_snc_cbus.c
Context not available. | |||||
{ | { | ||||
struct isa_device *idev = DEVTOISA(dev); | struct isa_device *idev = DEVTOISA(dev); | ||||
struct isa_config config; | struct isa_config config; | ||||
u_long start, count; | rman_res_t start, count; | ||||
int rid; | int rid; | ||||
bzero(&config, sizeof(config)); | bzero(&config, sizeof(config)); | ||||
Context not available. | |||||
bus_set_resource(dev, SYS_RES_IOPORT, rid, | bus_set_resource(dev, SYS_RES_IOPORT, rid, | ||||
port, SNEC_NREGS); | port, SNEC_NREGS); | ||||
res = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, | res = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, | ||||
0ul, ~0ul, SNEC_NREGS, | 0, ~0, SNEC_NREGS, | ||||
0 /* !RF_ACTIVE */); | 0 /* !RF_ACTIVE */); | ||||
if (res) break; | if (res) break; | ||||
} | } | ||||
Context not available. |