diff options
author | Adrian Bunk <bunk@stusta.de> | 2005-10-30 10:53:30 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2005-11-05 21:00:01 -0500 |
commit | e9ab1d145365a871858f402f3655cd4939fa38d5 (patch) | |
tree | d9a6ce83a766f3693fef16826803ed7a45121d14 /drivers/net/ixgb | |
parent | 70d9d825e0a5a78ec1dacaaaf5c72ff5b0206fab (diff) |
[PATCH] drivers/net/ixgb/: make some code static
This patch makes some needlessly global code static.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/ixgb')
-rw-r--r-- | drivers/net/ixgb/ixgb_ethtool.c | 2 | ||||
-rw-r--r-- | drivers/net/ixgb/ixgb_hw.c | 31 | ||||
-rw-r--r-- | drivers/net/ixgb/ixgb_hw.h | 17 | ||||
-rw-r--r-- | drivers/net/ixgb/ixgb_main.c | 2 |
4 files changed, 24 insertions, 28 deletions
diff --git a/drivers/net/ixgb/ixgb_ethtool.c b/drivers/net/ixgb/ixgb_ethtool.c index 04e47189d830..d38ade5f2f4e 100644 --- a/drivers/net/ixgb/ixgb_ethtool.c +++ b/drivers/net/ixgb/ixgb_ethtool.c | |||
@@ -694,7 +694,7 @@ ixgb_get_strings(struct net_device *netdev, uint32_t stringset, uint8_t *data) | |||
694 | } | 694 | } |
695 | } | 695 | } |
696 | 696 | ||
697 | struct ethtool_ops ixgb_ethtool_ops = { | 697 | static struct ethtool_ops ixgb_ethtool_ops = { |
698 | .get_settings = ixgb_get_settings, | 698 | .get_settings = ixgb_get_settings, |
699 | .set_settings = ixgb_set_settings, | 699 | .set_settings = ixgb_set_settings, |
700 | .get_drvinfo = ixgb_get_drvinfo, | 700 | .get_drvinfo = ixgb_get_drvinfo, |
diff --git a/drivers/net/ixgb/ixgb_hw.c b/drivers/net/ixgb/ixgb_hw.c index 69329c73095a..620cad48bdea 100644 --- a/drivers/net/ixgb/ixgb_hw.c +++ b/drivers/net/ixgb/ixgb_hw.c | |||
@@ -47,9 +47,22 @@ static void ixgb_optics_reset(struct ixgb_hw *hw); | |||
47 | 47 | ||
48 | static ixgb_phy_type ixgb_identify_phy(struct ixgb_hw *hw); | 48 | static ixgb_phy_type ixgb_identify_phy(struct ixgb_hw *hw); |
49 | 49 | ||
50 | uint32_t ixgb_mac_reset(struct ixgb_hw *hw); | 50 | static void ixgb_clear_hw_cntrs(struct ixgb_hw *hw); |
51 | 51 | ||
52 | uint32_t ixgb_mac_reset(struct ixgb_hw *hw) | 52 | static void ixgb_clear_vfta(struct ixgb_hw *hw); |
53 | |||
54 | static void ixgb_init_rx_addrs(struct ixgb_hw *hw); | ||
55 | |||
56 | static uint16_t ixgb_read_phy_reg(struct ixgb_hw *hw, | ||
57 | uint32_t reg_address, | ||
58 | uint32_t phy_address, | ||
59 | uint32_t device_type); | ||
60 | |||
61 | static boolean_t ixgb_setup_fc(struct ixgb_hw *hw); | ||
62 | |||
63 | static boolean_t mac_addr_valid(uint8_t *mac_addr); | ||
64 | |||
65 | static uint32_t ixgb_mac_reset(struct ixgb_hw *hw) | ||
53 | { | 66 | { |
54 | uint32_t ctrl_reg; | 67 | uint32_t ctrl_reg; |
55 | 68 | ||
@@ -335,7 +348,7 @@ ixgb_init_hw(struct ixgb_hw *hw) | |||
335 | * of the receive addresss registers. Clears the multicast table. Assumes | 348 | * of the receive addresss registers. Clears the multicast table. Assumes |
336 | * the receiver is in reset when the routine is called. | 349 | * the receiver is in reset when the routine is called. |
337 | *****************************************************************************/ | 350 | *****************************************************************************/ |
338 | void | 351 | static void |
339 | ixgb_init_rx_addrs(struct ixgb_hw *hw) | 352 | ixgb_init_rx_addrs(struct ixgb_hw *hw) |
340 | { | 353 | { |
341 | uint32_t i; | 354 | uint32_t i; |
@@ -604,7 +617,7 @@ ixgb_write_vfta(struct ixgb_hw *hw, | |||
604 | * | 617 | * |
605 | * hw - Struct containing variables accessed by shared code | 618 | * hw - Struct containing variables accessed by shared code |
606 | *****************************************************************************/ | 619 | *****************************************************************************/ |
607 | void | 620 | static void |
608 | ixgb_clear_vfta(struct ixgb_hw *hw) | 621 | ixgb_clear_vfta(struct ixgb_hw *hw) |
609 | { | 622 | { |
610 | uint32_t offset; | 623 | uint32_t offset; |
@@ -620,7 +633,7 @@ ixgb_clear_vfta(struct ixgb_hw *hw) | |||
620 | * hw - Struct containing variables accessed by shared code | 633 | * hw - Struct containing variables accessed by shared code |
621 | *****************************************************************************/ | 634 | *****************************************************************************/ |
622 | 635 | ||
623 | boolean_t | 636 | static boolean_t |
624 | ixgb_setup_fc(struct ixgb_hw *hw) | 637 | ixgb_setup_fc(struct ixgb_hw *hw) |
625 | { | 638 | { |
626 | uint32_t ctrl_reg; | 639 | uint32_t ctrl_reg; |
@@ -722,7 +735,7 @@ ixgb_setup_fc(struct ixgb_hw *hw) | |||
722 | * This requires that first an address cycle command is sent, followed by a | 735 | * This requires that first an address cycle command is sent, followed by a |
723 | * read command. | 736 | * read command. |
724 | *****************************************************************************/ | 737 | *****************************************************************************/ |
725 | uint16_t | 738 | static uint16_t |
726 | ixgb_read_phy_reg(struct ixgb_hw *hw, | 739 | ixgb_read_phy_reg(struct ixgb_hw *hw, |
727 | uint32_t reg_address, | 740 | uint32_t reg_address, |
728 | uint32_t phy_address, | 741 | uint32_t phy_address, |
@@ -815,7 +828,7 @@ ixgb_read_phy_reg(struct ixgb_hw *hw, | |||
815 | * This requires that first an address cycle command is sent, followed by a | 828 | * This requires that first an address cycle command is sent, followed by a |
816 | * write command. | 829 | * write command. |
817 | *****************************************************************************/ | 830 | *****************************************************************************/ |
818 | void | 831 | static void |
819 | ixgb_write_phy_reg(struct ixgb_hw *hw, | 832 | ixgb_write_phy_reg(struct ixgb_hw *hw, |
820 | uint32_t reg_address, | 833 | uint32_t reg_address, |
821 | uint32_t phy_address, | 834 | uint32_t phy_address, |
@@ -959,7 +972,7 @@ boolean_t ixgb_check_for_bad_link(struct ixgb_hw *hw) | |||
959 | * | 972 | * |
960 | * hw - Struct containing variables accessed by shared code | 973 | * hw - Struct containing variables accessed by shared code |
961 | *****************************************************************************/ | 974 | *****************************************************************************/ |
962 | void | 975 | static void |
963 | ixgb_clear_hw_cntrs(struct ixgb_hw *hw) | 976 | ixgb_clear_hw_cntrs(struct ixgb_hw *hw) |
964 | { | 977 | { |
965 | volatile uint32_t temp_reg; | 978 | volatile uint32_t temp_reg; |
@@ -1114,7 +1127,7 @@ ixgb_get_bus_info(struct ixgb_hw *hw) | |||
1114 | * mac_addr - pointer to MAC address. | 1127 | * mac_addr - pointer to MAC address. |
1115 | * | 1128 | * |
1116 | *****************************************************************************/ | 1129 | *****************************************************************************/ |
1117 | boolean_t | 1130 | static boolean_t |
1118 | mac_addr_valid(uint8_t *mac_addr) | 1131 | mac_addr_valid(uint8_t *mac_addr) |
1119 | { | 1132 | { |
1120 | boolean_t is_valid = TRUE; | 1133 | boolean_t is_valid = TRUE; |
diff --git a/drivers/net/ixgb/ixgb_hw.h b/drivers/net/ixgb/ixgb_hw.h index 8bcf31ed10c2..382c6300ccc2 100644 --- a/drivers/net/ixgb/ixgb_hw.h +++ b/drivers/net/ixgb/ixgb_hw.h | |||
@@ -784,23 +784,8 @@ struct ixgb_hw_stats { | |||
784 | extern boolean_t ixgb_adapter_stop(struct ixgb_hw *hw); | 784 | extern boolean_t ixgb_adapter_stop(struct ixgb_hw *hw); |
785 | extern boolean_t ixgb_init_hw(struct ixgb_hw *hw); | 785 | extern boolean_t ixgb_init_hw(struct ixgb_hw *hw); |
786 | extern boolean_t ixgb_adapter_start(struct ixgb_hw *hw); | 786 | extern boolean_t ixgb_adapter_start(struct ixgb_hw *hw); |
787 | extern void ixgb_init_rx_addrs(struct ixgb_hw *hw); | ||
788 | extern void ixgb_check_for_link(struct ixgb_hw *hw); | 787 | extern void ixgb_check_for_link(struct ixgb_hw *hw); |
789 | extern boolean_t ixgb_check_for_bad_link(struct ixgb_hw *hw); | 788 | extern boolean_t ixgb_check_for_bad_link(struct ixgb_hw *hw); |
790 | extern boolean_t ixgb_setup_fc(struct ixgb_hw *hw); | ||
791 | extern void ixgb_clear_hw_cntrs(struct ixgb_hw *hw); | ||
792 | extern boolean_t mac_addr_valid(uint8_t *mac_addr); | ||
793 | |||
794 | extern uint16_t ixgb_read_phy_reg(struct ixgb_hw *hw, | ||
795 | uint32_t reg_addr, | ||
796 | uint32_t phy_addr, | ||
797 | uint32_t device_type); | ||
798 | |||
799 | extern void ixgb_write_phy_reg(struct ixgb_hw *hw, | ||
800 | uint32_t reg_addr, | ||
801 | uint32_t phy_addr, | ||
802 | uint32_t device_type, | ||
803 | uint16_t data); | ||
804 | 789 | ||
805 | extern void ixgb_rar_set(struct ixgb_hw *hw, | 790 | extern void ixgb_rar_set(struct ixgb_hw *hw, |
806 | uint8_t *addr, | 791 | uint8_t *addr, |
@@ -818,8 +803,6 @@ extern void ixgb_write_vfta(struct ixgb_hw *hw, | |||
818 | uint32_t offset, | 803 | uint32_t offset, |
819 | uint32_t value); | 804 | uint32_t value); |
820 | 805 | ||
821 | extern void ixgb_clear_vfta(struct ixgb_hw *hw); | ||
822 | |||
823 | /* Access functions to eeprom data */ | 806 | /* Access functions to eeprom data */ |
824 | void ixgb_get_ee_mac_addr(struct ixgb_hw *hw, uint8_t *mac_addr); | 807 | void ixgb_get_ee_mac_addr(struct ixgb_hw *hw, uint8_t *mac_addr); |
825 | uint32_t ixgb_get_ee_pba_number(struct ixgb_hw *hw); | 808 | uint32_t ixgb_get_ee_pba_number(struct ixgb_hw *hw); |
diff --git a/drivers/net/ixgb/ixgb_main.c b/drivers/net/ixgb/ixgb_main.c index 176680cb153e..f9f77e4f5965 100644 --- a/drivers/net/ixgb/ixgb_main.c +++ b/drivers/net/ixgb/ixgb_main.c | |||
@@ -45,7 +45,7 @@ | |||
45 | */ | 45 | */ |
46 | 46 | ||
47 | char ixgb_driver_name[] = "ixgb"; | 47 | char ixgb_driver_name[] = "ixgb"; |
48 | char ixgb_driver_string[] = "Intel(R) PRO/10GbE Network Driver"; | 48 | static char ixgb_driver_string[] = "Intel(R) PRO/10GbE Network Driver"; |
49 | 49 | ||
50 | #ifndef CONFIG_IXGB_NAPI | 50 | #ifndef CONFIG_IXGB_NAPI |
51 | #define DRIVERNAPI | 51 | #define DRIVERNAPI |