diff options
author | gibbs <gibbs@FreeBSD.org> | 1999-03-05 23:13:20 +0000 |
---|---|---|
committer | gibbs <gibbs@FreeBSD.org> | 1999-03-05 23:13:20 +0000 |
commit | a18208654b6d0a3b0e1baf1244af1fb49ff5a212 (patch) | |
tree | 3dfc6b6b9b599697e93cfe8fbf2cb6338b3319a0 /sys/cam | |
parent | ffa58ceaa83ccb88f13869813a429c3cd31198c5 (diff) | |
download | FreeBSD-src-a18208654b6d0a3b0e1baf1244af1fb49ff5a212.zip FreeBSD-src-a18208654b6d0a3b0e1baf1244af1fb49ff5a212.tar.gz |
Add constants and macros for dealing with XPT opcode group types.
Diffstat (limited to 'sys/cam')
-rw-r--r-- | sys/cam/cam_ccb.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/cam/cam_ccb.h b/sys/cam/cam_ccb.h index aaf2670..5c04dfa 100644 --- a/sys/cam/cam_ccb.h +++ b/sys/cam/cam_ccb.h @@ -25,7 +25,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: cam_ccb.h,v 1.2 1998/10/15 23:17:35 gibbs Exp $ + * $Id: cam_ccb.h,v 1.3 1998/12/10 04:05:49 gibbs Exp $ */ #ifndef _CAM_CAM_CCB_H @@ -146,6 +146,14 @@ typedef enum { XPT_VUNIQUE = 0x80 } xpt_opcode; +#define XPT_OPCODE_GROUP_MASK 0xF0 +#define XPT_OPCODE_GROUP(op) ((op) & XPT_OPCODE_GROUP_MASK) +#define XPT_OPCODE_GROUP_COMMON 0x00 +#define XPT_OPCODE_GROUP_SCSI_CONTROL 0x10 +#define XPT_OPCODE_GROUP_HBA_ENGINE 0x20 +#define XPT_OPCODE_GROUP_TMODE 0x30 +#define XPT_OPCODE_GROUP_VENDOR_UNIQUE 0x80 + typedef union { LIST_ENTRY(ccb_hdr) le; SLIST_ENTRY(ccb_hdr) sle; |