aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/isci/sas.h
diff options
context:
space:
mode:
authorDave Jiang <dave.jiang@intel.com>2011-05-04 20:44:54 -0400
committerDan Williams <dan.j.williams@intel.com>2011-07-03 07:04:46 -0400
commit0cfa890e5a8a9e3b01b75c17a7856cf96e026e27 (patch)
treee9d6edb440c8a6e4ffcc349b97e8133e6f96f02e /drivers/scsi/isci/sas.h
parented0e24830e7b744d0d0ae5936740f1cdbd0ec5ba (diff)
isci: Fixup SSP command IU and task IU
Fixup of SSP command IU and SSP task IU to something that looks like Linux Signed-off-by: Dave Jiang <dave.jiang@intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/scsi/isci/sas.h')
-rw-r--r--drivers/scsi/isci/sas.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/drivers/scsi/isci/sas.h b/drivers/scsi/isci/sas.h
index 05af8bd61453..21ddd63924eb 100644
--- a/drivers/scsi/isci/sas.h
+++ b/drivers/scsi/isci/sas.h
@@ -69,4 +69,38 @@
69#define FIS_PIO_SETUP 0x5F 69#define FIS_PIO_SETUP 0x5F
70#define FIS_DATA 0x46 70#define FIS_DATA 0x46
71 71
72/*
73 * contents of the SSP COMMAND INFORMATION UNIT.
74 * For specific information on each of these individual fields please
75 * reference the SAS specification SSP transport layer section.
76 * XXX: This needs to go into <scsi/sas.h>
77 */
78struct ssp_cmd_iu {
79 u8 LUN[8];
80 u8 add_cdb_len:6;
81 u8 _r_a:2;
82 u8 _r_b;
83 u8 en_fburst:1;
84 u8 task_prio:4;
85 u8 task_attr:3;
86 u8 _r_c;
87
88 u8 cdb[16];
89} __packed;
90
91/*
92 * contents of the SSP TASK INFORMATION UNIT.
93 * For specific information on each of these individual fields please
94 * reference the SAS specification SSP transport layer section.
95 * XXX: This needs to go into <scsi/sas.h>
96 */
97struct ssp_task_iu {
98 u8 LUN[8];
99 u8 _r_a;
100 u8 task_func;
101 u8 _r_b[4];
102 u16 task_tag;
103 u8 _r_c[12];
104} __packed;
105
72#endif 106#endif