diff options
author | Rasesh Mody <rmody@brocade.com> | 2010-08-26 02:00:27 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-08-26 02:00:27 -0400 |
commit | 8a891429d1879ae4f37f547ef5c2d68e19277e4a (patch) | |
tree | ac759c522cbc86c4373d6086ccd800e9aea09c7f /drivers/net/bna/bna_ctrl.c | |
parent | ced1de4c9eeded664e5f1b21cfcb0fb70cc0cde3 (diff) |
bna: Fixed build break for allyesconfig
This is the patch to fix the build break caused by multiple
definitions of symbols between Brocade's FC/FCOE driver(BFA)
and 10G Networking Driver(BNA).
Changes are:
1. locally used functions are made static
2. unused functions are removed
3. using unique namespaces for the function names that must be
globally visible
Signed-off-by: Debashis Dutt <ddutt@brocade.com>
Signed-off-by: Rasesh Mody <rmody@brocade.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bna/bna_ctrl.c')
-rw-r--r-- | drivers/net/bna/bna_ctrl.c | 38 |
1 files changed, 18 insertions, 20 deletions
diff --git a/drivers/net/bna/bna_ctrl.c b/drivers/net/bna/bna_ctrl.c index 9d41ebf41cf4..f3034d6bda58 100644 --- a/drivers/net/bna/bna_ctrl.c +++ b/drivers/net/bna/bna_ctrl.c | |||
@@ -81,7 +81,7 @@ bna_ll_isr(void *llarg, struct bfi_mbmsg *msg) | |||
81 | /* Post the next entry, if needed */ | 81 | /* Post the next entry, if needed */ |
82 | if (to_post) { | 82 | if (to_post) { |
83 | mb_qe = bfa_q_first(&bna->mbox_mod.posted_q); | 83 | mb_qe = bfa_q_first(&bna->mbox_mod.posted_q); |
84 | bfa_ioc_mbox_queue(&bna->device.ioc, | 84 | bfa_nw_ioc_mbox_queue(&bna->device.ioc, |
85 | &mb_qe->cmd); | 85 | &mb_qe->cmd); |
86 | } | 86 | } |
87 | } else { | 87 | } else { |
@@ -107,7 +107,7 @@ bna_err_handler(struct bna *bna, u32 intr_status) | |||
107 | writel(init_halt, bna->device.ioc.ioc_regs.ll_halt); | 107 | writel(init_halt, bna->device.ioc.ioc_regs.ll_halt); |
108 | } | 108 | } |
109 | 109 | ||
110 | bfa_ioc_error_isr(&bna->device.ioc); | 110 | bfa_nw_ioc_error_isr(&bna->device.ioc); |
111 | } | 111 | } |
112 | 112 | ||
113 | void | 113 | void |
@@ -118,7 +118,7 @@ bna_mbox_handler(struct bna *bna, u32 intr_status) | |||
118 | return; | 118 | return; |
119 | } | 119 | } |
120 | if (BNA_IS_MBOX_INTR(intr_status)) | 120 | if (BNA_IS_MBOX_INTR(intr_status)) |
121 | bfa_ioc_mbox_isr(&bna->device.ioc); | 121 | bfa_nw_ioc_mbox_isr(&bna->device.ioc); |
122 | } | 122 | } |
123 | 123 | ||
124 | void | 124 | void |
@@ -133,7 +133,7 @@ bna_mbox_send(struct bna *bna, struct bna_mbox_qe *mbox_qe) | |||
133 | bna->mbox_mod.msg_pending++; | 133 | bna->mbox_mod.msg_pending++; |
134 | if (bna->mbox_mod.state == BNA_MBOX_FREE) { | 134 | if (bna->mbox_mod.state == BNA_MBOX_FREE) { |
135 | list_add_tail(&mbox_qe->qe, &bna->mbox_mod.posted_q); | 135 | list_add_tail(&mbox_qe->qe, &bna->mbox_mod.posted_q); |
136 | bfa_ioc_mbox_queue(&bna->device.ioc, &mbox_qe->cmd); | 136 | bfa_nw_ioc_mbox_queue(&bna->device.ioc, &mbox_qe->cmd); |
137 | bna->mbox_mod.state = BNA_MBOX_POSTED; | 137 | bna->mbox_mod.state = BNA_MBOX_POSTED; |
138 | } else { | 138 | } else { |
139 | list_add_tail(&mbox_qe->qe, &bna->mbox_mod.posted_q); | 139 | list_add_tail(&mbox_qe->qe, &bna->mbox_mod.posted_q); |
@@ -180,7 +180,7 @@ bna_mbox_mod_stop(struct bna_mbox_mod *mbox_mod) | |||
180 | void | 180 | void |
181 | bna_mbox_mod_init(struct bna_mbox_mod *mbox_mod, struct bna *bna) | 181 | bna_mbox_mod_init(struct bna_mbox_mod *mbox_mod, struct bna *bna) |
182 | { | 182 | { |
183 | bfa_ioc_mbox_regisr(&bna->device.ioc, BFI_MC_LL, bna_ll_isr, bna); | 183 | bfa_nw_ioc_mbox_regisr(&bna->device.ioc, BFI_MC_LL, bna_ll_isr, bna); |
184 | mbox_mod->state = BNA_MBOX_FREE; | 184 | mbox_mod->state = BNA_MBOX_FREE; |
185 | mbox_mod->msg_ctr = mbox_mod->msg_pending = 0; | 185 | mbox_mod->msg_ctr = mbox_mod->msg_pending = 0; |
186 | INIT_LIST_HEAD(&mbox_mod->posted_q); | 186 | INIT_LIST_HEAD(&mbox_mod->posted_q); |
@@ -1289,7 +1289,7 @@ bna_port_mtu_set(struct bna_port *port, int mtu, | |||
1289 | void | 1289 | void |
1290 | bna_port_mac_get(struct bna_port *port, mac_t *mac) | 1290 | bna_port_mac_get(struct bna_port *port, mac_t *mac) |
1291 | { | 1291 | { |
1292 | *mac = bfa_ioc_get_mac(&port->bna->device.ioc); | 1292 | *mac = bfa_nw_ioc_get_mac(&port->bna->device.ioc); |
1293 | } | 1293 | } |
1294 | 1294 | ||
1295 | /** | 1295 | /** |
@@ -1427,7 +1427,7 @@ bna_device_sm_stopped(struct bna_device *device, | |||
1427 | case DEVICE_E_ENABLE: | 1427 | case DEVICE_E_ENABLE: |
1428 | if (device->intr_type == BNA_INTR_T_MSIX) | 1428 | if (device->intr_type == BNA_INTR_T_MSIX) |
1429 | bna_mbox_msix_idx_set(device); | 1429 | bna_mbox_msix_idx_set(device); |
1430 | bfa_ioc_enable(&device->ioc); | 1430 | bfa_nw_ioc_enable(&device->ioc); |
1431 | bfa_fsm_set_state(device, bna_device_sm_ioc_ready_wait); | 1431 | bfa_fsm_set_state(device, bna_device_sm_ioc_ready_wait); |
1432 | break; | 1432 | break; |
1433 | 1433 | ||
@@ -1547,7 +1547,7 @@ bna_device_sm_port_stop_wait(struct bna_device *device, | |||
1547 | static void | 1547 | static void |
1548 | bna_device_sm_ioc_disable_wait_entry(struct bna_device *device) | 1548 | bna_device_sm_ioc_disable_wait_entry(struct bna_device *device) |
1549 | { | 1549 | { |
1550 | bfa_ioc_disable(&device->ioc); | 1550 | bfa_nw_ioc_disable(&device->ioc); |
1551 | } | 1551 | } |
1552 | 1552 | ||
1553 | static void | 1553 | static void |
@@ -1655,12 +1655,12 @@ bna_device_init(struct bna_device *device, struct bna *bna, | |||
1655 | * 1. DMA memory for IOC attributes | 1655 | * 1. DMA memory for IOC attributes |
1656 | * 2. Kernel memory for FW trace | 1656 | * 2. Kernel memory for FW trace |
1657 | */ | 1657 | */ |
1658 | bfa_ioc_attach(&device->ioc, device, &bfa_iocll_cbfn); | 1658 | bfa_nw_ioc_attach(&device->ioc, device, &bfa_iocll_cbfn); |
1659 | bfa_ioc_pci_init(&device->ioc, &bna->pcidev, BFI_MC_LL); | 1659 | bfa_nw_ioc_pci_init(&device->ioc, &bna->pcidev, BFI_MC_LL); |
1660 | 1660 | ||
1661 | BNA_GET_DMA_ADDR( | 1661 | BNA_GET_DMA_ADDR( |
1662 | &res_info[BNA_RES_MEM_T_ATTR].res_u.mem_info.mdl[0].dma, dma); | 1662 | &res_info[BNA_RES_MEM_T_ATTR].res_u.mem_info.mdl[0].dma, dma); |
1663 | bfa_ioc_mem_claim(&device->ioc, | 1663 | bfa_nw_ioc_mem_claim(&device->ioc, |
1664 | res_info[BNA_RES_MEM_T_ATTR].res_u.mem_info.mdl[0].kva, | 1664 | res_info[BNA_RES_MEM_T_ATTR].res_u.mem_info.mdl[0].kva, |
1665 | dma); | 1665 | dma); |
1666 | 1666 | ||
@@ -1686,9 +1686,7 @@ bna_device_uninit(struct bna_device *device) | |||
1686 | { | 1686 | { |
1687 | bna_mbox_mod_uninit(&device->bna->mbox_mod); | 1687 | bna_mbox_mod_uninit(&device->bna->mbox_mod); |
1688 | 1688 | ||
1689 | bfa_cee_detach(&device->bna->cee); | 1689 | bfa_nw_ioc_detach(&device->ioc); |
1690 | |||
1691 | bfa_ioc_detach(&device->ioc); | ||
1692 | 1690 | ||
1693 | device->bna = NULL; | 1691 | device->bna = NULL; |
1694 | } | 1692 | } |
@@ -1783,10 +1781,10 @@ bna_adv_device_init(struct bna_device *device, struct bna *bna, | |||
1783 | &res_info[BNA_RES_MEM_T_COM].res_u.mem_info.mdl[0].dma, dma); | 1781 | &res_info[BNA_RES_MEM_T_COM].res_u.mem_info.mdl[0].dma, dma); |
1784 | kva = res_info[BNA_RES_MEM_T_COM].res_u.mem_info.mdl[0].kva; | 1782 | kva = res_info[BNA_RES_MEM_T_COM].res_u.mem_info.mdl[0].kva; |
1785 | 1783 | ||
1786 | bfa_cee_attach(&bna->cee, &device->ioc, bna); | 1784 | bfa_nw_cee_attach(&bna->cee, &device->ioc, bna); |
1787 | bfa_cee_mem_claim(&bna->cee, kva, dma); | 1785 | bfa_nw_cee_mem_claim(&bna->cee, kva, dma); |
1788 | kva += bfa_cee_meminfo(); | 1786 | kva += bfa_nw_cee_meminfo(); |
1789 | dma += bfa_cee_meminfo(); | 1787 | dma += bfa_nw_cee_meminfo(); |
1790 | 1788 | ||
1791 | } | 1789 | } |
1792 | 1790 | ||
@@ -1800,7 +1798,7 @@ bna_adv_res_req(struct bna_res_info *res_info) | |||
1800 | res_info[BNA_RES_MEM_T_COM].res_u.mem_info.mem_type = BNA_MEM_T_DMA; | 1798 | res_info[BNA_RES_MEM_T_COM].res_u.mem_info.mem_type = BNA_MEM_T_DMA; |
1801 | res_info[BNA_RES_MEM_T_COM].res_u.mem_info.num = 1; | 1799 | res_info[BNA_RES_MEM_T_COM].res_u.mem_info.num = 1; |
1802 | res_info[BNA_RES_MEM_T_COM].res_u.mem_info.len = ALIGN( | 1800 | res_info[BNA_RES_MEM_T_COM].res_u.mem_info.len = ALIGN( |
1803 | bfa_cee_meminfo(), PAGE_SIZE); | 1801 | bfa_nw_cee_meminfo(), PAGE_SIZE); |
1804 | 1802 | ||
1805 | /* Virtual memory for retreiving fw_trc */ | 1803 | /* Virtual memory for retreiving fw_trc */ |
1806 | res_info[BNA_RES_MEM_T_FWTRC].res_type = BNA_RES_T_MEM; | 1804 | res_info[BNA_RES_MEM_T_FWTRC].res_type = BNA_RES_T_MEM; |
@@ -3333,7 +3331,7 @@ bna_res_req(struct bna_res_info *res_info) | |||
3333 | res_info[BNA_RES_MEM_T_ATTR].res_u.mem_info.mem_type = BNA_MEM_T_DMA; | 3331 | res_info[BNA_RES_MEM_T_ATTR].res_u.mem_info.mem_type = BNA_MEM_T_DMA; |
3334 | res_info[BNA_RES_MEM_T_ATTR].res_u.mem_info.num = 1; | 3332 | res_info[BNA_RES_MEM_T_ATTR].res_u.mem_info.num = 1; |
3335 | res_info[BNA_RES_MEM_T_ATTR].res_u.mem_info.len = | 3333 | res_info[BNA_RES_MEM_T_ATTR].res_u.mem_info.len = |
3336 | ALIGN(bfa_ioc_meminfo(), PAGE_SIZE); | 3334 | ALIGN(bfa_nw_ioc_meminfo(), PAGE_SIZE); |
3337 | 3335 | ||
3338 | /* DMA memory for index segment of an IB */ | 3336 | /* DMA memory for index segment of an IB */ |
3339 | res_info[BNA_RES_MEM_T_IBIDX].res_type = BNA_RES_T_MEM; | 3337 | res_info[BNA_RES_MEM_T_IBIDX].res_type = BNA_RES_T_MEM; |