aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sfc
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2009-11-23 11:07:30 -0500
committerDavid S. Miller <davem@davemloft.net>2009-11-24 13:58:59 -0500
commitf5e7adc3d4aa8edab63bb63f0ce5fe92c3dd7604 (patch)
tree9f40665c8f8f33f776b7b50d81dc8e06d3f63d6a /drivers/net/sfc
parent497f5ba3236425dbcf20b55452a013f1d3695ebb (diff)
sfc: Combine high-level header files
All files that include ethtool.h, rx.h or tx.h are also including efx.h, and there is no good reason to separate out the few declarations they contain. Therefore fold them into efx.h. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sfc')
-rw-r--r--drivers/net/sfc/efx.c3
-rw-r--r--drivers/net/sfc/efx.h27
-rw-r--r--drivers/net/sfc/ethtool.c1
-rw-r--r--drivers/net/sfc/ethtool.h27
-rw-r--r--drivers/net/sfc/rx.c1
-rw-r--r--drivers/net/sfc/rx.h26
-rw-r--r--drivers/net/sfc/selftest.c1
-rw-r--r--drivers/net/sfc/tx.c1
-rw-r--r--drivers/net/sfc/tx.h25
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 */
26extern netdev_tx_t efx_enqueue_skb(struct efx_tx_queue *tx_queue, 26extern int efx_probe_tx_queue(struct efx_tx_queue *tx_queue);
27 struct sk_buff *skb); 27extern void efx_remove_tx_queue(struct efx_tx_queue *tx_queue);
28extern void efx_init_tx_queue(struct efx_tx_queue *tx_queue);
29extern void efx_fini_tx_queue(struct efx_tx_queue *tx_queue);
30extern void efx_release_tx_buffers(struct efx_tx_queue *tx_queue);
31extern netdev_tx_t
32efx_hard_start_xmit(struct sk_buff *skb, struct net_device *net_dev);
33extern netdev_tx_t
34efx_enqueue_skb(struct efx_tx_queue *tx_queue, struct sk_buff *skb);
28extern void efx_xmit_done(struct efx_tx_queue *tx_queue, unsigned int index); 35extern void efx_xmit_done(struct efx_tx_queue *tx_queue, unsigned int index);
29extern void efx_stop_queue(struct efx_nic *efx); 36extern void efx_stop_queue(struct efx_nic *efx);
30extern void efx_wake_queue(struct efx_nic *efx); 37extern 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 */
42extern int efx_probe_rx_queue(struct efx_rx_queue *rx_queue);
43extern void efx_remove_rx_queue(struct efx_rx_queue *rx_queue);
44extern void efx_init_rx_queue(struct efx_rx_queue *rx_queue);
45extern void efx_fini_rx_queue(struct efx_rx_queue *rx_queue);
46extern void efx_rx_strategy(struct efx_channel *channel);
47extern void efx_fast_push_rx_descriptors(struct efx_rx_queue *rx_queue);
48extern void efx_rx_work(struct work_struct *data);
49extern void __efx_rx_packet(struct efx_channel *channel,
50 struct efx_rx_buffer *rx_buf, bool checksummed);
35extern void efx_rx_packet(struct efx_rx_queue *rx_queue, unsigned int index, 51extern 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);
37extern void efx_schedule_slow_fill(struct efx_rx_queue *rx_queue, int delay); 53extern 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);
50extern void efx_reconfigure_port(struct efx_nic *efx); 66extern void efx_reconfigure_port(struct efx_nic *efx);
51extern void __efx_reconfigure_port(struct efx_nic *efx); 67extern void __efx_reconfigure_port(struct efx_nic *efx);
52 68
69/* Ethtool support */
70extern int efx_ethtool_get_settings(struct net_device *net_dev,
71 struct ethtool_cmd *ecmd);
72extern int efx_ethtool_set_settings(struct net_device *net_dev,
73 struct ethtool_cmd *ecmd);
74extern const struct ethtool_ops efx_ethtool_ops;
75
53/* Reset handling */ 76/* Reset handling */
54extern void efx_reset_down(struct efx_nic *efx, enum reset_type method, 77extern 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
20extern int efx_ethtool_get_settings(struct net_device *net_dev,
21 struct ethtool_cmd *ecmd);
22extern int efx_ethtool_set_settings(struct net_device *net_dev,
23 struct ethtool_cmd *ecmd);
24
25extern 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
15int efx_probe_rx_queue(struct efx_rx_queue *rx_queue);
16void efx_remove_rx_queue(struct efx_rx_queue *rx_queue);
17void efx_init_rx_queue(struct efx_rx_queue *rx_queue);
18void efx_fini_rx_queue(struct efx_rx_queue *rx_queue);
19
20void efx_rx_strategy(struct efx_channel *channel);
21void efx_fast_push_rx_descriptors(struct efx_rx_queue *rx_queue);
22void efx_rx_work(struct work_struct *data);
23void __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
16int efx_probe_tx_queue(struct efx_tx_queue *tx_queue);
17void efx_remove_tx_queue(struct efx_tx_queue *tx_queue);
18void efx_init_tx_queue(struct efx_tx_queue *tx_queue);
19void efx_fini_tx_queue(struct efx_tx_queue *tx_queue);
20
21netdev_tx_t efx_hard_start_xmit(struct sk_buff *skb,
22 struct net_device *net_dev);
23void efx_release_tx_buffers(struct efx_tx_queue *tx_queue);
24
25#endif /* EFX_TX_H */