summaryrefslogtreecommitdiffstats
path: root/freebsd/sys/cam/cam_ccb.h
diff options
context:
space:
mode:
Diffstat (limited to 'freebsd/sys/cam/cam_ccb.h')
-rw-r--r--freebsd/sys/cam/cam_ccb.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/freebsd/sys/cam/cam_ccb.h b/freebsd/sys/cam/cam_ccb.h
index d9b91f8d..99249f43 100644
--- a/freebsd/sys/cam/cam_ccb.h
+++ b/freebsd/sys/cam/cam_ccb.h
@@ -803,6 +803,13 @@ struct ccb_accept_tio {
struct scsi_sense_data sense_data;
};
+static __inline uint8_t *
+atio_cdb_ptr(struct ccb_accept_tio *ccb)
+{
+ return ((ccb->ccb_h.flags & CAM_CDB_POINTER) ?
+ ccb->cdb_io.cdb_ptr : ccb->cdb_io.cdb_bytes);
+}
+
/* Release SIM Queue */
struct ccb_relsim {
struct ccb_hdr ccb_h;