Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/aic7xxx/aic79xx_osm.c
Show First 20 Lines • Show All 261 Lines • ▼ Show 20 Lines | if (xpt_create_path(&path, /*periph*/NULL, | ||||
cam_sim_path(sim), CAM_TARGET_WILDCARD, | cam_sim_path(sim), CAM_TARGET_WILDCARD, | ||||
CAM_LUN_WILDCARD) != CAM_REQ_CMP) { | CAM_LUN_WILDCARD) != CAM_REQ_CMP) { | ||||
xpt_bus_deregister(cam_sim_path(sim)); | xpt_bus_deregister(cam_sim_path(sim)); | ||||
cam_sim_free(sim, /*free_devq*/TRUE); | cam_sim_free(sim, /*free_devq*/TRUE); | ||||
sim = NULL; | sim = NULL; | ||||
goto fail; | goto fail; | ||||
} | } | ||||
xpt_setup_ccb(&csa.ccb_h, path, /*priority*/5); | xpt_setup_stack_ccb(&csa.ccb_h, sizeof(csa), path, 5); | ||||
csa.ccb_h.func_code = XPT_SASYNC_CB; | csa.ccb_h.func_code = XPT_SASYNC_CB; | ||||
csa.event_enable = AC_LOST_DEVICE; | csa.event_enable = AC_LOST_DEVICE; | ||||
csa.callback = ahd_async; | csa.callback = ahd_async; | ||||
csa.callback_arg = sim; | csa.callback_arg = sim; | ||||
xpt_action((union ccb *)&csa); | xpt_action((union ccb *)&csa); | ||||
count++; | count++; | ||||
fail: | fail: | ||||
▲ Show 20 Lines • Show All 1,261 Lines • Show Last 20 Lines |