diff options
author | Dave Jiang <dave.jiang@intel.com> | 2011-05-04 20:53:24 -0400 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2011-07-03 07:04:46 -0400 |
commit | af5ae89350840b9d724fc4fb81d928673bffdd4d (patch) | |
tree | 954d27adccdce854c040442fd44d28571924ee13 /drivers/scsi/isci/task.h | |
parent | 0cfa890e5a8a9e3b01b75c17a7856cf96e026e27 (diff) |
isci: Convert of sci_ssp_response_iu to ssp_response_iu
Converting to Linux native format. However the isci driver does a lot of
the calculation based on the max size of this data structure and the
Linux data structure only has a pointer to the response data. Thus the
sizeof(struct ssp_response_iu) will be incorrect and we need to define
the max size.
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/task.h')
-rw-r--r-- | drivers/scsi/isci/task.h | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/drivers/scsi/isci/task.h b/drivers/scsi/isci/task.h index c5afd1cfbde7..77cc54dbe81f 100644 --- a/drivers/scsi/isci/task.h +++ b/drivers/scsi/isci/task.h | |||
@@ -99,7 +99,7 @@ struct isci_tmf { | |||
99 | struct completion *complete; | 99 | struct completion *complete; |
100 | enum sas_protocol proto; | 100 | enum sas_protocol proto; |
101 | union { | 101 | union { |
102 | struct sci_ssp_response_iu resp_iu; | 102 | struct ssp_response_iu resp_iu; |
103 | struct dev_to_host_fis d2h_fis; | 103 | struct dev_to_host_fis d2h_fis; |
104 | } resp; | 104 | } resp; |
105 | unsigned char lun[8]; | 105 | unsigned char lun[8]; |
@@ -120,8 +120,7 @@ struct isci_tmf { | |||
120 | 120 | ||
121 | }; | 121 | }; |
122 | 122 | ||
123 | static inline void isci_print_tmf( | 123 | static inline void isci_print_tmf(struct isci_tmf *tmf) |
124 | struct isci_tmf *tmf) | ||
125 | { | 124 | { |
126 | if (SAS_PROTOCOL_SATA == tmf->proto) | 125 | if (SAS_PROTOCOL_SATA == tmf->proto) |
127 | dev_dbg(&tmf->device->isci_port->isci_host->pdev->dev, | 126 | dev_dbg(&tmf->device->isci_port->isci_host->pdev->dev, |
@@ -144,16 +143,13 @@ static inline void isci_print_tmf( | |||
144 | "tmf->resp.resp_iu.data[3] = %x\n", | 143 | "tmf->resp.resp_iu.data[3] = %x\n", |
145 | __func__, | 144 | __func__, |
146 | tmf->status, | 145 | tmf->status, |
147 | tmf->resp.resp_iu.data_present, | 146 | tmf->resp.resp_iu.datapres, |
148 | tmf->resp.resp_iu.status, | 147 | tmf->resp.resp_iu.status, |
149 | (tmf->resp.resp_iu.response_data_length[0] << 24) + | 148 | be32_to_cpu(tmf->resp.resp_iu.response_data_len), |
150 | (tmf->resp.resp_iu.response_data_length[1] << 16) + | 149 | tmf->resp.resp_iu.resp_data[0], |
151 | (tmf->resp.resp_iu.response_data_length[2] << 8) + | 150 | tmf->resp.resp_iu.resp_data[1], |
152 | tmf->resp.resp_iu.response_data_length[3], | 151 | tmf->resp.resp_iu.resp_data[2], |
153 | tmf->resp.resp_iu.data[0], | 152 | tmf->resp.resp_iu.resp_data[3]); |
154 | tmf->resp.resp_iu.data[1], | ||
155 | tmf->resp.resp_iu.data[2], | ||
156 | tmf->resp.resp_iu.data[3]); | ||
157 | } | 153 | } |
158 | 154 | ||
159 | 155 | ||