Changeset View
Changeset View
Standalone View
Standalone View
sys/cam/mmc/mmc_da.c
Show First 20 Lines • Show All 706 Lines • ▼ Show 20 Lines | && status != CAM_REQ_INPROG) | ||||
printf("sddaasync: Unable to attach to new device " | printf("sddaasync: Unable to attach to new device " | ||||
"due to status 0x%x\n", status); | "due to status 0x%x\n", status); | ||||
break; | break; | ||||
} | } | ||||
case AC_GETDEV_CHANGED: | case AC_GETDEV_CHANGED: | ||||
{ | { | ||||
CAM_DEBUG(path, CAM_DEBUG_TRACE, ("=> AC_GETDEV_CHANGED\n")); | CAM_DEBUG(path, CAM_DEBUG_TRACE, ("=> AC_GETDEV_CHANGED\n")); | ||||
softc = (struct sdda_softc *)periph->softc; | softc = (struct sdda_softc *)periph->softc; | ||||
memset(&cgd, 0, sizeof(cgd)); | |||||
xpt_setup_ccb(&cgd.ccb_h, periph->path, CAM_PRIORITY_NORMAL); | xpt_setup_ccb(&cgd.ccb_h, periph->path, CAM_PRIORITY_NORMAL); | ||||
cgd.ccb_h.func_code = XPT_GDEV_TYPE; | cgd.ccb_h.func_code = XPT_GDEV_TYPE; | ||||
xpt_action((union ccb *)&cgd); | xpt_action((union ccb *)&cgd); | ||||
cam_periph_async(periph, code, path, arg); | cam_periph_async(periph, code, path, arg); | ||||
break; | break; | ||||
} | } | ||||
case AC_ADVINFO_CHANGED: | case AC_ADVINFO_CHANGED: | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 1,304 Lines • Show Last 20 Lines |