Changeset View
Changeset View
Standalone View
Standalone View
sys/cam/nvme/nvme_da.c
Show First 20 Lines • Show All 700 Lines • ▼ Show 20 Lines | ndaregister(struct cam_periph *periph, void *arg) | ||||
} | } | ||||
/* ident_data parsing */ | /* ident_data parsing */ | ||||
periph->softc = softc; | periph->softc = softc; | ||||
softc->quirks = NDA_Q_NONE; | softc->quirks = NDA_Q_NONE; | ||||
bzero(&cpi, sizeof(cpi)); | xpt_path_inq(&cpi, periph->path, CAM_PRIORITY_NONE); | ||||
xpt_setup_ccb(&cpi.ccb_h, periph->path, CAM_PRIORITY_NONE); | |||||
cpi.ccb_h.func_code = XPT_PATH_INQ; | |||||
xpt_action((union ccb *)&cpi); | |||||
TASK_INIT(&softc->sysctl_task, 0, ndasysctlinit, periph); | TASK_INIT(&softc->sysctl_task, 0, ndasysctlinit, periph); | ||||
/* | /* | ||||
* The name space ID is the lun, save it for later I/O | * The name space ID is the lun, save it for later I/O | ||||
*/ | */ | ||||
softc->nsid = (uint32_t)xpt_path_lun_id(periph->path); | softc->nsid = (uint32_t)xpt_path_lun_id(periph->path); | ||||
▲ Show 20 Lines • Show All 419 Lines • Show Last 20 Lines |