Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/hpt27xx/hpt27xx_osm_bsd.c
Show First 20 Lines • Show All 1,246 Lines • ▼ Show 20 Lines | if (xpt_create_path(&vbus_ext->path, /*periph */ NULL, | ||||
hpt_unlock_vbus(vbus_ext); | hpt_unlock_vbus(vbus_ext); | ||||
os_printk("xpt_create_path failed"); | os_printk("xpt_create_path failed"); | ||||
xpt_bus_deregister(cam_sim_path(vbus_ext->sim)); | xpt_bus_deregister(cam_sim_path(vbus_ext->sim)); | ||||
cam_sim_free(vbus_ext->sim, /*free_devq*/TRUE); | cam_sim_free(vbus_ext->sim, /*free_devq*/TRUE); | ||||
vbus_ext->sim = NULL; | vbus_ext->sim = NULL; | ||||
return ; | return ; | ||||
} | } | ||||
xpt_setup_ccb(&ccb.ccb_h, vbus_ext->path, /*priority*/5); | xpt_setup_stack_ccb(&ccb.ccb_h, sizeof(ccb), vbus_ext->path, | ||||
5); | |||||
ccb.ccb_h.func_code = XPT_SASYNC_CB; | ccb.ccb_h.func_code = XPT_SASYNC_CB; | ||||
ccb.event_enable = AC_LOST_DEVICE; | ccb.event_enable = AC_LOST_DEVICE; | ||||
ccb.callback = hpt_async; | ccb.callback = hpt_async; | ||||
ccb.callback_arg = vbus_ext; | ccb.callback_arg = vbus_ext; | ||||
xpt_action((union ccb *)&ccb); | xpt_action((union ccb *)&ccb); | ||||
hpt_unlock_vbus(vbus_ext); | hpt_unlock_vbus(vbus_ext); | ||||
for (hba = vbus_ext->hba_list; hba; hba = hba->next) { | for (hba = vbus_ext->hba_list; hba; hba = hba->next) { | ||||
▲ Show 20 Lines • Show All 253 Lines • Show Last 20 Lines |