Changeset View
Changeset View
Standalone View
Standalone View
sys/cam/scsi/scsi_pt.c
Show First 20 Lines • Show All 565 Lines • ▼ Show 20 Lines | |||||
pterror(union ccb *ccb, u_int32_t cam_flags, u_int32_t sense_flags) | pterror(union ccb *ccb, u_int32_t cam_flags, u_int32_t sense_flags) | ||||
{ | { | ||||
struct pt_softc *softc; | struct pt_softc *softc; | ||||
struct cam_periph *periph; | struct cam_periph *periph; | ||||
periph = xpt_path_periph(ccb->ccb_h.path); | periph = xpt_path_periph(ccb->ccb_h.path); | ||||
softc = (struct pt_softc *)periph->softc; | softc = (struct pt_softc *)periph->softc; | ||||
return(cam_periph_error(ccb, cam_flags, sense_flags, | return(cam_periph_error(ccb, cam_flags, sense_flags)); | ||||
&softc->saved_ccb)); | |||||
} | } | ||||
static int | static int | ||||
ptioctl(struct cdev *dev, u_long cmd, caddr_t addr, int flag, struct thread *td) | ptioctl(struct cdev *dev, u_long cmd, caddr_t addr, int flag, struct thread *td) | ||||
{ | { | ||||
struct cam_periph *periph; | struct cam_periph *periph; | ||||
struct pt_softc *softc; | struct pt_softc *softc; | ||||
int error = 0; | int error = 0; | ||||
▲ Show 20 Lines • Show All 58 Lines • Show Last 20 Lines |