\hypertarget{scsi__message_8h_source}{}\doxysection{scsi\+\_\+message.\+h}
\label{scsi__message_8h_source}\index{cam/scsi/scsi\_message.h@{cam/scsi/scsi\_message.h}}
\mbox{\hyperlink{scsi__message_8h}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00001}00001 \textcolor{comment}{/*-\/}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00002}00002 \textcolor{comment}{ * This file is in the public domain.}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00003}00003 \textcolor{comment}{ * \$FreeBSD\$}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00004}00004 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00005}00005 }
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00006}00006 \textcolor{comment}{/* Messages (1 byte) */}              \textcolor{comment}{/* I/T (M)andatory or (O)ptional */}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00007}\mbox{\hyperlink{scsi__message_8h_a7905823f62e2d26f29f9bfdd93a39695}{00007}} \textcolor{preprocessor}{\#define MSG\_CMDCOMPLETE         0x00 }\textcolor{comment}{/* M/M */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00008}\mbox{\hyperlink{scsi__message_8h_aa00a9de5988d40cfa4f9259b245e2bbe}{00008}} \textcolor{preprocessor}{\#define MSG\_TASK\_COMPLETE       0x00 }\textcolor{comment}{/* M/M */}\textcolor{preprocessor}{ }\textcolor{comment}{/* SPI3 Terminology */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00009}\mbox{\hyperlink{scsi__message_8h_a64e6344838e73f0746ae152c10efd31e}{00009}} \textcolor{preprocessor}{\#define MSG\_EXTENDED            0x01 }\textcolor{comment}{/* O/O */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00010}\mbox{\hyperlink{scsi__message_8h_aeee3d6d73b560feb176675ae2c951bc9}{00010}} \textcolor{preprocessor}{\#define MSG\_SAVEDATAPOINTER     0x02 }\textcolor{comment}{/* O/O */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00011}\mbox{\hyperlink{scsi__message_8h_ab51c9d23deac036f792f2267deb36117}{00011}} \textcolor{preprocessor}{\#define MSG\_RESTOREPOINTERS     0x03 }\textcolor{comment}{/* O/O */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00012}\mbox{\hyperlink{scsi__message_8h_a355d150dadd54b3f7c2a53b9fd9d6f3e}{00012}} \textcolor{preprocessor}{\#define MSG\_DISCONNECT          0x04 }\textcolor{comment}{/* O/O */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00013}\mbox{\hyperlink{scsi__message_8h_ae55cd58a473226a3f45e7554796429bf}{00013}} \textcolor{preprocessor}{\#define MSG\_INITIATOR\_DET\_ERR   0x05 }\textcolor{comment}{/* M/M */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00014}\mbox{\hyperlink{scsi__message_8h_a95b0633436455d343766edea616370eb}{00014}} \textcolor{preprocessor}{\#define MSG\_ABORT               0x06 }\textcolor{comment}{/* O/M */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00015}\mbox{\hyperlink{scsi__message_8h_a250130a16e0cb6ff79d9a056fee92ed5}{00015}} \textcolor{preprocessor}{\#define MSG\_ABORT\_TASK\_SET      0x06 }\textcolor{comment}{/* O/M */}\textcolor{preprocessor}{ }\textcolor{comment}{/* SPI3 Terminology */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00016}\mbox{\hyperlink{scsi__message_8h_aa9890c67e95fc5079365dc60ed6660f0}{00016}} \textcolor{preprocessor}{\#define MSG\_MESSAGE\_REJECT      0x07 }\textcolor{comment}{/* M/M */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00017}\mbox{\hyperlink{scsi__message_8h_a7c34a2b91fee37875d5aa30756242aa1}{00017}} \textcolor{preprocessor}{\#define MSG\_NOOP                0x08 }\textcolor{comment}{/* M/M */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00018}\mbox{\hyperlink{scsi__message_8h_aad6e4ab96099187efd38d7acf4f8029d}{00018}} \textcolor{preprocessor}{\#define MSG\_PARITY\_ERROR        0x09 }\textcolor{comment}{/* M/M */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00019}\mbox{\hyperlink{scsi__message_8h_ae69536f23715157b8f496fce406cddc2}{00019}} \textcolor{preprocessor}{\#define MSG\_LINK\_CMD\_COMPLETE   0x0a }\textcolor{comment}{/* O/O */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00020}\mbox{\hyperlink{scsi__message_8h_a04af9d5931e487b0c7dc26cbff840ed6}{00020}} \textcolor{preprocessor}{\#define MSG\_LINK\_CMD\_COMPLETEF  0x0b }\textcolor{comment}{/* O/O */}\textcolor{preprocessor}{ }\textcolor{comment}{/* Obsolete */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00021}\mbox{\hyperlink{scsi__message_8h_aaa6b6106a52d055bf9d2af254edd9416}{00021}} \textcolor{preprocessor}{\#define MSG\_BUS\_DEV\_RESET       0x0c }\textcolor{comment}{/* O/M */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00022}\mbox{\hyperlink{scsi__message_8h_a3de1923f133df158c528677b9dd008b3}{00022}} \textcolor{preprocessor}{\#define MSG\_TARGET\_RESET        0x0c }\textcolor{comment}{/* O/M */}\textcolor{preprocessor}{ }\textcolor{comment}{/* SPI3 Terminology */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00023}\mbox{\hyperlink{scsi__message_8h_a52980406e3815c9708efc382433c0d6a}{00023}} \textcolor{preprocessor}{\#define MSG\_ABORT\_TAG           0x0d }\textcolor{comment}{/* O/O */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00024}\mbox{\hyperlink{scsi__message_8h_abb38af4ad3b06c935d5ee78115a6aeb3}{00024}} \textcolor{preprocessor}{\#define MSG\_ABORT\_TASK          0x0d }\textcolor{comment}{/* O/O */}\textcolor{preprocessor}{ }\textcolor{comment}{/* SPI3 Terminology */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00025}\mbox{\hyperlink{scsi__message_8h_a20b0272c1a1ca2d7891a8660b1c2c39d}{00025}} \textcolor{preprocessor}{\#define MSG\_CLEAR\_QUEUE         0x0e }\textcolor{comment}{/* O/O */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00026}\mbox{\hyperlink{scsi__message_8h_a5d392ef2df0195466012fa6b32ea6857}{00026}} \textcolor{preprocessor}{\#define MSG\_CLEAR\_TASK\_SET      0x0e }\textcolor{comment}{/* O/O */}\textcolor{preprocessor}{ }\textcolor{comment}{/* SPI3 Terminology */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00027}\mbox{\hyperlink{scsi__message_8h_ae2094d550dd9fc37a09e6ff64647c23c}{00027}} \textcolor{preprocessor}{\#define MSG\_INIT\_RECOVERY       0x0f }\textcolor{comment}{/* O/O */}\textcolor{preprocessor}{ }\textcolor{comment}{/* Deprecated in SPI3 */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00028}\mbox{\hyperlink{scsi__message_8h_a04fd1bba41a44f44160f61a8e29e134c}{00028}} \textcolor{preprocessor}{\#define MSG\_REL\_RECOVERY        0x10 }\textcolor{comment}{/* O/O */}\textcolor{preprocessor}{ }\textcolor{comment}{/* Deprecated in SPI3 */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00029}\mbox{\hyperlink{scsi__message_8h_a6fc480b8846897c650ca9ca1b79bcb4b}{00029}} \textcolor{preprocessor}{\#define MSG\_TERM\_IO\_PROC        0x11 }\textcolor{comment}{/* O/O */}\textcolor{preprocessor}{ }\textcolor{comment}{/* Deprecated in SPI3 */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00030}\mbox{\hyperlink{scsi__message_8h_aa728aa863d446f0b9c602a09af26b1a2}{00030}} \textcolor{preprocessor}{\#define MSG\_CLEAR\_ACA           0x16 }\textcolor{comment}{/* O/O */}\textcolor{preprocessor}{ }\textcolor{comment}{/* SPI3 */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00031}\mbox{\hyperlink{scsi__message_8h_a894e30819a8a3e1b27b528c3a95e0b9d}{00031}} \textcolor{preprocessor}{\#define MSG\_LOGICAL\_UNIT\_RESET  0x17 }\textcolor{comment}{/* O/O */}\textcolor{preprocessor}{ }\textcolor{comment}{/* SPI3 */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00032}\mbox{\hyperlink{scsi__message_8h_ad089d8faab104b590ab8c931f16e43c6}{00032}} \textcolor{preprocessor}{\#define MSG\_QAS\_REQUEST         0x55 }\textcolor{comment}{/* O/O */}\textcolor{preprocessor}{ }\textcolor{comment}{/* SPI3 */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00033}00033 }
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00034}00034 \textcolor{comment}{/* Messages (2 byte) */}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00035}\mbox{\hyperlink{scsi__message_8h_ac500601f6c78c28499b430fd47f2aa17}{00035}} \textcolor{preprocessor}{\#define MSG\_SIMPLE\_Q\_TAG        0x20 }\textcolor{comment}{/* O/O */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00036}\mbox{\hyperlink{scsi__message_8h_a3c31e9401c276bb7ecc43fb8d2c5de67}{00036}} \textcolor{preprocessor}{\#define MSG\_SIMPLE\_TASK         0x20 }\textcolor{comment}{/* O/O */}\textcolor{preprocessor}{ }\textcolor{comment}{/* SPI3 Terminology */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00037}\mbox{\hyperlink{scsi__message_8h_aa7f9b058b3f41e06d082e442cb4eeda8}{00037}} \textcolor{preprocessor}{\#define MSG\_HEAD\_OF\_Q\_TAG       0x21 }\textcolor{comment}{/* O/O */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00038}\mbox{\hyperlink{scsi__message_8h_a13f8827945d80f877597df7c64adaeb5}{00038}} \textcolor{preprocessor}{\#define MSG\_HEAD\_OF\_QUEUE\_TASK  0x21 }\textcolor{comment}{/* O/O */}\textcolor{preprocessor}{ }\textcolor{comment}{/* SPI3 Terminology */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00039}\mbox{\hyperlink{scsi__message_8h_a13dcb777c2e76acf3ba04167a978da06}{00039}} \textcolor{preprocessor}{\#define MSG\_ORDERED\_Q\_TAG       0x22 }\textcolor{comment}{/* O/O */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00040}\mbox{\hyperlink{scsi__message_8h_a75971b6824406c86e129a974a84a36f7}{00040}} \textcolor{preprocessor}{\#define MSG\_ORDERED\_TASK        0x22 }\textcolor{comment}{/* O/O */}\textcolor{preprocessor}{ }\textcolor{comment}{/* SPI3 Terminology */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00041}\mbox{\hyperlink{scsi__message_8h_abcd008ea78daa26951dde835321ba45d}{00041}} \textcolor{preprocessor}{\#define MSG\_IGN\_WIDE\_RESIDUE    0x23 }\textcolor{comment}{/* O/O */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00042}\mbox{\hyperlink{scsi__message_8h_a69866587050c755d4ffdc468a9bc021a}{00042}} \textcolor{preprocessor}{\#define MSG\_ACA\_TASK            0x24 }\textcolor{comment}{/* 0/0 */}\textcolor{preprocessor}{ }\textcolor{comment}{/* SPI3 */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00043}00043 }
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00044}00044 \textcolor{comment}{/* Identify message */}               \textcolor{comment}{/* M/M */}  }
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00045}\mbox{\hyperlink{scsi__message_8h_ac21a8769f70c3ac2015a17288541893f}{00045}} \textcolor{preprocessor}{\#define MSG\_IDENTIFYFLAG        0x80 }}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00046}\mbox{\hyperlink{scsi__message_8h_ab9e997f4bf9ebc5dddaca0394bf701c5}{00046}} \textcolor{preprocessor}{\#define MSG\_IDENTIFY\_DISCFLAG   0x40 }}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00047}\mbox{\hyperlink{scsi__message_8h_aac7dca36c722153bb1b25a184bd7a3dc}{00047}} \textcolor{preprocessor}{\#define MSG\_IDENTIFY(lun, disc) (((disc) ? 0xc0 : MSG\_IDENTIFYFLAG) | (lun))}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00048}\mbox{\hyperlink{scsi__message_8h_afa274f0111d74c5fcfecbe0503f8bc0e}{00048}} \textcolor{preprocessor}{\#define MSG\_ISIDENTIFY(m)       ((m) \& MSG\_IDENTIFYFLAG)}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00049}\mbox{\hyperlink{scsi__message_8h_a05a40c1034f9ce24b85d5d434e36daaf}{00049}} \textcolor{preprocessor}{\#define MSG\_IDENTIFY\_LUNMASK    0x3F }}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00050}00050 }
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00051}00051 \textcolor{comment}{/* Extended messages (opcode and length) */}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00052}\mbox{\hyperlink{scsi__message_8h_a542b8ed1505204f94eb627c2ff0bb91b}{00052}} \textcolor{preprocessor}{\#define MSG\_EXT\_SDTR            0x01}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00053}\mbox{\hyperlink{scsi__message_8h_a8302f70bd0d0eff4d79240453c437f09}{00053}} \textcolor{preprocessor}{\#define MSG\_EXT\_SDTR\_LEN        0x03}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00054}00054 }
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00055}\mbox{\hyperlink{scsi__message_8h_a23dd14c0830e113ddb26a2d7952aeb1c}{00055}} \textcolor{preprocessor}{\#define MSG\_EXT\_WDTR            0x03}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00056}\mbox{\hyperlink{scsi__message_8h_add0d891cd6c3a85b656bc353eeae667a}{00056}} \textcolor{preprocessor}{\#define MSG\_EXT\_WDTR\_LEN        0x02}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00057}\mbox{\hyperlink{scsi__message_8h_afc534a08698aacad145dc5b22b6efbb9}{00057}} \textcolor{preprocessor}{\#define MSG\_EXT\_WDTR\_BUS\_8\_BIT  0x00}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00058}\mbox{\hyperlink{scsi__message_8h_abad4d4d95e5d11a45259b62a7f78e77c}{00058}} \textcolor{preprocessor}{\#define MSG\_EXT\_WDTR\_BUS\_16\_BIT 0x01}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00059}\mbox{\hyperlink{scsi__message_8h_a8f0cc4aff37ced11d4c542228c85394c}{00059}} \textcolor{preprocessor}{\#define MSG\_EXT\_WDTR\_BUS\_32\_BIT 0x02 }\textcolor{comment}{/* Deprecated in SPI3 */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00060}00060 }
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00061}\mbox{\hyperlink{scsi__message_8h_a4f3ac4d8406543e52aa86936abde333b}{00061}} \textcolor{preprocessor}{\#define MSG\_EXT\_PPR             0x04 }\textcolor{comment}{/* SPI3/SPI4 */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00062}\mbox{\hyperlink{scsi__message_8h_a5791899c2cd7cfb47864687cfe8d3081}{00062}} \textcolor{preprocessor}{\#define MSG\_EXT\_PPR\_LEN         0x06}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00063}\mbox{\hyperlink{scsi__message_8h_ad13e4207f198045174558e4f89549d6e}{00063}} \textcolor{preprocessor}{\#define MSG\_EXT\_PPR\_PCOMP\_EN    0x80}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00064}\mbox{\hyperlink{scsi__message_8h_a4829feaeb4d40259b5aa2348ac17cf17}{00064}} \textcolor{preprocessor}{\#define MSG\_EXT\_PPR\_RTI         0x40}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00065}\mbox{\hyperlink{scsi__message_8h_aa0ee0083c129b794f92b2028d711b603}{00065}} \textcolor{preprocessor}{\#define MSG\_EXT\_PPR\_RD\_STRM     0x20}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00066}\mbox{\hyperlink{scsi__message_8h_a152f30fddc78f702c6bf3f2f5a8bee18}{00066}} \textcolor{preprocessor}{\#define MSG\_EXT\_PPR\_WR\_FLOW     0x10}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00067}\mbox{\hyperlink{scsi__message_8h_a5f016b4ebc5e03b0e111c6e5719832d9}{00067}} \textcolor{preprocessor}{\#define MSG\_EXT\_PPR\_HOLD\_MCS    0x08}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00068}\mbox{\hyperlink{scsi__message_8h_a0fd6e00ea14baf0ee4ce159c59639da9}{00068}} \textcolor{preprocessor}{\#define MSG\_EXT\_PPR\_QAS\_REQ     0x04}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00069}\mbox{\hyperlink{scsi__message_8h_a5c61ea4b6ae537490c3986bc68a8a552}{00069}} \textcolor{preprocessor}{\#define MSG\_EXT\_PPR\_DT\_REQ      0x02}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00070}\mbox{\hyperlink{scsi__message_8h_a4759c2abb413cc017400b6f7aa1d1a74}{00070}} \textcolor{preprocessor}{\#define MSG\_EXT\_PPR\_IU\_REQ      0x01}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00071}00071 }
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00072}00072 \textcolor{comment}{/* Fake messages not defined for SPI, but needed for other transports */}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00073}\mbox{\hyperlink{scsi__message_8h_a166a97bc4f46b08a484040313c13a888}{00073}} \textcolor{preprocessor}{\#define MSG\_QUERY\_TASK          0x100}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00074}\mbox{\hyperlink{scsi__message_8h_a4f77838b97aa9751437a8a8aca4712c3}{00074}} \textcolor{preprocessor}{\#define MSG\_QUERY\_TASK\_SET      0x101}}
\DoxyCodeLine{\Hypertarget{scsi__message_8h_source_l00075}\mbox{\hyperlink{scsi__message_8h_a5c5a48f67bfcc139355629f76d5a3585}{00075}} \textcolor{preprocessor}{\#define MSG\_QUERY\_ASYNC\_EVENT   0x102}}

\end{DoxyCode}
