Changeset View
Changeset View
Standalone View
Standalone View
sys/cam/mmc/mmc_da.c
Show First 20 Lines • Show All 679 Lines • ▼ Show 20 Lines | |||||
{ | { | ||||
struct sdda_softc *softc; | struct sdda_softc *softc; | ||||
struct ccb_pathinq cpi; | struct ccb_pathinq cpi; | ||||
struct ccb_getdev cgd; | struct ccb_getdev cgd; | ||||
u_int maxio; | u_int maxio; | ||||
softc = (struct sdda_softc*) periph->softc; | softc = (struct sdda_softc*) periph->softc; | ||||
bzero(&cpi, sizeof(cpi)); | xpt_path_inq(&cpi, periph->path); | ||||
xpt_setup_ccb(&cpi.ccb_h, periph->path, CAM_PRIORITY_NONE); | |||||
cpi.ccb_h.func_code = XPT_PATH_INQ; | |||||
xpt_action((union ccb *)&cpi); | |||||
bzero(&cgd, sizeof(cgd)); | bzero(&cgd, sizeof(cgd)); | ||||
xpt_setup_ccb(&cgd.ccb_h, periph->path, CAM_PRIORITY_NONE); | xpt_setup_ccb(&cgd.ccb_h, periph->path, CAM_PRIORITY_NONE); | ||||
cpi.ccb_h.func_code = XPT_GDEV_TYPE; | cpi.ccb_h.func_code = XPT_GDEV_TYPE; | ||||
xpt_action((union ccb *)&cgd); | xpt_action((union ccb *)&cgd); | ||||
/* | /* | ||||
* Register this media as a disk | * Register this media as a disk | ||||
▲ Show 20 Lines • Show All 731 Lines • Show Last 20 Lines |