diff options
Diffstat (limited to 'drivers/net/bnx2x/bnx2x_init_ops.h')
-rw-r--r-- | drivers/net/bnx2x/bnx2x_init_ops.h | 34 |
1 files changed, 19 insertions, 15 deletions
diff --git a/drivers/net/bnx2x/bnx2x_init_ops.h b/drivers/net/bnx2x/bnx2x_init_ops.h index e65de784182c..a306b0e46b61 100644 --- a/drivers/net/bnx2x/bnx2x_init_ops.h +++ b/drivers/net/bnx2x/bnx2x_init_ops.h | |||
@@ -16,7 +16,9 @@ | |||
16 | #define BNX2X_INIT_OPS_H | 16 | #define BNX2X_INIT_OPS_H |
17 | 17 | ||
18 | static int bnx2x_gunzip(struct bnx2x *bp, const u8 *zbuf, int len); | 18 | static int bnx2x_gunzip(struct bnx2x *bp, const u8 *zbuf, int len); |
19 | 19 | static void bnx2x_reg_wr_ind(struct bnx2x *bp, u32 addr, u32 val); | |
20 | static void bnx2x_write_dmae_phys_len(struct bnx2x *bp, dma_addr_t phys_addr, | ||
21 | u32 addr, u32 len); | ||
20 | 22 | ||
21 | static void bnx2x_init_str_wr(struct bnx2x *bp, u32 addr, const u32 *data, | 23 | static void bnx2x_init_str_wr(struct bnx2x *bp, u32 addr, const u32 *data, |
22 | u32 len) | 24 | u32 len) |
@@ -589,7 +591,7 @@ static int bnx2x_ilt_client_mem_op(struct bnx2x *bp, int cli_num, u8 memop) | |||
589 | return rc; | 591 | return rc; |
590 | } | 592 | } |
591 | 593 | ||
592 | int bnx2x_ilt_mem_op(struct bnx2x *bp, u8 memop) | 594 | static int bnx2x_ilt_mem_op(struct bnx2x *bp, u8 memop) |
593 | { | 595 | { |
594 | int rc = bnx2x_ilt_client_mem_op(bp, ILT_CLIENT_CDU, memop); | 596 | int rc = bnx2x_ilt_client_mem_op(bp, ILT_CLIENT_CDU, memop); |
595 | if (!rc) | 597 | if (!rc) |
@@ -635,7 +637,7 @@ static void bnx2x_ilt_line_init_op(struct bnx2x *bp, struct bnx2x_ilt *ilt, | |||
635 | } | 637 | } |
636 | } | 638 | } |
637 | 639 | ||
638 | void bnx2x_ilt_boundry_init_op(struct bnx2x *bp, | 640 | static void bnx2x_ilt_boundry_init_op(struct bnx2x *bp, |
639 | struct ilt_client_info *ilt_cli, | 641 | struct ilt_client_info *ilt_cli, |
640 | u32 ilt_start, u8 initop) | 642 | u32 ilt_start, u8 initop) |
641 | { | 643 | { |
@@ -688,8 +690,10 @@ void bnx2x_ilt_boundry_init_op(struct bnx2x *bp, | |||
688 | } | 690 | } |
689 | } | 691 | } |
690 | 692 | ||
691 | void bnx2x_ilt_client_init_op_ilt(struct bnx2x *bp, struct bnx2x_ilt *ilt, | 693 | static void bnx2x_ilt_client_init_op_ilt(struct bnx2x *bp, |
692 | struct ilt_client_info *ilt_cli, u8 initop) | 694 | struct bnx2x_ilt *ilt, |
695 | struct ilt_client_info *ilt_cli, | ||
696 | u8 initop) | ||
693 | { | 697 | { |
694 | int i; | 698 | int i; |
695 | 699 | ||
@@ -703,8 +707,8 @@ void bnx2x_ilt_client_init_op_ilt(struct bnx2x *bp, struct bnx2x_ilt *ilt, | |||
703 | bnx2x_ilt_boundry_init_op(bp, ilt_cli, ilt->start_line, initop); | 707 | bnx2x_ilt_boundry_init_op(bp, ilt_cli, ilt->start_line, initop); |
704 | } | 708 | } |
705 | 709 | ||
706 | void bnx2x_ilt_client_init_op(struct bnx2x *bp, | 710 | static void bnx2x_ilt_client_init_op(struct bnx2x *bp, |
707 | struct ilt_client_info *ilt_cli, u8 initop) | 711 | struct ilt_client_info *ilt_cli, u8 initop) |
708 | { | 712 | { |
709 | struct bnx2x_ilt *ilt = BP_ILT(bp); | 713 | struct bnx2x_ilt *ilt = BP_ILT(bp); |
710 | 714 | ||
@@ -720,7 +724,7 @@ static void bnx2x_ilt_client_id_init_op(struct bnx2x *bp, | |||
720 | bnx2x_ilt_client_init_op(bp, ilt_cli, initop); | 724 | bnx2x_ilt_client_init_op(bp, ilt_cli, initop); |
721 | } | 725 | } |
722 | 726 | ||
723 | void bnx2x_ilt_init_op(struct bnx2x *bp, u8 initop) | 727 | static void bnx2x_ilt_init_op(struct bnx2x *bp, u8 initop) |
724 | { | 728 | { |
725 | bnx2x_ilt_client_id_init_op(bp, ILT_CLIENT_CDU, initop); | 729 | bnx2x_ilt_client_id_init_op(bp, ILT_CLIENT_CDU, initop); |
726 | bnx2x_ilt_client_id_init_op(bp, ILT_CLIENT_QM, initop); | 730 | bnx2x_ilt_client_id_init_op(bp, ILT_CLIENT_QM, initop); |
@@ -752,7 +756,7 @@ static void bnx2x_ilt_init_client_psz(struct bnx2x *bp, int cli_num, | |||
752 | * called during init common stage, ilt clients should be initialized | 756 | * called during init common stage, ilt clients should be initialized |
753 | * prioir to calling this function | 757 | * prioir to calling this function |
754 | */ | 758 | */ |
755 | void bnx2x_ilt_init_page_size(struct bnx2x *bp, u8 initop) | 759 | static void bnx2x_ilt_init_page_size(struct bnx2x *bp, u8 initop) |
756 | { | 760 | { |
757 | bnx2x_ilt_init_client_psz(bp, ILT_CLIENT_CDU, | 761 | bnx2x_ilt_init_client_psz(bp, ILT_CLIENT_CDU, |
758 | PXP2_REG_RQ_CDU_P_SIZE, initop); | 762 | PXP2_REG_RQ_CDU_P_SIZE, initop); |
@@ -772,8 +776,8 @@ void bnx2x_ilt_init_page_size(struct bnx2x *bp, u8 initop) | |||
772 | #define QM_INIT(cid_cnt) (cid_cnt > QM_INIT_MIN_CID_COUNT) | 776 | #define QM_INIT(cid_cnt) (cid_cnt > QM_INIT_MIN_CID_COUNT) |
773 | 777 | ||
774 | /* called during init port stage */ | 778 | /* called during init port stage */ |
775 | void bnx2x_qm_init_cid_count(struct bnx2x *bp, int qm_cid_count, | 779 | static void bnx2x_qm_init_cid_count(struct bnx2x *bp, int qm_cid_count, |
776 | u8 initop) | 780 | u8 initop) |
777 | { | 781 | { |
778 | int port = BP_PORT(bp); | 782 | int port = BP_PORT(bp); |
779 | 783 | ||
@@ -814,8 +818,8 @@ static void bnx2x_qm_set_ptr_table(struct bnx2x *bp, int qm_cid_count) | |||
814 | } | 818 | } |
815 | 819 | ||
816 | /* called during init common stage */ | 820 | /* called during init common stage */ |
817 | void bnx2x_qm_init_ptr_table(struct bnx2x *bp, int qm_cid_count, | 821 | static void bnx2x_qm_init_ptr_table(struct bnx2x *bp, int qm_cid_count, |
818 | u8 initop) | 822 | u8 initop) |
819 | { | 823 | { |
820 | if (!QM_INIT(qm_cid_count)) | 824 | if (!QM_INIT(qm_cid_count)) |
821 | return; | 825 | return; |
@@ -836,8 +840,8 @@ void bnx2x_qm_init_ptr_table(struct bnx2x *bp, int qm_cid_count, | |||
836 | ****************************************************************************/ | 840 | ****************************************************************************/ |
837 | 841 | ||
838 | /* called during init func stage */ | 842 | /* called during init func stage */ |
839 | void bnx2x_src_init_t2(struct bnx2x *bp, struct src_ent *t2, | 843 | static void bnx2x_src_init_t2(struct bnx2x *bp, struct src_ent *t2, |
840 | dma_addr_t t2_mapping, int src_cid_count) | 844 | dma_addr_t t2_mapping, int src_cid_count) |
841 | { | 845 | { |
842 | int i; | 846 | int i; |
843 | int port = BP_PORT(bp); | 847 | int port = BP_PORT(bp); |