xref: /linux/drivers/scsi/aic7xxx/scsi_message.h (revision 2a2dfc869d3345ccdd91322b023f4b0da84acbe7)
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 /* Messages (1 byte) */		     /* I/T (M)andatory or (O)ptional */
7 #define MSG_SAVEDATAPOINTER	0x02 /* O/O */
8 #define MSG_RESTOREPOINTERS	0x03 /* O/O */
9 #define MSG_DISCONNECT		0x04 /* O/O */
10 #define MSG_MESSAGE_REJECT	0x07 /* M/M */
11 #define MSG_NOOP		0x08 /* M/M */
12 
13 /* Messages (2 byte) */
14 #define MSG_SIMPLE_Q_TAG	0x20 /* O/O */
15 #define MSG_IGN_WIDE_RESIDUE	0x23 /* O/O */
16 
17 /* Identify message */		     /* M/M */
18 #define MSG_IDENTIFYFLAG	0x80
19 #define MSG_IDENTIFY_DISCFLAG	0x40
20 #define MSG_IDENTIFY(lun, disc)	(((disc) ? 0xc0 : MSG_IDENTIFYFLAG) | (lun))
21 #define MSG_ISIDENTIFY(m)	((m) & MSG_IDENTIFYFLAG)
22 #define MSG_IDENTIFY_LUNMASK	0x3F
23 
24 /* Extended messages (opcode and length) */
25 #define MSG_EXT_SDTR_LEN	0x03
26 
27 #define MSG_EXT_WDTR_LEN	0x02
28 #define MSG_EXT_WDTR_BUS_8_BIT	0x00
29 #define MSG_EXT_WDTR_BUS_16_BIT	0x01
30 #define MSG_EXT_WDTR_BUS_32_BIT	0x02 /* Deprecated in SPI3 */
31 
32 #define MSG_EXT_PPR_LEN		0x06
33 #define	MSG_EXT_PPR_PCOMP_EN	0x80
34 #define	MSG_EXT_PPR_RTI		0x40
35 #define	MSG_EXT_PPR_RD_STRM	0x20
36 #define	MSG_EXT_PPR_WR_FLOW	0x10
37 #define	MSG_EXT_PPR_HOLD_MCS	0x08
38 #define	MSG_EXT_PPR_QAS_REQ	0x04
39 #define	MSG_EXT_PPR_DT_REQ	0x02
40 #define MSG_EXT_PPR_IU_REQ	0x01
41