Commit be3a84d1 authored by Rasesh Mody's avatar Rasesh Mody Committed by David S. Miller

bna: Brocade 1860 IOC PLL, Reg Defs and ASIC Mode Changes

Add logic to set ASIC specfic interface in IOC, HW interface initialization
APIs, mode based initialization and MSI-X resource allocation for 1860 with
no asic block. Add new h/w specific register definitions and setup registers
used by IOC logic.

Use normal kernel declaration style, c99 initializers and const for mailbox
structures. Remove unneeded parentheses.
Signed-off-by: default avatarGurunatha Karaje <gkaraje@brocade.com>
Signed-off-by: default avatarRasesh Mody <rmody@brocade.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3869f806
...@@ -1981,7 +1981,13 @@ bfa_nw_ioc_pci_init(struct bfa_ioc *ioc, struct bfa_pcidev *pcidev, ...@@ -1981,7 +1981,13 @@ bfa_nw_ioc_pci_init(struct bfa_ioc *ioc, struct bfa_pcidev *pcidev,
BUG_ON(1); BUG_ON(1);
} }
bfa_nw_ioc_set_ct_hwif(ioc); /**
* Set asic specific interfaces.
*/
if (ioc->asic_gen == BFI_ASIC_GEN_CT)
bfa_nw_ioc_set_ct_hwif(ioc);
else
bfa_nw_ioc_set_ct2_hwif(ioc);
bfa_ioc_map_port(ioc); bfa_ioc_map_port(ioc);
bfa_ioc_reg_init(ioc); bfa_ioc_reg_init(ioc);
......
...@@ -72,6 +72,7 @@ struct bfa_ioc_regs { ...@@ -72,6 +72,7 @@ struct bfa_ioc_regs {
void __iomem *hfn_mbox; void __iomem *hfn_mbox;
void __iomem *lpu_mbox_cmd; void __iomem *lpu_mbox_cmd;
void __iomem *lpu_mbox; void __iomem *lpu_mbox;
void __iomem *lpu_read_stat;
void __iomem *pss_ctl_reg; void __iomem *pss_ctl_reg;
void __iomem *pss_err_status_reg; void __iomem *pss_err_status_reg;
void __iomem *app_pll_fast_ctl_reg; void __iomem *app_pll_fast_ctl_reg;
...@@ -287,6 +288,7 @@ void bfa_nw_ioc_mbox_regisr(struct bfa_ioc *ioc, enum bfi_mclass mc, ...@@ -287,6 +288,7 @@ void bfa_nw_ioc_mbox_regisr(struct bfa_ioc *ioc, enum bfi_mclass mc,
} while (0) } while (0)
void bfa_nw_ioc_set_ct_hwif(struct bfa_ioc *ioc); void bfa_nw_ioc_set_ct_hwif(struct bfa_ioc *ioc);
void bfa_nw_ioc_set_ct2_hwif(struct bfa_ioc *ioc);
void bfa_nw_ioc_attach(struct bfa_ioc *ioc, void *bfa, void bfa_nw_ioc_attach(struct bfa_ioc *ioc, void *bfa,
struct bfa_ioc_cbfn *cbfn); struct bfa_ioc_cbfn *cbfn);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment