diff options
author | Dmitry Kravkov <dmitry@broadcom.com> | 2010-10-05 23:23:26 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-10-06 17:10:35 -0400 |
commit | 523224a3b3cd407ce4e6731a087194e13a90db18 (patch) | |
tree | bb0fda289682e4259c401b8a5763ba4cc4d41659 /drivers/scsi | |
parent | 0c5b77152e736d23a23eb2546eab323e27a37f52 (diff) |
bnx2x, cnic, bnx2i: use new FW/HSI
This is the new FW HSI blob and the relevant definitions without logic changes.
It also included code adaptation for new HSI. New features are not enabled.
New FW/HSI includes:
- Support for 57712 HW
- Future support for VF (not used)
- Improvements in FW interrupts scheme
- FW FCoE hooks (stubs for future usage)
Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/bnx2i/bnx2i.h | 2 | ||||
-rw-r--r-- | drivers/scsi/bnx2i/bnx2i_hwi.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/drivers/scsi/bnx2i/bnx2i.h b/drivers/scsi/bnx2i/bnx2i.h index 00c033511cb..99568cb9ad1 100644 --- a/drivers/scsi/bnx2i/bnx2i.h +++ b/drivers/scsi/bnx2i/bnx2i.h | |||
@@ -58,6 +58,8 @@ | |||
58 | #define MAX_PAGES_PER_CTRL_STRUCT_POOL 8 | 58 | #define MAX_PAGES_PER_CTRL_STRUCT_POOL 8 |
59 | #define BNX2I_RESERVED_SLOW_PATH_CMD_SLOTS 4 | 59 | #define BNX2I_RESERVED_SLOW_PATH_CMD_SLOTS 4 |
60 | 60 | ||
61 | #define BNX2I_5771X_DBELL_PAGE_SIZE 128 | ||
62 | |||
61 | /* 5706/08 hardware has limit on maximum buffer size per BD it can handle */ | 63 | /* 5706/08 hardware has limit on maximum buffer size per BD it can handle */ |
62 | #define MAX_BD_LENGTH 65535 | 64 | #define MAX_BD_LENGTH 65535 |
63 | #define BD_SPLIT_SIZE 32768 | 65 | #define BD_SPLIT_SIZE 32768 |
diff --git a/drivers/scsi/bnx2i/bnx2i_hwi.c b/drivers/scsi/bnx2i/bnx2i_hwi.c index d23fc256d58..99c71e6d4c1 100644 --- a/drivers/scsi/bnx2i/bnx2i_hwi.c +++ b/drivers/scsi/bnx2i/bnx2i_hwi.c | |||
@@ -2405,7 +2405,8 @@ int bnx2i_map_ep_dbell_regs(struct bnx2i_endpoint *ep) | |||
2405 | if (test_bit(BNX2I_NX2_DEV_57710, &ep->hba->cnic_dev_type)) { | 2405 | if (test_bit(BNX2I_NX2_DEV_57710, &ep->hba->cnic_dev_type)) { |
2406 | reg_base = pci_resource_start(ep->hba->pcidev, | 2406 | reg_base = pci_resource_start(ep->hba->pcidev, |
2407 | BNX2X_DOORBELL_PCI_BAR); | 2407 | BNX2X_DOORBELL_PCI_BAR); |
2408 | reg_off = PAGE_SIZE * (cid_num & 0x1FFFF) + DPM_TRIGER_TYPE; | 2408 | reg_off = BNX2I_5771X_DBELL_PAGE_SIZE * (cid_num & 0x1FFFF) + |
2409 | DPM_TRIGER_TYPE; | ||
2409 | ep->qp.ctx_base = ioremap_nocache(reg_base + reg_off, 4); | 2410 | ep->qp.ctx_base = ioremap_nocache(reg_base + reg_off, 4); |
2410 | goto arm_cq; | 2411 | goto arm_cq; |
2411 | } | 2412 | } |