diff options
Diffstat (limited to 'drivers/scsi/be2iscsi/be.h')
-rw-r--r-- | drivers/scsi/be2iscsi/be.h | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/drivers/scsi/be2iscsi/be.h b/drivers/scsi/be2iscsi/be.h index b36020dcf012..a93a5040f087 100644 --- a/drivers/scsi/be2iscsi/be.h +++ b/drivers/scsi/be2iscsi/be.h | |||
@@ -20,8 +20,10 @@ | |||
20 | 20 | ||
21 | #include <linux/pci.h> | 21 | #include <linux/pci.h> |
22 | #include <linux/if_vlan.h> | 22 | #include <linux/if_vlan.h> |
23 | 23 | #include <linux/blk-iopoll.h> | |
24 | #define FW_VER_LEN 32 | 24 | #define FW_VER_LEN 32 |
25 | #define MCC_Q_LEN 128 | ||
26 | #define MCC_CQ_LEN 256 | ||
25 | 27 | ||
26 | struct be_dma_mem { | 28 | struct be_dma_mem { |
27 | void *va; | 29 | void *va; |
@@ -74,18 +76,14 @@ static inline void queue_tail_inc(struct be_queue_info *q) | |||
74 | 76 | ||
75 | struct be_eq_obj { | 77 | struct be_eq_obj { |
76 | struct be_queue_info q; | 78 | struct be_queue_info q; |
77 | char desc[32]; | 79 | struct beiscsi_hba *phba; |
78 | 80 | struct be_queue_info *cq; | |
79 | /* Adaptive interrupt coalescing (AIC) info */ | 81 | struct blk_iopoll iopoll; |
80 | bool enable_aic; | ||
81 | u16 min_eqd; /* in usecs */ | ||
82 | u16 max_eqd; /* in usecs */ | ||
83 | u16 cur_eqd; /* in usecs */ | ||
84 | }; | 82 | }; |
85 | 83 | ||
86 | struct be_mcc_obj { | 84 | struct be_mcc_obj { |
87 | struct be_queue_info *q; | 85 | struct be_queue_info q; |
88 | struct be_queue_info *cq; | 86 | struct be_queue_info cq; |
89 | }; | 87 | }; |
90 | 88 | ||
91 | struct be_ctrl_info { | 89 | struct be_ctrl_info { |
@@ -176,8 +174,4 @@ static inline void swap_dws(void *wrb, int len) | |||
176 | } while (len); | 174 | } while (len); |
177 | #endif /* __BIG_ENDIAN */ | 175 | #endif /* __BIG_ENDIAN */ |
178 | } | 176 | } |
179 | |||
180 | extern void beiscsi_cq_notify(struct be_ctrl_info *ctrl, u16 qid, bool arm, | ||
181 | u16 num_popped); | ||
182 | |||
183 | #endif /* BEISCSI_H */ | 177 | #endif /* BEISCSI_H */ |