Changeset View
Changeset View
Standalone View
Standalone View
head/sys/cam/cam_xpt.c
Show First 20 Lines • Show All 547 Lines • ▼ Show 20 Lines | case XPT_DEV_MATCH: { | ||||
inccb->ccb_h.path = xpt_periph->path; | inccb->ccb_h.path = xpt_periph->path; | ||||
bzero(&mapinfo, sizeof(mapinfo)); | bzero(&mapinfo, sizeof(mapinfo)); | ||||
/* | /* | ||||
* Map the pattern and match buffers into kernel | * Map the pattern and match buffers into kernel | ||||
* virtual address space. | * virtual address space. | ||||
*/ | */ | ||||
error = cam_periph_mapmem(inccb, &mapinfo, MAXPHYS); | error = cam_periph_mapmem(inccb, &mapinfo, maxphys); | ||||
if (error) { | if (error) { | ||||
inccb->ccb_h.path = old_path; | inccb->ccb_h.path = old_path; | ||||
break; | break; | ||||
} | } | ||||
/* | /* | ||||
* This is an immediate CCB, we can send it on directly. | * This is an immediate CCB, we can send it on directly. | ||||
▲ Show 20 Lines • Show All 5,022 Lines • Show Last 20 Lines |