diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-09 11:34:36 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-09 11:34:36 -0500 |
commit | a7c243b544c0e9f6775c2607decaa59d54fb9e11 (patch) | |
tree | 86fdb4d2d6cef932af7497f28827e7d52b29e48c /drivers/net/s2io.c | |
parent | 7df446e7e043b2ba5fd5de42529f9d797e8b501a (diff) | |
parent | f406db8cba6bbce42b96490e6d31bdec229ad994 (diff) |
Merge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6
Diffstat (limited to 'drivers/net/s2io.c')
-rw-r--r-- | drivers/net/s2io.c | 43 |
1 files changed, 23 insertions, 20 deletions
diff --git a/drivers/net/s2io.c b/drivers/net/s2io.c index 8e41f4cea272..e57df8dfe6b4 100644 --- a/drivers/net/s2io.c +++ b/drivers/net/s2io.c | |||
@@ -1531,7 +1531,7 @@ static int init_nic(struct s2io_nic *nic) | |||
1531 | #define LINK_UP_DOWN_INTERRUPT 1 | 1531 | #define LINK_UP_DOWN_INTERRUPT 1 |
1532 | #define MAC_RMAC_ERR_TIMER 2 | 1532 | #define MAC_RMAC_ERR_TIMER 2 |
1533 | 1533 | ||
1534 | int s2io_link_fault_indication(nic_t *nic) | 1534 | static int s2io_link_fault_indication(nic_t *nic) |
1535 | { | 1535 | { |
1536 | if (nic->intr_type != INTA) | 1536 | if (nic->intr_type != INTA) |
1537 | return MAC_RMAC_ERR_TIMER; | 1537 | return MAC_RMAC_ERR_TIMER; |
@@ -1863,7 +1863,7 @@ static int verify_xena_quiescence(nic_t *sp, u64 val64, int flag) | |||
1863 | * | 1863 | * |
1864 | */ | 1864 | */ |
1865 | 1865 | ||
1866 | void fix_mac_address(nic_t * sp) | 1866 | static void fix_mac_address(nic_t * sp) |
1867 | { | 1867 | { |
1868 | XENA_dev_config_t __iomem *bar0 = sp->bar0; | 1868 | XENA_dev_config_t __iomem *bar0 = sp->bar0; |
1869 | u64 val64; | 1869 | u64 val64; |
@@ -2159,7 +2159,7 @@ int fill_rxd_3buf(nic_t *nic, RxD_t *rxdp, struct sk_buff *skb) | |||
2159 | * SUCCESS on success or an appropriate -ve value on failure. | 2159 | * SUCCESS on success or an appropriate -ve value on failure. |
2160 | */ | 2160 | */ |
2161 | 2161 | ||
2162 | int fill_rx_buffers(struct s2io_nic *nic, int ring_no) | 2162 | static int fill_rx_buffers(struct s2io_nic *nic, int ring_no) |
2163 | { | 2163 | { |
2164 | struct net_device *dev = nic->dev; | 2164 | struct net_device *dev = nic->dev; |
2165 | struct sk_buff *skb; | 2165 | struct sk_buff *skb; |
@@ -2830,7 +2830,7 @@ static void alarm_intr_handler(struct s2io_nic *nic) | |||
2830 | * SUCCESS on success and FAILURE on failure. | 2830 | * SUCCESS on success and FAILURE on failure. |
2831 | */ | 2831 | */ |
2832 | 2832 | ||
2833 | int wait_for_cmd_complete(nic_t * sp) | 2833 | static int wait_for_cmd_complete(nic_t * sp) |
2834 | { | 2834 | { |
2835 | XENA_dev_config_t __iomem *bar0 = sp->bar0; | 2835 | XENA_dev_config_t __iomem *bar0 = sp->bar0; |
2836 | int ret = FAILURE, cnt = 0; | 2836 | int ret = FAILURE, cnt = 0; |
@@ -3076,7 +3076,7 @@ int s2io_set_swapper(nic_t * sp) | |||
3076 | return SUCCESS; | 3076 | return SUCCESS; |
3077 | } | 3077 | } |
3078 | 3078 | ||
3079 | int wait_for_msix_trans(nic_t *nic, int i) | 3079 | static int wait_for_msix_trans(nic_t *nic, int i) |
3080 | { | 3080 | { |
3081 | XENA_dev_config_t *bar0 = (XENA_dev_config_t *) nic->bar0; | 3081 | XENA_dev_config_t *bar0 = (XENA_dev_config_t *) nic->bar0; |
3082 | u64 val64; | 3082 | u64 val64; |
@@ -3115,7 +3115,7 @@ void restore_xmsi_data(nic_t *nic) | |||
3115 | } | 3115 | } |
3116 | } | 3116 | } |
3117 | 3117 | ||
3118 | void store_xmsi_data(nic_t *nic) | 3118 | static void store_xmsi_data(nic_t *nic) |
3119 | { | 3119 | { |
3120 | XENA_dev_config_t *bar0 = (XENA_dev_config_t *) nic->bar0; | 3120 | XENA_dev_config_t *bar0 = (XENA_dev_config_t *) nic->bar0; |
3121 | u64 val64, addr, data; | 3121 | u64 val64, addr, data; |
@@ -3287,7 +3287,7 @@ int s2io_enable_msi_x(nic_t *nic) | |||
3287 | * file on failure. | 3287 | * file on failure. |
3288 | */ | 3288 | */ |
3289 | 3289 | ||
3290 | int s2io_open(struct net_device *dev) | 3290 | static int s2io_open(struct net_device *dev) |
3291 | { | 3291 | { |
3292 | nic_t *sp = dev->priv; | 3292 | nic_t *sp = dev->priv; |
3293 | int err = 0; | 3293 | int err = 0; |
@@ -3417,7 +3417,7 @@ hw_init_failed: | |||
3417 | * file on failure. | 3417 | * file on failure. |
3418 | */ | 3418 | */ |
3419 | 3419 | ||
3420 | int s2io_close(struct net_device *dev) | 3420 | static int s2io_close(struct net_device *dev) |
3421 | { | 3421 | { |
3422 | nic_t *sp = dev->priv; | 3422 | nic_t *sp = dev->priv; |
3423 | int i; | 3423 | int i; |
@@ -3466,7 +3466,7 @@ int s2io_close(struct net_device *dev) | |||
3466 | * 0 on success & 1 on failure. | 3466 | * 0 on success & 1 on failure. |
3467 | */ | 3467 | */ |
3468 | 3468 | ||
3469 | int s2io_xmit(struct sk_buff *skb, struct net_device *dev) | 3469 | static int s2io_xmit(struct sk_buff *skb, struct net_device *dev) |
3470 | { | 3470 | { |
3471 | nic_t *sp = dev->priv; | 3471 | nic_t *sp = dev->priv; |
3472 | u16 frg_cnt, frg_len, i, queue, queue_len, put_off, get_off; | 3472 | u16 frg_cnt, frg_len, i, queue, queue_len, put_off, get_off; |
@@ -3912,7 +3912,7 @@ static void s2io_updt_stats(nic_t *sp) | |||
3912 | * pointer to the updated net_device_stats structure. | 3912 | * pointer to the updated net_device_stats structure. |
3913 | */ | 3913 | */ |
3914 | 3914 | ||
3915 | struct net_device_stats *s2io_get_stats(struct net_device *dev) | 3915 | static struct net_device_stats *s2io_get_stats(struct net_device *dev) |
3916 | { | 3916 | { |
3917 | nic_t *sp = dev->priv; | 3917 | nic_t *sp = dev->priv; |
3918 | mac_info_t *mac_control; | 3918 | mac_info_t *mac_control; |
@@ -5105,19 +5105,20 @@ static void s2io_get_ethtool_stats(struct net_device *dev, | |||
5105 | tmp_stats[i++] = stat_info->sw_stat.double_ecc_errs; | 5105 | tmp_stats[i++] = stat_info->sw_stat.double_ecc_errs; |
5106 | } | 5106 | } |
5107 | 5107 | ||
5108 | int s2io_ethtool_get_regs_len(struct net_device *dev) | 5108 | static int s2io_ethtool_get_regs_len(struct net_device *dev) |
5109 | { | 5109 | { |
5110 | return (XENA_REG_SPACE); | 5110 | return (XENA_REG_SPACE); |
5111 | } | 5111 | } |
5112 | 5112 | ||
5113 | 5113 | ||
5114 | u32 s2io_ethtool_get_rx_csum(struct net_device * dev) | 5114 | static u32 s2io_ethtool_get_rx_csum(struct net_device * dev) |
5115 | { | 5115 | { |
5116 | nic_t *sp = dev->priv; | 5116 | nic_t *sp = dev->priv; |
5117 | 5117 | ||
5118 | return (sp->rx_csum); | 5118 | return (sp->rx_csum); |
5119 | } | 5119 | } |
5120 | int s2io_ethtool_set_rx_csum(struct net_device *dev, u32 data) | 5120 | |
5121 | static int s2io_ethtool_set_rx_csum(struct net_device *dev, u32 data) | ||
5121 | { | 5122 | { |
5122 | nic_t *sp = dev->priv; | 5123 | nic_t *sp = dev->priv; |
5123 | 5124 | ||
@@ -5128,17 +5129,19 @@ int s2io_ethtool_set_rx_csum(struct net_device *dev, u32 data) | |||
5128 | 5129 | ||
5129 | return 0; | 5130 | return 0; |
5130 | } | 5131 | } |
5131 | int s2io_get_eeprom_len(struct net_device *dev) | 5132 | |
5133 | static int s2io_get_eeprom_len(struct net_device *dev) | ||
5132 | { | 5134 | { |
5133 | return (XENA_EEPROM_SPACE); | 5135 | return (XENA_EEPROM_SPACE); |
5134 | } | 5136 | } |
5135 | 5137 | ||
5136 | int s2io_ethtool_self_test_count(struct net_device *dev) | 5138 | static int s2io_ethtool_self_test_count(struct net_device *dev) |
5137 | { | 5139 | { |
5138 | return (S2IO_TEST_LEN); | 5140 | return (S2IO_TEST_LEN); |
5139 | } | 5141 | } |
5140 | void s2io_ethtool_get_strings(struct net_device *dev, | 5142 | |
5141 | u32 stringset, u8 * data) | 5143 | static void s2io_ethtool_get_strings(struct net_device *dev, |
5144 | u32 stringset, u8 * data) | ||
5142 | { | 5145 | { |
5143 | switch (stringset) { | 5146 | switch (stringset) { |
5144 | case ETH_SS_TEST: | 5147 | case ETH_SS_TEST: |
@@ -5154,7 +5157,7 @@ static int s2io_ethtool_get_stats_count(struct net_device *dev) | |||
5154 | return (S2IO_STAT_LEN); | 5157 | return (S2IO_STAT_LEN); |
5155 | } | 5158 | } |
5156 | 5159 | ||
5157 | int s2io_ethtool_op_set_tx_csum(struct net_device *dev, u32 data) | 5160 | static int s2io_ethtool_op_set_tx_csum(struct net_device *dev, u32 data) |
5158 | { | 5161 | { |
5159 | if (data) | 5162 | if (data) |
5160 | dev->features |= NETIF_F_IP_CSUM; | 5163 | dev->features |= NETIF_F_IP_CSUM; |
@@ -5207,7 +5210,7 @@ static struct ethtool_ops netdev_ethtool_ops = { | |||
5207 | * function always return EOPNOTSUPPORTED | 5210 | * function always return EOPNOTSUPPORTED |
5208 | */ | 5211 | */ |
5209 | 5212 | ||
5210 | int s2io_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) | 5213 | static int s2io_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) |
5211 | { | 5214 | { |
5212 | return -EOPNOTSUPP; | 5215 | return -EOPNOTSUPP; |
5213 | } | 5216 | } |
@@ -5223,7 +5226,7 @@ int s2io_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) | |||
5223 | * file on failure. | 5226 | * file on failure. |
5224 | */ | 5227 | */ |
5225 | 5228 | ||
5226 | int s2io_change_mtu(struct net_device *dev, int new_mtu) | 5229 | static int s2io_change_mtu(struct net_device *dev, int new_mtu) |
5227 | { | 5230 | { |
5228 | nic_t *sp = dev->priv; | 5231 | nic_t *sp = dev->priv; |
5229 | 5232 | ||