diff options
Diffstat (limited to 'drivers/scsi/bfa/bfa_fcpim.h')
-rw-r--r-- | drivers/scsi/bfa/bfa_fcpim.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/drivers/scsi/bfa/bfa_fcpim.h b/drivers/scsi/bfa/bfa_fcpim.h index 36f26da80f76..e693af6e5930 100644 --- a/drivers/scsi/bfa/bfa_fcpim.h +++ b/drivers/scsi/bfa/bfa_fcpim.h | |||
@@ -42,7 +42,7 @@ void bfa_itn_create(struct bfa_s *bfa, struct bfa_rport_s *rport, | |||
42 | void (*isr)(struct bfa_s *bfa, struct bfi_msg_s *m)); | 42 | void (*isr)(struct bfa_s *bfa, struct bfi_msg_s *m)); |
43 | void bfa_itn_isr(struct bfa_s *bfa, struct bfi_msg_s *m); | 43 | void bfa_itn_isr(struct bfa_s *bfa, struct bfi_msg_s *m); |
44 | void bfa_iotag_attach(struct bfa_fcp_mod_s *fcp); | 44 | void bfa_iotag_attach(struct bfa_fcp_mod_s *fcp); |
45 | void bfa_fcp_res_recfg(struct bfa_s *bfa, u16 num_ioim_fw); | 45 | void bfa_fcp_res_recfg(struct bfa_s *bfa, u16 num_ioim_fw, u16 max_ioim_fw); |
46 | 46 | ||
47 | #define BFA_FCP_MOD(_hal) (&(_hal)->modules.fcp_mod) | 47 | #define BFA_FCP_MOD(_hal) (&(_hal)->modules.fcp_mod) |
48 | #define BFA_MEM_FCP_KVA(__bfa) (&(BFA_FCP_MOD(__bfa)->kva_seg)) | 48 | #define BFA_MEM_FCP_KVA(__bfa) (&(BFA_FCP_MOD(__bfa)->kva_seg)) |
@@ -51,7 +51,9 @@ void bfa_fcp_res_recfg(struct bfa_s *bfa, u16 num_ioim_fw); | |||
51 | #define BFA_ITN_FROM_TAG(_fcp, _tag) \ | 51 | #define BFA_ITN_FROM_TAG(_fcp, _tag) \ |
52 | ((_fcp)->itn_arr + ((_tag) & ((_fcp)->num_itns - 1))) | 52 | ((_fcp)->itn_arr + ((_tag) & ((_fcp)->num_itns - 1))) |
53 | #define BFA_SNSINFO_FROM_TAG(_fcp, _tag) \ | 53 | #define BFA_SNSINFO_FROM_TAG(_fcp, _tag) \ |
54 | bfa_mem_get_dmabuf_kva(_fcp, _tag, BFI_IOIM_SNSLEN) | 54 | bfa_mem_get_dmabuf_kva(_fcp, (_tag & BFA_IOIM_IOTAG_MASK), \ |
55 | BFI_IOIM_SNSLEN) | ||
56 | |||
55 | 57 | ||
56 | #define BFA_ITNIM_MIN 32 | 58 | #define BFA_ITNIM_MIN 32 |
57 | #define BFA_ITNIM_MAX 1024 | 59 | #define BFA_ITNIM_MAX 1024 |
@@ -148,6 +150,7 @@ struct bfa_fcp_mod_s { | |||
148 | struct list_head iotag_unused_q; /* unused IO resources*/ | 150 | struct list_head iotag_unused_q; /* unused IO resources*/ |
149 | struct bfa_iotag_s *iotag_arr; | 151 | struct bfa_iotag_s *iotag_arr; |
150 | struct bfa_itn_s *itn_arr; | 152 | struct bfa_itn_s *itn_arr; |
153 | int max_ioim_reqs; | ||
151 | int num_ioim_reqs; | 154 | int num_ioim_reqs; |
152 | int num_fwtio_reqs; | 155 | int num_fwtio_reqs; |
153 | int num_itns; | 156 | int num_itns; |
@@ -155,6 +158,7 @@ struct bfa_fcp_mod_s { | |||
155 | struct bfa_fcpim_s fcpim; | 158 | struct bfa_fcpim_s fcpim; |
156 | struct bfa_mem_dma_s dma_seg[BFA_FCP_DMA_SEGS]; | 159 | struct bfa_mem_dma_s dma_seg[BFA_FCP_DMA_SEGS]; |
157 | struct bfa_mem_kva_s kva_seg; | 160 | struct bfa_mem_kva_s kva_seg; |
161 | int throttle_update_required; | ||
158 | }; | 162 | }; |
159 | 163 | ||
160 | /* | 164 | /* |
@@ -416,5 +420,10 @@ bfa_status_t bfa_fcpim_lunmask_delete(struct bfa_s *bfa, u16 vf_id, | |||
416 | bfa_status_t bfa_fcpim_lunmask_add(struct bfa_s *bfa, u16 vf_id, | 420 | bfa_status_t bfa_fcpim_lunmask_add(struct bfa_s *bfa, u16 vf_id, |
417 | wwn_t *pwwn, wwn_t rpwwn, struct scsi_lun lun); | 421 | wwn_t *pwwn, wwn_t rpwwn, struct scsi_lun lun); |
418 | bfa_status_t bfa_fcpim_lunmask_clear(struct bfa_s *bfa); | 422 | bfa_status_t bfa_fcpim_lunmask_clear(struct bfa_s *bfa); |
423 | u16 bfa_fcpim_read_throttle(struct bfa_s *bfa); | ||
424 | bfa_status_t bfa_fcpim_write_throttle(struct bfa_s *bfa, u16 value); | ||
425 | bfa_status_t bfa_fcpim_throttle_set(struct bfa_s *bfa, u16 value); | ||
426 | bfa_status_t bfa_fcpim_throttle_get(struct bfa_s *bfa, void *buf); | ||
427 | u16 bfa_fcpim_get_throttle_cfg(struct bfa_s *bfa, u16 drv_cfg_param); | ||
419 | 428 | ||
420 | #endif /* __BFA_FCPIM_H__ */ | 429 | #endif /* __BFA_FCPIM_H__ */ |