diff options
author | stephen hemminger <shemminger@vyatta.com> | 2010-10-21 03:50:50 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-10-24 17:55:49 -0400 |
commit | ff2d8d6c1921242cd119395173ef46e2629bcdb2 (patch) | |
tree | 443c3abe209ecc3413315200a41cc7453a8334d7 /drivers/net/atlx | |
parent | 0fb1e54ed17767521c18908d871f780f461ea1a6 (diff) |
atlx: make local functions/data static
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/atlx')
-rw-r--r-- | drivers/net/atlx/atl1.c | 12 | ||||
-rw-r--r-- | drivers/net/atlx/atl1.h | 9 | ||||
-rw-r--r-- | drivers/net/atlx/atlx.c | 4 |
3 files changed, 14 insertions, 11 deletions
diff --git a/drivers/net/atlx/atl1.c b/drivers/net/atlx/atl1.c index dbd27b8e66bd..43579b3b24ac 100644 --- a/drivers/net/atlx/atl1.c +++ b/drivers/net/atlx/atl1.c | |||
@@ -91,6 +91,8 @@ MODULE_VERSION(ATLX_DRIVER_VERSION); | |||
91 | /* Temporary hack for merging atl1 and atl2 */ | 91 | /* Temporary hack for merging atl1 and atl2 */ |
92 | #include "atlx.c" | 92 | #include "atlx.c" |
93 | 93 | ||
94 | static const struct ethtool_ops atl1_ethtool_ops; | ||
95 | |||
94 | /* | 96 | /* |
95 | * This is the only thing that needs to be changed to adjust the | 97 | * This is the only thing that needs to be changed to adjust the |
96 | * maximum number of ports that the driver can manage. | 98 | * maximum number of ports that the driver can manage. |
@@ -353,7 +355,7 @@ static bool atl1_read_eeprom(struct atl1_hw *hw, u32 offset, u32 *p_value) | |||
353 | * hw - Struct containing variables accessed by shared code | 355 | * hw - Struct containing variables accessed by shared code |
354 | * reg_addr - address of the PHY register to read | 356 | * reg_addr - address of the PHY register to read |
355 | */ | 357 | */ |
356 | s32 atl1_read_phy_reg(struct atl1_hw *hw, u16 reg_addr, u16 *phy_data) | 358 | static s32 atl1_read_phy_reg(struct atl1_hw *hw, u16 reg_addr, u16 *phy_data) |
357 | { | 359 | { |
358 | u32 val; | 360 | u32 val; |
359 | int i; | 361 | int i; |
@@ -553,7 +555,7 @@ static s32 atl1_read_mac_addr(struct atl1_hw *hw) | |||
553 | * 1. calcu 32bit CRC for multicast address | 555 | * 1. calcu 32bit CRC for multicast address |
554 | * 2. reverse crc with MSB to LSB | 556 | * 2. reverse crc with MSB to LSB |
555 | */ | 557 | */ |
556 | u32 atl1_hash_mc_addr(struct atl1_hw *hw, u8 *mc_addr) | 558 | static u32 atl1_hash_mc_addr(struct atl1_hw *hw, u8 *mc_addr) |
557 | { | 559 | { |
558 | u32 crc32, value = 0; | 560 | u32 crc32, value = 0; |
559 | int i; | 561 | int i; |
@@ -570,7 +572,7 @@ u32 atl1_hash_mc_addr(struct atl1_hw *hw, u8 *mc_addr) | |||
570 | * hw - Struct containing variables accessed by shared code | 572 | * hw - Struct containing variables accessed by shared code |
571 | * hash_value - Multicast address hash value | 573 | * hash_value - Multicast address hash value |
572 | */ | 574 | */ |
573 | void atl1_hash_set(struct atl1_hw *hw, u32 hash_value) | 575 | static void atl1_hash_set(struct atl1_hw *hw, u32 hash_value) |
574 | { | 576 | { |
575 | u32 hash_bit, hash_reg; | 577 | u32 hash_bit, hash_reg; |
576 | u32 mta; | 578 | u32 mta; |
@@ -914,7 +916,7 @@ static s32 atl1_get_speed_and_duplex(struct atl1_hw *hw, u16 *speed, u16 *duplex | |||
914 | return 0; | 916 | return 0; |
915 | } | 917 | } |
916 | 918 | ||
917 | void atl1_set_mac_addr(struct atl1_hw *hw) | 919 | static void atl1_set_mac_addr(struct atl1_hw *hw) |
918 | { | 920 | { |
919 | u32 value; | 921 | u32 value; |
920 | /* | 922 | /* |
@@ -3658,7 +3660,7 @@ static int atl1_nway_reset(struct net_device *netdev) | |||
3658 | return 0; | 3660 | return 0; |
3659 | } | 3661 | } |
3660 | 3662 | ||
3661 | const struct ethtool_ops atl1_ethtool_ops = { | 3663 | static const struct ethtool_ops atl1_ethtool_ops = { |
3662 | .get_settings = atl1_get_settings, | 3664 | .get_settings = atl1_get_settings, |
3663 | .set_settings = atl1_set_settings, | 3665 | .set_settings = atl1_set_settings, |
3664 | .get_drvinfo = atl1_get_drvinfo, | 3666 | .get_drvinfo = atl1_get_drvinfo, |
diff --git a/drivers/net/atlx/atl1.h b/drivers/net/atlx/atl1.h index 9c0ddb273ac8..68de8cbfb3ec 100644 --- a/drivers/net/atlx/atl1.h +++ b/drivers/net/atlx/atl1.h | |||
@@ -56,16 +56,13 @@ struct atl1_adapter; | |||
56 | struct atl1_hw; | 56 | struct atl1_hw; |
57 | 57 | ||
58 | /* function prototypes needed by multiple files */ | 58 | /* function prototypes needed by multiple files */ |
59 | u32 atl1_hash_mc_addr(struct atl1_hw *hw, u8 *mc_addr); | 59 | static u32 atl1_hash_mc_addr(struct atl1_hw *hw, u8 *mc_addr); |
60 | void atl1_hash_set(struct atl1_hw *hw, u32 hash_value); | 60 | static void atl1_hash_set(struct atl1_hw *hw, u32 hash_value); |
61 | s32 atl1_read_phy_reg(struct atl1_hw *hw, u16 reg_addr, u16 *phy_data); | 61 | static void atl1_set_mac_addr(struct atl1_hw *hw); |
62 | void atl1_set_mac_addr(struct atl1_hw *hw); | ||
63 | static int atl1_mii_ioctl(struct net_device *netdev, struct ifreq *ifr, | 62 | static int atl1_mii_ioctl(struct net_device *netdev, struct ifreq *ifr, |
64 | int cmd); | 63 | int cmd); |
65 | static u32 atl1_check_link(struct atl1_adapter *adapter); | 64 | static u32 atl1_check_link(struct atl1_adapter *adapter); |
66 | 65 | ||
67 | extern const struct ethtool_ops atl1_ethtool_ops; | ||
68 | |||
69 | /* hardware definitions specific to L1 */ | 66 | /* hardware definitions specific to L1 */ |
70 | 67 | ||
71 | /* Block IDLE Status Register */ | 68 | /* Block IDLE Status Register */ |
diff --git a/drivers/net/atlx/atlx.c b/drivers/net/atlx/atlx.c index f979ea2d6d3c..afb7f7dd1bb1 100644 --- a/drivers/net/atlx/atlx.c +++ b/drivers/net/atlx/atlx.c | |||
@@ -41,6 +41,10 @@ | |||
41 | 41 | ||
42 | #include "atlx.h" | 42 | #include "atlx.h" |
43 | 43 | ||
44 | static s32 atlx_read_phy_reg(struct atl1_hw *hw, u16 reg_addr, u16 *phy_data); | ||
45 | static u32 atlx_hash_mc_addr(struct atl1_hw *hw, u8 *mc_addr); | ||
46 | static void atlx_set_mac_addr(struct atl1_hw *hw); | ||
47 | |||
44 | static struct atlx_spi_flash_dev flash_table[] = { | 48 | static struct atlx_spi_flash_dev flash_table[] = { |
45 | /* MFR_NAME WRSR READ PRGM WREN WRDI RDSR RDID SEC_ERS CHIP_ERS */ | 49 | /* MFR_NAME WRSR READ PRGM WREN WRDI RDSR RDID SEC_ERS CHIP_ERS */ |
46 | {"Atmel", 0x00, 0x03, 0x02, 0x06, 0x04, 0x05, 0x15, 0x52, 0x62}, | 50 | {"Atmel", 0x00, 0x03, 0x02, 0x06, 0x04, 0x05, 0x15, 0x52, 0x62}, |