Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/pcf/pcf_isa.c
Show First 20 Lines • Show All 94 Lines • ▼ Show 20 Lines | pcf_isa_identify(driver_t *driver, device_t parent) | ||||
BUS_ADD_CHILD(parent, ISA_ORDER_SPECULATIVE, PCF_NAME, 0); | BUS_ADD_CHILD(parent, ISA_ORDER_SPECULATIVE, PCF_NAME, 0); | ||||
return; | return; | ||||
} | } | ||||
static int | static int | ||||
pcf_isa_probe(device_t dev) | pcf_isa_probe(device_t dev) | ||||
{ | { | ||||
u_long start, count; | rman_res_t start, count; | ||||
u_int rid = 0, port, error; | u_int rid = 0, port, error; | ||||
/* skip PnP probes */ | /* skip PnP probes */ | ||||
if (isa_get_logicalid(dev)) | if (isa_get_logicalid(dev)) | ||||
return (ENXIO); | return (ENXIO); | ||||
/* The port address must be explicitly specified */ | /* The port address must be explicitly specified */ | ||||
bus_get_resource(dev, SYS_RES_IOPORT, rid, &start, &count); | bus_get_resource(dev, SYS_RES_IOPORT, rid, &start, &count); | ||||
▲ Show 20 Lines • Show All 100 Lines • Show Last 20 Lines |