Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/arcmsr/arcmsr.c
Show First 20 Lines • Show All 4,951 Lines • ▼ Show 20 Lines | irqx: | ||||
} | } | ||||
if(xpt_create_path(&acb->ppath, /* periph */ NULL, cam_sim_path(acb->psim), CAM_TARGET_WILDCARD, CAM_LUN_WILDCARD) != CAM_REQ_CMP) { | if(xpt_create_path(&acb->ppath, /* periph */ NULL, cam_sim_path(acb->psim), CAM_TARGET_WILDCARD, CAM_LUN_WILDCARD) != CAM_REQ_CMP) { | ||||
printf("arcmsr%d: xpt_create_path failure!\n", unit); | printf("arcmsr%d: xpt_create_path failure!\n", unit); | ||||
goto xpt_path_failed; | goto xpt_path_failed; | ||||
} | } | ||||
/* | /* | ||||
**************************************************** | **************************************************** | ||||
*/ | */ | ||||
xpt_setup_ccb(&csa.ccb_h, acb->ppath, /*priority*/5); | xpt_setup_stack_ccb(&csa.ccb_h, sizeof(csa), acb->ppath, 5); | ||||
csa.ccb_h.func_code = XPT_SASYNC_CB; | csa.ccb_h.func_code = XPT_SASYNC_CB; | ||||
csa.event_enable = AC_FOUND_DEVICE|AC_LOST_DEVICE; | csa.event_enable = AC_FOUND_DEVICE|AC_LOST_DEVICE; | ||||
csa.callback = arcmsr_async; | csa.callback = arcmsr_async; | ||||
csa.callback_arg = acb->psim; | csa.callback_arg = acb->psim; | ||||
xpt_action((union ccb *)&csa); | xpt_action((union ccb *)&csa); | ||||
ARCMSR_LOCK_RELEASE(&acb->isr_lock); | ARCMSR_LOCK_RELEASE(&acb->isr_lock); | ||||
/* Create the control device. */ | /* Create the control device. */ | ||||
acb->ioctl_dev = make_dev(&arcmsr_cdevsw, unit, UID_ROOT, GID_WHEEL /* GID_OPERATOR */, S_IRUSR | S_IWUSR, "arcmsr%d", unit); | acb->ioctl_dev = make_dev(&arcmsr_cdevsw, unit, UID_ROOT, GID_WHEEL /* GID_OPERATOR */, S_IRUSR | S_IWUSR, "arcmsr%d", unit); | ||||
▲ Show 20 Lines • Show All 207 Lines • Show Last 20 Lines |