Changeset View
Changeset View
Standalone View
Standalone View
sys/cam/ata/ata_da.c
Show First 20 Lines • Show All 1,720 Lines • ▼ Show 20 Lines | match = cam_quirkmatch((caddr_t)&cgd->ident_data, | ||||
(caddr_t)ada_quirk_table, | (caddr_t)ada_quirk_table, | ||||
nitems(ada_quirk_table), | nitems(ada_quirk_table), | ||||
sizeof(*ada_quirk_table), ata_identify_match); | sizeof(*ada_quirk_table), ata_identify_match); | ||||
if (match != NULL) | if (match != NULL) | ||||
softc->quirks = ((struct ada_quirk_entry *)match)->quirks; | softc->quirks = ((struct ada_quirk_entry *)match)->quirks; | ||||
else | else | ||||
softc->quirks = ADA_Q_NONE; | softc->quirks = ADA_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, adasysctlinit, periph); | TASK_INIT(&softc->sysctl_task, 0, adasysctlinit, periph); | ||||
/* | /* | ||||
* Register this media as a disk | * Register this media as a disk | ||||
*/ | */ | ||||
(void)cam_periph_hold(periph, PRIBIO); | (void)cam_periph_hold(periph, PRIBIO); | ||||
cam_periph_unlock(periph); | cam_periph_unlock(periph); | ||||
▲ Show 20 Lines • Show All 1,849 Lines • Show Last 20 Lines |