diff options
Diffstat (limited to 'drivers/scsi/be2iscsi/be_cmds.h')
-rw-r--r-- | drivers/scsi/be2iscsi/be_cmds.h | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/drivers/scsi/be2iscsi/be_cmds.h b/drivers/scsi/be2iscsi/be_cmds.h index cc7405c0eca0..98897434bcb4 100644 --- a/drivers/scsi/be2iscsi/be_cmds.h +++ b/drivers/scsi/be2iscsi/be_cmds.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /** | 1 | /** |
2 | * Copyright (C) 2005 - 2013 Emulex | 2 | * Copyright (C) 2005 - 2014 Emulex |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
5 | * This program is free software; you can redistribute it and/or | 5 | * This program is free software; you can redistribute it and/or |
@@ -26,9 +26,9 @@ | |||
26 | * The commands are serviced by the ARM processor in the OneConnect's MPU. | 26 | * The commands are serviced by the ARM processor in the OneConnect's MPU. |
27 | */ | 27 | */ |
28 | struct be_sge { | 28 | struct be_sge { |
29 | u32 pa_lo; | 29 | __le32 pa_lo; |
30 | u32 pa_hi; | 30 | __le32 pa_hi; |
31 | u32 len; | 31 | __le32 len; |
32 | }; | 32 | }; |
33 | 33 | ||
34 | #define MCC_WRB_SGE_CNT_SHIFT 3 /* bits 3 - 7 of dword 0 */ | 34 | #define MCC_WRB_SGE_CNT_SHIFT 3 /* bits 3 - 7 of dword 0 */ |
@@ -118,6 +118,14 @@ struct be_mcc_compl { | |||
118 | #define ASYNC_TRAILER_EVENT_CODE_SHIFT 8 /* bits 8 - 15 */ | 118 | #define ASYNC_TRAILER_EVENT_CODE_SHIFT 8 /* bits 8 - 15 */ |
119 | #define ASYNC_TRAILER_EVENT_CODE_MASK 0xFF | 119 | #define ASYNC_TRAILER_EVENT_CODE_MASK 0xFF |
120 | #define ASYNC_EVENT_CODE_LINK_STATE 0x1 | 120 | #define ASYNC_EVENT_CODE_LINK_STATE 0x1 |
121 | #define ASYNC_EVENT_CODE_ISCSI 0x4 | ||
122 | |||
123 | #define ASYNC_TRAILER_EVENT_TYPE_SHIFT 16 /* bits 16 - 23 */ | ||
124 | #define ASYNC_TRAILER_EVENT_TYPE_MASK 0xF | ||
125 | #define ASYNC_EVENT_NEW_ISCSI_TGT_DISC 0x4 | ||
126 | #define ASYNC_EVENT_NEW_ISCSI_CONN 0x5 | ||
127 | #define ASYNC_EVENT_NEW_TCP_CONN 0x7 | ||
128 | |||
121 | struct be_async_event_trailer { | 129 | struct be_async_event_trailer { |
122 | u32 code; | 130 | u32 code; |
123 | }; | 131 | }; |
@@ -624,11 +632,11 @@ static inline struct be_sge *nonembedded_sgl(struct be_mcc_wrb *wrb) | |||
624 | /******************** Modify EQ Delay *******************/ | 632 | /******************** Modify EQ Delay *******************/ |
625 | struct be_cmd_req_modify_eq_delay { | 633 | struct be_cmd_req_modify_eq_delay { |
626 | struct be_cmd_req_hdr hdr; | 634 | struct be_cmd_req_hdr hdr; |
627 | u32 num_eq; | 635 | __le32 num_eq; |
628 | struct { | 636 | struct { |
629 | u32 eq_id; | 637 | __le32 eq_id; |
630 | u32 phase; | 638 | __le32 phase; |
631 | u32 delay_multiplier; | 639 | __le32 delay_multiplier; |
632 | } delay[MAX_CPUS]; | 640 | } delay[MAX_CPUS]; |
633 | } __packed; | 641 | } __packed; |
634 | 642 | ||