diff options
author | Rasesh Mody <rmody@brocade.com> | 2011-09-27 10:39:05 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-09-29 19:36:34 -0400 |
commit | be3a84d1364d2060f4045782a40db39ed21a5c66 (patch) | |
tree | 5470da48877c317c08f39e9b5b148b82129d26a9 /drivers/net/ethernet/brocade/bna/bfa_ioc.c | |
parent | 3869f80605847b2235b9be01e59606d9b5606d96 (diff) | |
download | talos-obmc-linux-be3a84d1364d2060f4045782a40db39ed21a5c66.tar.gz talos-obmc-linux-be3a84d1364d2060f4045782a40db39ed21a5c66.zip |
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: Gurunatha Karaje <gkaraje@brocade.com>
Signed-off-by: Rasesh Mody <rmody@brocade.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/brocade/bna/bfa_ioc.c')
-rw-r--r-- | drivers/net/ethernet/brocade/bna/bfa_ioc.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/net/ethernet/brocade/bna/bfa_ioc.c b/drivers/net/ethernet/brocade/bna/bfa_ioc.c index 4282fef24f95..1e60aa7c6c58 100644 --- a/drivers/net/ethernet/brocade/bna/bfa_ioc.c +++ b/drivers/net/ethernet/brocade/bna/bfa_ioc.c @@ -1981,7 +1981,13 @@ bfa_nw_ioc_pci_init(struct bfa_ioc *ioc, struct bfa_pcidev *pcidev, 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_reg_init(ioc); |