summaryrefslogtreecommitdiff
path: root/sys/cam/cam_ccb.h
diff options
context:
space:
mode:
authorScott Long <scottl@FreeBSD.org>2013-06-29 17:48:59 +0000
committerScott Long <scottl@FreeBSD.org>2013-06-29 17:48:59 +0000
commite64112de609c75e4cf901074c0e2514ed62cc4ce (patch)
treee21e0f093906eedd25a01baceee2f91655b19513 /sys/cam/cam_ccb.h
parent8978a6a9da84b2e65ebd02ef2b5181d2735e4faf (diff)
downloadsrc-test2-e64112de609c75e4cf901074c0e2514ed62cc4ce.tar.gz
src-test2-e64112de609c75e4cf901074c0e2514ed62cc4ce.zip
Notes
Diffstat (limited to 'sys/cam/cam_ccb.h')
-rw-r--r--sys/cam/cam_ccb.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/sys/cam/cam_ccb.h b/sys/cam/cam_ccb.h
index 35296ce9ef1a..075ffd8dbc4b 100644
--- a/sys/cam/cam_ccb.h
+++ b/sys/cam/cam_ccb.h
@@ -1296,6 +1296,19 @@ cam_fill_smpio(struct ccb_smpio *smpio, uint32_t retries,
smpio->smp_response_len = smp_response_len;
}
+static __inline void
+cam_set_ccbstatus(union ccb *ccb, cam_status status)
+{
+ ccb->ccb_h.status &= ~CAM_STATUS_MASK;
+ ccb->ccb_h.status |= status;
+}
+
+static __inline cam_status
+cam_ccb_status(union ccb *ccb)
+{
+ return (ccb->ccb_h.status & CAM_STATUS_MASK);
+}
+
void cam_calc_geometry(struct ccb_calc_geometry *ccg, int extended);
__END_DECLS