aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/ufs/ufs.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/ufs/ufs.h')
-rw-r--r--drivers/scsi/ufs/ufs.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/drivers/scsi/ufs/ufs.h b/drivers/scsi/ufs/ufs.h
index 721050090520..f42d1cee652a 100644
--- a/drivers/scsi/ufs/ufs.h
+++ b/drivers/scsi/ufs/ufs.h
@@ -196,9 +196,9 @@ enum {
196 * @dword_2: UPIU header DW-2 196 * @dword_2: UPIU header DW-2
197 */ 197 */
198struct utp_upiu_header { 198struct utp_upiu_header {
199 u32 dword_0; 199 __be32 dword_0;
200 u32 dword_1; 200 __be32 dword_1;
201 u32 dword_2; 201 __be32 dword_2;
202}; 202};
203 203
204/** 204/**
@@ -207,7 +207,7 @@ struct utp_upiu_header {
207 * @cdb: Command Descriptor Block CDB DW-4 to DW-7 207 * @cdb: Command Descriptor Block CDB DW-4 to DW-7
208 */ 208 */
209struct utp_upiu_cmd { 209struct utp_upiu_cmd {
210 u32 exp_data_transfer_len; 210 __be32 exp_data_transfer_len;
211 u8 cdb[MAX_CDB_SIZE]; 211 u8 cdb[MAX_CDB_SIZE];
212}; 212};
213 213
@@ -228,10 +228,10 @@ struct utp_upiu_query {
228 u8 idn; 228 u8 idn;
229 u8 index; 229 u8 index;
230 u8 selector; 230 u8 selector;
231 u16 reserved_osf; 231 __be16 reserved_osf;
232 u16 length; 232 __be16 length;
233 u32 value; 233 __be32 value;
234 u32 reserved[2]; 234 __be32 reserved[2];
235}; 235};
236 236
237/** 237/**
@@ -256,9 +256,9 @@ struct utp_upiu_req {
256 * @sense_data: Sense data field DW-8 to DW-12 256 * @sense_data: Sense data field DW-8 to DW-12
257 */ 257 */
258struct utp_cmd_rsp { 258struct utp_cmd_rsp {
259 u32 residual_transfer_count; 259 __be32 residual_transfer_count;
260 u32 reserved[4]; 260 __be32 reserved[4];
261 u16 sense_data_len; 261 __be16 sense_data_len;
262 u8 sense_data[18]; 262 u8 sense_data[18];
263}; 263};
264 264
@@ -286,10 +286,10 @@ struct utp_upiu_rsp {
286 */ 286 */
287struct utp_upiu_task_req { 287struct utp_upiu_task_req {
288 struct utp_upiu_header header; 288 struct utp_upiu_header header;
289 u32 input_param1; 289 __be32 input_param1;
290 u32 input_param2; 290 __be32 input_param2;
291 u32 input_param3; 291 __be32 input_param3;
292 u32 reserved[2]; 292 __be32 reserved[2];
293}; 293};
294 294
295/** 295/**
@@ -301,9 +301,9 @@ struct utp_upiu_task_req {
301 */ 301 */
302struct utp_upiu_task_rsp { 302struct utp_upiu_task_rsp {
303 struct utp_upiu_header header; 303 struct utp_upiu_header header;
304 u32 output_param1; 304 __be32 output_param1;
305 u32 output_param2; 305 __be32 output_param2;
306 u32 reserved[3]; 306 __be32 reserved[3];
307}; 307};
308 308
309/** 309/**