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_hw_cb.c | |
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_hw_cb.c')
-rw-r--r-- | drivers/scsi/bfa/bfa_hw_cb.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/scsi/bfa/bfa_hw_cb.c b/drivers/scsi/bfa/bfa_hw_cb.c index c787d3af088..422e44cfa07 100644 --- a/drivers/scsi/bfa/bfa_hw_cb.c +++ b/drivers/scsi/bfa/bfa_hw_cb.c | |||
@@ -22,7 +22,7 @@ void | |||
22 | bfa_hwcb_reginit(struct bfa_s *bfa) | 22 | bfa_hwcb_reginit(struct bfa_s *bfa) |
23 | { | 23 | { |
24 | struct bfa_iocfc_regs_s *bfa_regs = &bfa->iocfc.bfa_regs; | 24 | struct bfa_iocfc_regs_s *bfa_regs = &bfa->iocfc.bfa_regs; |
25 | bfa_os_addr_t kva = bfa_ioc_bar0(&bfa->ioc); | 25 | void __iomem *kva = bfa_ioc_bar0(&bfa->ioc); |
26 | int i, q, fn = bfa_ioc_pcifn(&bfa->ioc); | 26 | int i, q, fn = bfa_ioc_pcifn(&bfa->ioc); |
27 | 27 | ||
28 | if (fn == 0) { | 28 | if (fn == 0) { |
@@ -60,8 +60,8 @@ bfa_hwcb_reqq_ack(struct bfa_s *bfa, int reqq) | |||
60 | static void | 60 | static void |
61 | bfa_hwcb_reqq_ack_msix(struct bfa_s *bfa, int reqq) | 61 | bfa_hwcb_reqq_ack_msix(struct bfa_s *bfa, int reqq) |
62 | { | 62 | { |
63 | bfa_reg_write(bfa->iocfc.bfa_regs.intr_status, | 63 | writel(__HFN_INT_CPE_Q0 << CPE_Q_NUM(bfa_ioc_pcifn(&bfa->ioc), reqq), |
64 | __HFN_INT_CPE_Q0 << CPE_Q_NUM(bfa_ioc_pcifn(&bfa->ioc), reqq)); | 64 | bfa->iocfc.bfa_regs.intr_status); |
65 | } | 65 | } |
66 | 66 | ||
67 | void | 67 | void |
@@ -72,8 +72,8 @@ bfa_hwcb_rspq_ack(struct bfa_s *bfa, int rspq) | |||
72 | static void | 72 | static void |
73 | bfa_hwcb_rspq_ack_msix(struct bfa_s *bfa, int rspq) | 73 | bfa_hwcb_rspq_ack_msix(struct bfa_s *bfa, int rspq) |
74 | { | 74 | { |
75 | bfa_reg_write(bfa->iocfc.bfa_regs.intr_status, | 75 | writel(__HFN_INT_RME_Q0 << RME_Q_NUM(bfa_ioc_pcifn(&bfa->ioc), rspq), |
76 | __HFN_INT_RME_Q0 << RME_Q_NUM(bfa_ioc_pcifn(&bfa->ioc), rspq)); | 76 | bfa->iocfc.bfa_regs.intr_status); |
77 | } | 77 | } |
78 | 78 | ||
79 | void | 79 | void |