Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/firewire/sbp.c
Show First 20 Lines • Show All 2,267 Lines • ▼ Show 20 Lines | |||||
#endif | #endif | ||||
} | } | ||||
} | } | ||||
static void | static void | ||||
sbp_action(struct cam_sim *sim, union ccb *ccb) | sbp_action(struct cam_sim *sim, union ccb *ccb) | ||||
{ | { | ||||
struct sbp_softc *sbp = (struct sbp_softc *)sim->softc; | struct sbp_softc *sbp = cam_sim_softc(sim); | ||||
struct sbp_target *target = NULL; | struct sbp_target *target = NULL; | ||||
struct sbp_dev *sdev = NULL; | struct sbp_dev *sdev = NULL; | ||||
if (sbp != NULL) | if (sbp != NULL) | ||||
SBP_LOCK_ASSERT(sbp); | SBP_LOCK_ASSERT(sbp); | ||||
/* target:lun -> sdev mapping */ | /* target:lun -> sdev mapping */ | ||||
if (sbp != NULL | if (sbp != NULL | ||||
&& ccb->ccb_h.target_id != CAM_TARGET_WILDCARD | && ccb->ccb_h.target_id != CAM_TARGET_WILDCARD | ||||
▲ Show 20 Lines • Show All 342 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
static void | static void | ||||
sbp_poll(struct cam_sim *sim) | sbp_poll(struct cam_sim *sim) | ||||
{ | { | ||||
struct sbp_softc *sbp; | struct sbp_softc *sbp; | ||||
struct firewire_comm *fc; | struct firewire_comm *fc; | ||||
sbp = (struct sbp_softc *)sim->softc; | sbp = cam_sim_softc(sim); | ||||
fc = sbp->fd.fc; | fc = sbp->fd.fc; | ||||
fc->poll(fc, 0, -1); | fc->poll(fc, 0, -1); | ||||
return; | return; | ||||
} | } | ||||
static struct sbp_ocb * | static struct sbp_ocb * | ||||
▲ Show 20 Lines • Show All 212 Lines • Show Last 20 Lines |