Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/snc/if_snc_cbus.c
Show First 20 Lines • Show All 66 Lines • ▼ Show 20 Lines | static struct isa_pnp_id snc_ids[] = { | ||||
{ 0, NULL } | { 0, NULL } | ||||
}; | }; | ||||
static void | static void | ||||
snc_isapnp_reconfig(device_t dev) | snc_isapnp_reconfig(device_t dev) | ||||
{ | { | ||||
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)); | ||||
for (rid = 0; rid < ISA_NMEM; rid++) { | for (rid = 0; rid < ISA_NMEM; rid++) { | ||||
if (bus_get_resource(dev, SYS_RES_MEMORY, rid, &start, &count)) | if (bus_get_resource(dev, SYS_RES_MEMORY, rid, &start, &count)) | ||||
break; | break; | ||||
config.ic_mem[rid].ir_start = start; | config.ic_mem[rid].ir_start = start; | ||||
▲ Show 20 Lines • Show All 128 Lines • Show Last 20 Lines |