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/bfa_ioc.h | |
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/bfa_ioc.h')
-rw-r--r-- | drivers/net/bna/bfa_ioc.h | 96 |
1 files changed, 27 insertions, 69 deletions
diff --git a/drivers/net/bna/bfa_ioc.h b/drivers/net/bna/bfa_ioc.h index 2e5c0adef899..7f0719e17efc 100644 --- a/drivers/net/bna/bfa_ioc.h +++ b/drivers/net/bna/bfa_ioc.h | |||
@@ -239,13 +239,9 @@ struct bfa_ioc_hwif { | |||
239 | /** | 239 | /** |
240 | * IOC mailbox interface | 240 | * IOC mailbox interface |
241 | */ | 241 | */ |
242 | void bfa_ioc_mbox_queue(struct bfa_ioc *ioc, struct bfa_mbox_cmd *cmd); | 242 | void bfa_nw_ioc_mbox_queue(struct bfa_ioc *ioc, struct bfa_mbox_cmd *cmd); |
243 | void bfa_ioc_mbox_register(struct bfa_ioc *ioc, | 243 | void bfa_nw_ioc_mbox_isr(struct bfa_ioc *ioc); |
244 | bfa_ioc_mbox_mcfunc_t *mcfuncs); | 244 | void bfa_nw_ioc_mbox_regisr(struct bfa_ioc *ioc, enum bfi_mclass mc, |
245 | void bfa_ioc_mbox_isr(struct bfa_ioc *ioc); | ||
246 | void bfa_ioc_mbox_send(struct bfa_ioc *ioc, void *ioc_msg, int len); | ||
247 | void bfa_ioc_msgget(struct bfa_ioc *ioc, void *mbmsg); | ||
248 | void bfa_ioc_mbox_regisr(struct bfa_ioc *ioc, enum bfi_mclass mc, | ||
249 | bfa_ioc_mbox_mcfunc_t cbfn, void *cbarg); | 245 | bfa_ioc_mbox_mcfunc_t cbfn, void *cbarg); |
250 | 246 | ||
251 | /** | 247 | /** |
@@ -256,83 +252,45 @@ void bfa_ioc_mbox_regisr(struct bfa_ioc *ioc, enum bfi_mclass mc, | |||
256 | ((__ioc)->ioc_hwif->ioc_pll_init((__ioc)->pcidev.pci_bar_kva, \ | 252 | ((__ioc)->ioc_hwif->ioc_pll_init((__ioc)->pcidev.pci_bar_kva, \ |
257 | (__ioc)->fcmode)) | 253 | (__ioc)->fcmode)) |
258 | 254 | ||
259 | enum bfa_status bfa_ioc_pll_init(struct bfa_ioc *ioc); | ||
260 | enum bfa_status bfa_ioc_cb_pll_init(void __iomem *rb, bool fcmode); | ||
261 | enum bfa_status bfa_ioc_ct_pll_init(void __iomem *rb, bool fcmode); | ||
262 | |||
263 | #define bfa_ioc_isr_mode_set(__ioc, __msix) \ | 255 | #define bfa_ioc_isr_mode_set(__ioc, __msix) \ |
264 | ((__ioc)->ioc_hwif->ioc_isr_mode_set(__ioc, __msix)) | 256 | ((__ioc)->ioc_hwif->ioc_isr_mode_set(__ioc, __msix)) |
265 | #define bfa_ioc_ownership_reset(__ioc) \ | 257 | #define bfa_ioc_ownership_reset(__ioc) \ |
266 | ((__ioc)->ioc_hwif->ioc_ownership_reset(__ioc)) | 258 | ((__ioc)->ioc_hwif->ioc_ownership_reset(__ioc)) |
267 | 259 | ||
268 | void bfa_ioc_set_ct_hwif(struct bfa_ioc *ioc); | 260 | void bfa_nw_ioc_set_ct_hwif(struct bfa_ioc *ioc); |
269 | 261 | ||
270 | void bfa_ioc_attach(struct bfa_ioc *ioc, void *bfa, | 262 | void bfa_nw_ioc_attach(struct bfa_ioc *ioc, void *bfa, |
271 | struct bfa_ioc_cbfn *cbfn); | 263 | struct bfa_ioc_cbfn *cbfn); |
272 | void bfa_ioc_auto_recover(bool auto_recover); | 264 | void bfa_nw_ioc_auto_recover(bool auto_recover); |
273 | void bfa_ioc_detach(struct bfa_ioc *ioc); | 265 | void bfa_nw_ioc_detach(struct bfa_ioc *ioc); |
274 | void bfa_ioc_pci_init(struct bfa_ioc *ioc, struct bfa_pcidev *pcidev, | 266 | void bfa_nw_ioc_pci_init(struct bfa_ioc *ioc, struct bfa_pcidev *pcidev, |
275 | enum bfi_mclass mc); | 267 | enum bfi_mclass mc); |
276 | u32 bfa_ioc_meminfo(void); | 268 | u32 bfa_nw_ioc_meminfo(void); |
277 | void bfa_ioc_mem_claim(struct bfa_ioc *ioc, u8 *dm_kva, u64 dm_pa); | 269 | void bfa_nw_ioc_mem_claim(struct bfa_ioc *ioc, u8 *dm_kva, u64 dm_pa); |
278 | void bfa_ioc_enable(struct bfa_ioc *ioc); | 270 | void bfa_nw_ioc_enable(struct bfa_ioc *ioc); |
279 | void bfa_ioc_disable(struct bfa_ioc *ioc); | 271 | void bfa_nw_ioc_disable(struct bfa_ioc *ioc); |
280 | bool bfa_ioc_intx_claim(struct bfa_ioc *ioc); | 272 | |
281 | 273 | void bfa_nw_ioc_error_isr(struct bfa_ioc *ioc); | |
282 | void bfa_ioc_boot(struct bfa_ioc *ioc, u32 boot_type, | 274 | bool bfa_nw_ioc_is_operational(struct bfa_ioc *ioc); |
283 | u32 boot_param); | 275 | |
284 | void bfa_ioc_isr(struct bfa_ioc *ioc, struct bfi_mbmsg *msg); | 276 | void bfa_nw_ioc_get_attr(struct bfa_ioc *ioc, struct bfa_ioc_attr *ioc_attr); |
285 | void bfa_ioc_error_isr(struct bfa_ioc *ioc); | 277 | void bfa_nw_ioc_hbfail_register(struct bfa_ioc *ioc, |
286 | bool bfa_ioc_is_operational(struct bfa_ioc *ioc); | ||
287 | bool bfa_ioc_is_initialized(struct bfa_ioc *ioc); | ||
288 | bool bfa_ioc_is_disabled(struct bfa_ioc *ioc); | ||
289 | bool bfa_ioc_fw_mismatch(struct bfa_ioc *ioc); | ||
290 | bool bfa_ioc_adapter_is_disabled(struct bfa_ioc *ioc); | ||
291 | void bfa_ioc_cfg_complete(struct bfa_ioc *ioc); | ||
292 | enum bfa_ioc_type bfa_ioc_get_type(struct bfa_ioc *ioc); | ||
293 | void bfa_ioc_get_adapter_serial_num(struct bfa_ioc *ioc, char *serial_num); | ||
294 | void bfa_ioc_get_adapter_fw_ver(struct bfa_ioc *ioc, char *fw_ver); | ||
295 | void bfa_ioc_get_adapter_optrom_ver(struct bfa_ioc *ioc, char *optrom_ver); | ||
296 | void bfa_ioc_get_adapter_model(struct bfa_ioc *ioc, char *model); | ||
297 | void bfa_ioc_get_adapter_manufacturer(struct bfa_ioc *ioc, | ||
298 | char *manufacturer); | ||
299 | void bfa_ioc_get_pci_chip_rev(struct bfa_ioc *ioc, char *chip_rev); | ||
300 | enum bfa_ioc_state bfa_ioc_get_state(struct bfa_ioc *ioc); | ||
301 | |||
302 | void bfa_ioc_get_attr(struct bfa_ioc *ioc, struct bfa_ioc_attr *ioc_attr); | ||
303 | void bfa_ioc_get_adapter_attr(struct bfa_ioc *ioc, | ||
304 | struct bfa_adapter_attr *ad_attr); | ||
305 | u32 bfa_ioc_smem_pgnum(struct bfa_ioc *ioc, u32 fmaddr); | ||
306 | u32 bfa_ioc_smem_pgoff(struct bfa_ioc *ioc, u32 fmaddr); | ||
307 | void bfa_ioc_set_fcmode(struct bfa_ioc *ioc); | ||
308 | bool bfa_ioc_get_fcmode(struct bfa_ioc *ioc); | ||
309 | void bfa_ioc_hbfail_register(struct bfa_ioc *ioc, | ||
310 | struct bfa_ioc_hbfail_notify *notify); | 278 | struct bfa_ioc_hbfail_notify *notify); |
311 | bool bfa_ioc_sem_get(void __iomem *sem_reg); | 279 | bool bfa_nw_ioc_sem_get(void __iomem *sem_reg); |
312 | void bfa_ioc_sem_release(void __iomem *sem_reg); | 280 | void bfa_nw_ioc_sem_release(void __iomem *sem_reg); |
313 | void bfa_ioc_hw_sem_release(struct bfa_ioc *ioc); | 281 | void bfa_nw_ioc_hw_sem_release(struct bfa_ioc *ioc); |
314 | void bfa_ioc_fwver_get(struct bfa_ioc *ioc, | 282 | void bfa_nw_ioc_fwver_get(struct bfa_ioc *ioc, |
315 | struct bfi_ioc_image_hdr *fwhdr); | 283 | struct bfi_ioc_image_hdr *fwhdr); |
316 | bool bfa_ioc_fwver_cmp(struct bfa_ioc *ioc, | 284 | bool bfa_nw_ioc_fwver_cmp(struct bfa_ioc *ioc, |
317 | struct bfi_ioc_image_hdr *fwhdr); | 285 | struct bfi_ioc_image_hdr *fwhdr); |
286 | mac_t bfa_nw_ioc_get_mac(struct bfa_ioc *ioc); | ||
318 | 287 | ||
319 | /* | 288 | /* |
320 | * Timeout APIs | 289 | * Timeout APIs |
321 | */ | 290 | */ |
322 | void bfa_ioc_timeout(void *ioc); | 291 | void bfa_nw_ioc_timeout(void *ioc); |
323 | void bfa_ioc_hb_check(void *ioc); | 292 | void bfa_nw_ioc_hb_check(void *ioc); |
324 | void bfa_ioc_sem_timeout(void *ioc); | 293 | void bfa_nw_ioc_sem_timeout(void *ioc); |
325 | |||
326 | /* | ||
327 | * bfa mfg wwn API functions | ||
328 | */ | ||
329 | u64 bfa_ioc_get_pwwn(struct bfa_ioc *ioc); | ||
330 | u64 bfa_ioc_get_nwwn(struct bfa_ioc *ioc); | ||
331 | mac_t bfa_ioc_get_mac(struct bfa_ioc *ioc); | ||
332 | u64 bfa_ioc_get_mfg_pwwn(struct bfa_ioc *ioc); | ||
333 | u64 bfa_ioc_get_mfg_nwwn(struct bfa_ioc *ioc); | ||
334 | mac_t bfa_ioc_get_mfg_mac(struct bfa_ioc *ioc); | ||
335 | u64 bfa_ioc_get_adid(struct bfa_ioc *ioc); | ||
336 | 294 | ||
337 | /* | 295 | /* |
338 | * F/W Image Size & Chunk | 296 | * F/W Image Size & Chunk |