1 /* 2 * This file is in the public domain. 3 * $FreeBSD: src/sys/cam/scsi/scsi_message.h,v 1.2 2000/05/01 20:21:29 peter Exp $ 4 */ 5 6 /* Identify message */ /* M/M */ 7 #define MSG_IDENTIFYFLAG 0x80 8 #define MSG_IDENTIFY_DISCFLAG 0x40 9 #define MSG_IDENTIFY(lun, disc) (((disc) ? 0xc0 : MSG_IDENTIFYFLAG) | (lun)) 10 #define MSG_ISIDENTIFY(m) ((m) & MSG_IDENTIFYFLAG) 11 #define MSG_IDENTIFY_LUNMASK 0x3F 12 13 /* Extended messages (opcode and length) */ 14 #define MSG_EXT_SDTR_LEN 0x03 15 16 #define MSG_EXT_WDTR_LEN 0x02 17 #define MSG_EXT_WDTR_BUS_8_BIT 0x00 18 #define MSG_EXT_WDTR_BUS_16_BIT 0x01 19 #define MSG_EXT_WDTR_BUS_32_BIT 0x02 /* Deprecated in SPI3 */ 20 21 #define MSG_EXT_PPR_LEN 0x06 22 #define MSG_EXT_PPR_PCOMP_EN 0x80 23 #define MSG_EXT_PPR_RTI 0x40 24 #define MSG_EXT_PPR_RD_STRM 0x20 25 #define MSG_EXT_PPR_WR_FLOW 0x10 26 #define MSG_EXT_PPR_HOLD_MCS 0x08 27 #define MSG_EXT_PPR_QAS_REQ 0x04 28 #define MSG_EXT_PPR_DT_REQ 0x02 29 #define MSG_EXT_PPR_IU_REQ 0x01 30