diff options
-rw-r--r-- | drivers/net/sfc/efx.c | 3 | ||||
-rw-r--r-- | drivers/net/sfc/efx.h | 27 | ||||
-rw-r--r-- | drivers/net/sfc/ethtool.c | 1 | ||||
-rw-r--r-- | drivers/net/sfc/ethtool.h | 27 | ||||
-rw-r--r-- | drivers/net/sfc/rx.c | 1 | ||||
-rw-r--r-- | drivers/net/sfc/rx.h | 26 | ||||
-rw-r--r-- | drivers/net/sfc/selftest.c | 1 | ||||
-rw-r--r-- | drivers/net/sfc/tx.c | 1 | ||||
-rw-r--r-- | drivers/net/sfc/tx.h | 25 |
9 files changed, 25 insertions, 87 deletions
diff --git a/drivers/net/sfc/efx.c b/drivers/net/sfc/efx.c index ea31141b1737..cb7899532659 100644 --- a/drivers/net/sfc/efx.c +++ b/drivers/net/sfc/efx.c | |||
@@ -21,9 +21,6 @@ | |||
21 | #include <linux/ethtool.h> | 21 | #include <linux/ethtool.h> |
22 | #include <linux/topology.h> | 22 | #include <linux/topology.h> |
23 | #include "net_driver.h" | 23 | #include "net_driver.h" |
24 | #include "ethtool.h" | ||
25 | #include "tx.h" | ||
26 | #include "rx.h" | ||
27 | #include "efx.h" | 24 | #include "efx.h" |
28 | #include "mdio_10g.h" | 25 | #include "mdio_10g.h" |
29 | #include "falcon.h" | 26 | #include "falcon.h" |
diff --git a/drivers/net/sfc/efx.h b/drivers/net/sfc/efx.h index 9d83322e8517..3497b036f408 100644 --- a/drivers/net/sfc/efx.h +++ b/drivers/net/sfc/efx.h | |||
@@ -23,8 +23,15 @@ | |||
23 | #define EFX_MEM_BAR 2 | 23 | #define EFX_MEM_BAR 2 |
24 | 24 | ||
25 | /* TX */ | 25 | /* TX */ |
26 | extern netdev_tx_t efx_enqueue_skb(struct efx_tx_queue *tx_queue, | 26 | extern int efx_probe_tx_queue(struct efx_tx_queue *tx_queue); |
27 | struct sk_buff *skb); | 27 | extern void efx_remove_tx_queue(struct efx_tx_queue *tx_queue); |
28 | extern void efx_init_tx_queue(struct efx_tx_queue *tx_queue); | ||
29 | extern void efx_fini_tx_queue(struct efx_tx_queue *tx_queue); | ||
30 | extern void efx_release_tx_buffers(struct efx_tx_queue *tx_queue); | ||
31 | extern netdev_tx_t | ||
32 | efx_hard_start_xmit(struct sk_buff *skb, struct net_device *net_dev); | ||
33 | extern netdev_tx_t | ||
34 | efx_enqueue_skb(struct efx_tx_queue *tx_queue, struct sk_buff *skb); | ||
28 | extern void efx_xmit_done(struct efx_tx_queue *tx_queue, unsigned int index); | 35 | extern void efx_xmit_done(struct efx_tx_queue *tx_queue, unsigned int index); |
29 | extern void efx_stop_queue(struct efx_nic *efx); | 36 | extern void efx_stop_queue(struct efx_nic *efx); |
30 | extern void efx_wake_queue(struct efx_nic *efx); | 37 | extern void efx_wake_queue(struct efx_nic *efx); |
@@ -32,6 +39,15 @@ extern void efx_wake_queue(struct efx_nic *efx); | |||
32 | #define EFX_TXQ_MASK (EFX_TXQ_SIZE - 1) | 39 | #define EFX_TXQ_MASK (EFX_TXQ_SIZE - 1) |
33 | 40 | ||
34 | /* RX */ | 41 | /* RX */ |
42 | extern int efx_probe_rx_queue(struct efx_rx_queue *rx_queue); | ||
43 | extern void efx_remove_rx_queue(struct efx_rx_queue *rx_queue); | ||
44 | extern void efx_init_rx_queue(struct efx_rx_queue *rx_queue); | ||
45 | extern void efx_fini_rx_queue(struct efx_rx_queue *rx_queue); | ||
46 | extern void efx_rx_strategy(struct efx_channel *channel); | ||
47 | extern void efx_fast_push_rx_descriptors(struct efx_rx_queue *rx_queue); | ||
48 | extern void efx_rx_work(struct work_struct *data); | ||
49 | extern void __efx_rx_packet(struct efx_channel *channel, | ||
50 | struct efx_rx_buffer *rx_buf, bool checksummed); | ||
35 | extern void efx_rx_packet(struct efx_rx_queue *rx_queue, unsigned int index, | 51 | extern void efx_rx_packet(struct efx_rx_queue *rx_queue, unsigned int index, |
36 | unsigned int len, bool checksummed, bool discard); | 52 | unsigned int len, bool checksummed, bool discard); |
37 | extern void efx_schedule_slow_fill(struct efx_rx_queue *rx_queue, int delay); | 53 | extern void efx_schedule_slow_fill(struct efx_rx_queue *rx_queue, int delay); |
@@ -50,6 +66,13 @@ extern void efx_stats_enable(struct efx_nic *efx); | |||
50 | extern void efx_reconfigure_port(struct efx_nic *efx); | 66 | extern void efx_reconfigure_port(struct efx_nic *efx); |
51 | extern void __efx_reconfigure_port(struct efx_nic *efx); | 67 | extern void __efx_reconfigure_port(struct efx_nic *efx); |
52 | 68 | ||
69 | /* Ethtool support */ | ||
70 | extern int efx_ethtool_get_settings(struct net_device *net_dev, | ||
71 | struct ethtool_cmd *ecmd); | ||
72 | extern int efx_ethtool_set_settings(struct net_device *net_dev, | ||
73 | struct ethtool_cmd *ecmd); | ||
74 | extern const struct ethtool_ops efx_ethtool_ops; | ||
75 | |||
53 | /* Reset handling */ | 76 | /* Reset handling */ |
54 | extern void efx_reset_down(struct efx_nic *efx, enum reset_type method, | 77 | extern void efx_reset_down(struct efx_nic *efx, enum reset_type method, |
55 | struct ethtool_cmd *ecmd); | 78 | struct ethtool_cmd *ecmd); |
diff --git a/drivers/net/sfc/ethtool.c b/drivers/net/sfc/ethtool.c index eb12f201ab00..e8afd784e6b2 100644 --- a/drivers/net/sfc/ethtool.c +++ b/drivers/net/sfc/ethtool.c | |||
@@ -16,7 +16,6 @@ | |||
16 | #include "workarounds.h" | 16 | #include "workarounds.h" |
17 | #include "selftest.h" | 17 | #include "selftest.h" |
18 | #include "efx.h" | 18 | #include "efx.h" |
19 | #include "ethtool.h" | ||
20 | #include "falcon.h" | 19 | #include "falcon.h" |
21 | #include "spi.h" | 20 | #include "spi.h" |
22 | #include "mdio_10g.h" | 21 | #include "mdio_10g.h" |
diff --git a/drivers/net/sfc/ethtool.h b/drivers/net/sfc/ethtool.h deleted file mode 100644 index 295ead403356..000000000000 --- a/drivers/net/sfc/ethtool.h +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
1 | /**************************************************************************** | ||
2 | * Driver for Solarflare Solarstorm network controllers and boards | ||
3 | * Copyright 2005 Fen Systems Ltd. | ||
4 | * Copyright 2006 Solarflare Communications Inc. | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify it | ||
7 | * under the terms of the GNU General Public License version 2 as published | ||
8 | * by the Free Software Foundation, incorporated herein by reference. | ||
9 | */ | ||
10 | |||
11 | #ifndef EFX_ETHTOOL_H | ||
12 | #define EFX_ETHTOOL_H | ||
13 | |||
14 | #include "net_driver.h" | ||
15 | |||
16 | /* | ||
17 | * Ethtool support | ||
18 | */ | ||
19 | |||
20 | extern int efx_ethtool_get_settings(struct net_device *net_dev, | ||
21 | struct ethtool_cmd *ecmd); | ||
22 | extern int efx_ethtool_set_settings(struct net_device *net_dev, | ||
23 | struct ethtool_cmd *ecmd); | ||
24 | |||
25 | extern const struct ethtool_ops efx_ethtool_ops; | ||
26 | |||
27 | #endif /* EFX_ETHTOOL_H */ | ||
diff --git a/drivers/net/sfc/rx.c b/drivers/net/sfc/rx.c index 9f22d15d3d50..accf055ff89d 100644 --- a/drivers/net/sfc/rx.c +++ b/drivers/net/sfc/rx.c | |||
@@ -16,7 +16,6 @@ | |||
16 | #include <net/ip.h> | 16 | #include <net/ip.h> |
17 | #include <net/checksum.h> | 17 | #include <net/checksum.h> |
18 | #include "net_driver.h" | 18 | #include "net_driver.h" |
19 | #include "rx.h" | ||
20 | #include "efx.h" | 19 | #include "efx.h" |
21 | #include "falcon.h" | 20 | #include "falcon.h" |
22 | #include "selftest.h" | 21 | #include "selftest.h" |
diff --git a/drivers/net/sfc/rx.h b/drivers/net/sfc/rx.h deleted file mode 100644 index 42ee7555a80b..000000000000 --- a/drivers/net/sfc/rx.h +++ /dev/null | |||
@@ -1,26 +0,0 @@ | |||
1 | /**************************************************************************** | ||
2 | * Driver for Solarflare Solarstorm network controllers and boards | ||
3 | * Copyright 2006 Solarflare Communications Inc. | ||
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify it | ||
6 | * under the terms of the GNU General Public License version 2 as published | ||
7 | * by the Free Software Foundation, incorporated herein by reference. | ||
8 | */ | ||
9 | |||
10 | #ifndef EFX_RX_H | ||
11 | #define EFX_RX_H | ||
12 | |||
13 | #include "net_driver.h" | ||
14 | |||
15 | int efx_probe_rx_queue(struct efx_rx_queue *rx_queue); | ||
16 | void efx_remove_rx_queue(struct efx_rx_queue *rx_queue); | ||
17 | void efx_init_rx_queue(struct efx_rx_queue *rx_queue); | ||
18 | void efx_fini_rx_queue(struct efx_rx_queue *rx_queue); | ||
19 | |||
20 | void efx_rx_strategy(struct efx_channel *channel); | ||
21 | void efx_fast_push_rx_descriptors(struct efx_rx_queue *rx_queue); | ||
22 | void efx_rx_work(struct work_struct *data); | ||
23 | void __efx_rx_packet(struct efx_channel *channel, | ||
24 | struct efx_rx_buffer *rx_buf, bool checksummed); | ||
25 | |||
26 | #endif /* EFX_RX_H */ | ||
diff --git a/drivers/net/sfc/selftest.c b/drivers/net/sfc/selftest.c index eab8c2e5d5e1..afac1cc6bd2f 100644 --- a/drivers/net/sfc/selftest.c +++ b/drivers/net/sfc/selftest.c | |||
@@ -20,7 +20,6 @@ | |||
20 | #include <linux/rtnetlink.h> | 20 | #include <linux/rtnetlink.h> |
21 | #include <asm/io.h> | 21 | #include <asm/io.h> |
22 | #include "net_driver.h" | 22 | #include "net_driver.h" |
23 | #include "ethtool.h" | ||
24 | #include "efx.h" | 23 | #include "efx.h" |
25 | #include "falcon.h" | 24 | #include "falcon.h" |
26 | #include "selftest.h" | 25 | #include "selftest.h" |
diff --git a/drivers/net/sfc/tx.c b/drivers/net/sfc/tx.c index a5e541dd8ce7..c54fa30e6277 100644 --- a/drivers/net/sfc/tx.c +++ b/drivers/net/sfc/tx.c | |||
@@ -15,7 +15,6 @@ | |||
15 | #include <linux/if_ether.h> | 15 | #include <linux/if_ether.h> |
16 | #include <linux/highmem.h> | 16 | #include <linux/highmem.h> |
17 | #include "net_driver.h" | 17 | #include "net_driver.h" |
18 | #include "tx.h" | ||
19 | #include "efx.h" | 18 | #include "efx.h" |
20 | #include "falcon.h" | 19 | #include "falcon.h" |
21 | #include "workarounds.h" | 20 | #include "workarounds.h" |
diff --git a/drivers/net/sfc/tx.h b/drivers/net/sfc/tx.h deleted file mode 100644 index e3678962a5b4..000000000000 --- a/drivers/net/sfc/tx.h +++ /dev/null | |||
@@ -1,25 +0,0 @@ | |||
1 | /**************************************************************************** | ||
2 | * Driver for Solarflare Solarstorm network controllers and boards | ||
3 | * Copyright 2006 Fen Systems Ltd. | ||
4 | * Copyright 2006-2008 Solarflare Communications Inc. | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify it | ||
7 | * under the terms of the GNU General Public License version 2 as published | ||
8 | * by the Free Software Foundation, incorporated herein by reference. | ||
9 | */ | ||
10 | |||
11 | #ifndef EFX_TX_H | ||
12 | #define EFX_TX_H | ||
13 | |||
14 | #include "net_driver.h" | ||
15 | |||
16 | int efx_probe_tx_queue(struct efx_tx_queue *tx_queue); | ||
17 | void efx_remove_tx_queue(struct efx_tx_queue *tx_queue); | ||
18 | void efx_init_tx_queue(struct efx_tx_queue *tx_queue); | ||
19 | void efx_fini_tx_queue(struct efx_tx_queue *tx_queue); | ||
20 | |||
21 | netdev_tx_t efx_hard_start_xmit(struct sk_buff *skb, | ||
22 | struct net_device *net_dev); | ||
23 | void efx_release_tx_buffers(struct efx_tx_queue *tx_queue); | ||
24 | |||
25 | #endif /* EFX_TX_H */ | ||