From a18208654b6d0a3b0e1baf1244af1fb49ff5a212 Mon Sep 17 00:00:00 2001 From: gibbs Date: Fri, 5 Mar 1999 23:13:20 +0000 Subject: [PATCH] Add constants and macros for dealing with XPT opcode group types. --- sys/cam/cam_ccb.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/sys/cam/cam_ccb.h b/sys/cam/cam_ccb.h index aaf267056b9f..5c04dfa02634 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;