diff options
author | Jing Huang <huangj@brocade.com> | 2010-10-18 20:12:29 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-10-25 17:18:20 -0400 |
commit | 5344026065f79b102fcc44bc6332f856a111962a (patch) | |
tree | c28f91eb4593e3e89b030a65a4fd71b8b43cc1f1 /drivers/scsi/bfa/bfa.h | |
parent | ba816ea8e2eacbf3d198ad1859f413c2d6213434 (diff) |
[SCSI] bfa: remove os wrapper functions and macros
This patch replaces register access functions and macros with the the ones
provided by linux.
Signed-off-by: Jing Huang <huangj@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/bfa/bfa.h')
-rw-r--r-- | drivers/scsi/bfa/bfa.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/scsi/bfa/bfa.h b/drivers/scsi/bfa/bfa.h index ceaac65a91ff..c3981df31722 100644 --- a/drivers/scsi/bfa/bfa.h +++ b/drivers/scsi/bfa/bfa.h | |||
@@ -59,8 +59,8 @@ void bfa_isr_bind(enum bfi_mclass mc, bfa_isr_func_t isr_func); | |||
59 | (__bfa)->iocfc.req_cq_pi[__reqq]++; \ | 59 | (__bfa)->iocfc.req_cq_pi[__reqq]++; \ |
60 | (__bfa)->iocfc.req_cq_pi[__reqq] &= \ | 60 | (__bfa)->iocfc.req_cq_pi[__reqq] &= \ |
61 | ((__bfa)->iocfc.cfg.drvcfg.num_reqq_elems - 1); \ | 61 | ((__bfa)->iocfc.cfg.drvcfg.num_reqq_elems - 1); \ |
62 | bfa_reg_write((__bfa)->iocfc.bfa_regs.cpe_q_pi[__reqq], \ | 62 | writel((__bfa)->iocfc.req_cq_pi[__reqq], \ |
63 | (__bfa)->iocfc.req_cq_pi[__reqq]); \ | 63 | (__bfa)->iocfc.bfa_regs.cpe_q_pi[__reqq]); \ |
64 | mmiowb(); \ | 64 | mmiowb(); \ |
65 | } while (0) | 65 | } while (0) |
66 | 66 | ||
@@ -202,16 +202,16 @@ struct bfa_meminfo_s { | |||
202 | ((_m)->meminfo[BFA_MEM_TYPE_DMA - 1].dma_curp) | 202 | ((_m)->meminfo[BFA_MEM_TYPE_DMA - 1].dma_curp) |
203 | 203 | ||
204 | struct bfa_iocfc_regs_s { | 204 | struct bfa_iocfc_regs_s { |
205 | bfa_os_addr_t intr_status; | 205 | void __iomem *intr_status; |
206 | bfa_os_addr_t intr_mask; | 206 | void __iomem *intr_mask; |
207 | bfa_os_addr_t cpe_q_pi[BFI_IOC_MAX_CQS]; | 207 | void __iomem *cpe_q_pi[BFI_IOC_MAX_CQS]; |
208 | bfa_os_addr_t cpe_q_ci[BFI_IOC_MAX_CQS]; | 208 | void __iomem *cpe_q_ci[BFI_IOC_MAX_CQS]; |
209 | bfa_os_addr_t cpe_q_depth[BFI_IOC_MAX_CQS]; | 209 | void __iomem *cpe_q_depth[BFI_IOC_MAX_CQS]; |
210 | bfa_os_addr_t cpe_q_ctrl[BFI_IOC_MAX_CQS]; | 210 | void __iomem *cpe_q_ctrl[BFI_IOC_MAX_CQS]; |
211 | bfa_os_addr_t rme_q_ci[BFI_IOC_MAX_CQS]; | 211 | void __iomem *rme_q_ci[BFI_IOC_MAX_CQS]; |
212 | bfa_os_addr_t rme_q_pi[BFI_IOC_MAX_CQS]; | 212 | void __iomem *rme_q_pi[BFI_IOC_MAX_CQS]; |
213 | bfa_os_addr_t rme_q_depth[BFI_IOC_MAX_CQS]; | 213 | void __iomem *rme_q_depth[BFI_IOC_MAX_CQS]; |
214 | bfa_os_addr_t rme_q_ctrl[BFI_IOC_MAX_CQS]; | 214 | void __iomem *rme_q_ctrl[BFI_IOC_MAX_CQS]; |
215 | }; | 215 | }; |
216 | 216 | ||
217 | /** | 217 | /** |