lpfc 8.3.37: Provide support for FCoE protocol dual-chute (ULP) operation
Subsystems (2)
PATCH 8/11 lpfc 8.3.37: Provide support for FCoE protocol dual-chute (ULP) operation
Provide support for FCoE protocol dual-chute (ULP) operation
Signed-off-by James Smart <[email protected]>
---
lpfc.h | 9 ++ lpfc_hw4.h | 176 ++++++++++++++++++++++++++++++++++---------------------- lpfc_init.c | 72 +++++++++++++++++++++- lpfc_sli.c | 188 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++---- lpfc_sli4.h | 8 ++ 5 files changed, 369 insertions(+), 84 deletions(-)
drivers/scsi/lpfc/lpfc.h +9 -0
@@ -752,6 +752,15 @@ struct lpfc_hba {void __iomem *ctrl_regs_memmap_p;/* Kernel memory mapped address for PCI BAR2 */ +void __iomem *pci_bar0_memmap_p;/* Kernel memory mapped address for +PCI BAR0 with dual-ULP support */ +void __iomem *pci_bar2_memmap_p;/* Kernel memory mapped address for +PCI BAR2 with dual-ULP support */ +void __iomem *pci_bar4_memmap_p;/* Kernel memory mapped address for +PCI BAR4 with dual-ULP support */ +#define PCI_64BIT_BAR0 0 +#define PCI_64BIT_BAR2 2 +#define PCI_64BIT_BAR4 4void __iomem *MBslimaddr;/* virtual address for mbox cmds */ void __iomem *HAregaddr;/* virtual address for host attn reg */ void __iomem *CAregaddr;/* virtual address for chip attn reg */
drivers/scsi/lpfc/lpfc_hw4.h +107 -69
233 lines not on this page · raw message
drivers/scsi/lpfc/lpfc_init.c +68 -4
98 lines not on this page · raw message
drivers/scsi/lpfc/lpfc_sli4.h +8 -0
@@ -139,6 +139,10 @@ struct lpfc_queue {struct lpfc_sli_ring *pring;/* ptr to io ring associated with q */ +uint16_t db_format; +#define LPFC_DB_RING_FORMAT 0x01 +#define LPFC_DB_LIST_FORMAT 0x02 +void __iomem *db_regaddr;/* For q stats */ uint32_t q_cnt_1;uint32_t q_cnt_2;
@@ -508,6 +512,10 @@ struct lpfc_sli4_hba {struct lpfc_queue *hdr_rq;/* Slow-path Header Receive queue */ struct lpfc_queue *dat_rq;/* Slow-path Data Receive queue */ +uint8_t fw_func_mode;/* FW function protocol mode */ +uint32_t ulp0_mode;/* ULP0 protocol mode */ +uint32_t ulp1_mode;/* ULP1 protocol mode */ +/* Setup information for various queue parameters */ int eq_esize;int eq_ecount;
drivers/scsi/lpfc/lpfc_sli.c +177 -11
272 lines not on this page · raw message