diff options
author | Maggie Zhang <xmzhang@brocade.com> | 2010-12-09 22:07:46 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-12-21 13:24:50 -0500 |
commit | df0f1933eb5454a5c481311837076056557467ad (patch) | |
tree | 6eb376420c7fd6db38b0b6b045a3b6eda28d9281 /drivers/scsi/bfa/bfa_core.c | |
parent | 402c6eec1bd04581c04de758e4efddc020b78f91 (diff) |
[SCSI] bfa: remove unused and empty functions
Removed unused and empty functions.
Signed-off-by: Maggie Zhang <xmzhang@brocade.com>
Signed-off-by: Jing Huang <xmzhang@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/bfa/bfa_core.c')
-rw-r--r-- | drivers/scsi/bfa/bfa_core.c | 79 |
1 files changed, 1 insertions, 78 deletions
diff --git a/drivers/scsi/bfa/bfa_core.c b/drivers/scsi/bfa/bfa_core.c index 2345f48dc57..90e0f81ae42 100644 --- a/drivers/scsi/bfa/bfa_core.c +++ b/drivers/scsi/bfa/bfa_core.c | |||
@@ -104,9 +104,6 @@ bfa_msix_all(struct bfa_s *bfa, int vec) | |||
104 | bfa_intx(bfa); | 104 | bfa_intx(bfa); |
105 | } | 105 | } |
106 | 106 | ||
107 | /* | ||
108 | * hal_intr_api | ||
109 | */ | ||
110 | bfa_boolean_t | 107 | bfa_boolean_t |
111 | bfa_intx(struct bfa_s *bfa) | 108 | bfa_intx(struct bfa_s *bfa) |
112 | { | 109 | { |
@@ -151,18 +148,6 @@ bfa_intx(struct bfa_s *bfa) | |||
151 | } | 148 | } |
152 | 149 | ||
153 | void | 150 | void |
154 | bfa_intx_enable(struct bfa_s *bfa) | ||
155 | { | ||
156 | writel(bfa->iocfc.intr_mask, bfa->iocfc.bfa_regs.intr_mask); | ||
157 | } | ||
158 | |||
159 | void | ||
160 | bfa_intx_disable(struct bfa_s *bfa) | ||
161 | { | ||
162 | writel(-1L, bfa->iocfc.bfa_regs.intr_mask); | ||
163 | } | ||
164 | |||
165 | void | ||
166 | bfa_isr_enable(struct bfa_s *bfa) | 151 | bfa_isr_enable(struct bfa_s *bfa) |
167 | { | 152 | { |
168 | u32 intr_unmask; | 153 | u32 intr_unmask; |
@@ -317,18 +302,12 @@ bfa_msix_lpu_err(struct bfa_s *bfa, int vec) | |||
317 | } | 302 | } |
318 | } | 303 | } |
319 | 304 | ||
320 | void | ||
321 | bfa_isr_bind(enum bfi_mclass mc, bfa_isr_func_t isr_func) | ||
322 | { | ||
323 | bfa_isrs[mc] = isr_func; | ||
324 | } | ||
325 | |||
326 | /* | 305 | /* |
327 | * BFA IOC FC related functions | 306 | * BFA IOC FC related functions |
328 | */ | 307 | */ |
329 | 308 | ||
330 | /* | 309 | /* |
331 | * hal_ioc_pvt BFA IOC private functions | 310 | * BFA IOC private functions |
332 | */ | 311 | */ |
333 | 312 | ||
334 | static void | 313 | static void |
@@ -735,9 +714,6 @@ bfa_iocfc_reset_cbfn(void *bfa_arg) | |||
735 | bfa_isr_enable(bfa); | 714 | bfa_isr_enable(bfa); |
736 | } | 715 | } |
737 | 716 | ||
738 | /* | ||
739 | * hal_ioc_public | ||
740 | */ | ||
741 | 717 | ||
742 | /* | 718 | /* |
743 | * Query IOC memory requirement information. | 719 | * Query IOC memory requirement information. |
@@ -857,18 +833,6 @@ bfa_iocfc_isr(void *bfaarg, struct bfi_mbmsg_s *m) | |||
857 | } | 833 | } |
858 | 834 | ||
859 | void | 835 | void |
860 | bfa_adapter_get_attr(struct bfa_s *bfa, struct bfa_adapter_attr_s *ad_attr) | ||
861 | { | ||
862 | bfa_ioc_get_adapter_attr(&bfa->ioc, ad_attr); | ||
863 | } | ||
864 | |||
865 | u64 | ||
866 | bfa_adapter_get_id(struct bfa_s *bfa) | ||
867 | { | ||
868 | return bfa_ioc_get_adid(&bfa->ioc); | ||
869 | } | ||
870 | |||
871 | void | ||
872 | bfa_iocfc_get_attr(struct bfa_s *bfa, struct bfa_iocfc_attr_s *attr) | 836 | bfa_iocfc_get_attr(struct bfa_s *bfa, struct bfa_iocfc_attr_s *attr) |
873 | { | 837 | { |
874 | struct bfa_iocfc_s *iocfc = &bfa->iocfc; | 838 | struct bfa_iocfc_s *iocfc = &bfa->iocfc; |
@@ -998,9 +962,6 @@ bfa_iocfc_get_pbc_vports(struct bfa_s *bfa, struct bfi_pbc_vport_s *pbc_vport) | |||
998 | return cfgrsp->pbc_cfg.nvports; | 962 | return cfgrsp->pbc_cfg.nvports; |
999 | } | 963 | } |
1000 | 964 | ||
1001 | /* | ||
1002 | * hal_api | ||
1003 | */ | ||
1004 | 965 | ||
1005 | /* | 966 | /* |
1006 | * Use this function query the memory requirement of the BFA library. | 967 | * Use this function query the memory requirement of the BFA library. |
@@ -1338,15 +1299,6 @@ bfa_debug_fwsave(struct bfa_s *bfa, void *trcdata, int *trclen) | |||
1338 | } | 1299 | } |
1339 | 1300 | ||
1340 | /* | 1301 | /* |
1341 | * Clear the saved firmware trace information of an IOC. | ||
1342 | */ | ||
1343 | void | ||
1344 | bfa_debug_fwsave_clear(struct bfa_s *bfa) | ||
1345 | { | ||
1346 | bfa_ioc_debug_fwsave_clear(&bfa->ioc); | ||
1347 | } | ||
1348 | |||
1349 | /* | ||
1350 | * Fetch firmware trace data. | 1302 | * Fetch firmware trace data. |
1351 | * | 1303 | * |
1352 | * @param[in] bfa BFA instance | 1304 | * @param[in] bfa BFA instance |
@@ -1378,32 +1330,3 @@ bfa_debug_fwcore(struct bfa_s *bfa, void *buf, u32 *offset, int *buflen) | |||
1378 | { | 1330 | { |
1379 | return bfa_ioc_debug_fwcore(&bfa->ioc, buf, offset, buflen); | 1331 | return bfa_ioc_debug_fwcore(&bfa->ioc, buf, offset, buflen); |
1380 | } | 1332 | } |
1381 | /* | ||
1382 | * Reset hw semaphore & usage cnt regs and initialize. | ||
1383 | */ | ||
1384 | void | ||
1385 | bfa_chip_reset(struct bfa_s *bfa) | ||
1386 | { | ||
1387 | bfa_ioc_ownership_reset(&bfa->ioc); | ||
1388 | bfa_ioc_pll_init(&bfa->ioc); | ||
1389 | } | ||
1390 | |||
1391 | /* | ||
1392 | * Fetch firmware statistics data. | ||
1393 | * | ||
1394 | * @param[in] bfa BFA instance | ||
1395 | * @param[out] data Firmware stats buffer | ||
1396 | * | ||
1397 | * @retval BFA_STATUS_OK Firmware trace is fetched. | ||
1398 | */ | ||
1399 | bfa_status_t | ||
1400 | bfa_fw_stats_get(struct bfa_s *bfa, void *data) | ||
1401 | { | ||
1402 | return bfa_ioc_fw_stats_get(&bfa->ioc, data); | ||
1403 | } | ||
1404 | |||
1405 | bfa_status_t | ||
1406 | bfa_fw_stats_clear(struct bfa_s *bfa) | ||
1407 | { | ||
1408 | return bfa_ioc_fw_stats_clear(&bfa->ioc); | ||
1409 | } | ||