aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@stusta.de>2006-03-11 20:51:39 -0500
committerJeff Garzik <jeff@garzik.org>2006-03-11 21:49:49 -0500
commit30dcbf29cc6d92d70fa262e79e84011fe6913bed (patch)
tree2b356350d2dea45b498e2c0c6e9718b364594752 /drivers
parentded78e5e2cab0ec470cca7d34d7af742371bd476 (diff)
[PATCH] drivers/net/e1000/: proper prototypes
This patch moves prototypes of global variables and functions to a header file. Signed-off-by: Adrian Bunk <bunk@stusta.de> Acked-by: John Ronciak <john.ronciak@gmail.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/e1000/e1000.h22
-rw-r--r--drivers/net/e1000/e1000_ethtool.c13
-rw-r--r--drivers/net/e1000/e1000_main.c14
3 files changed, 22 insertions, 27 deletions
diff --git a/drivers/net/e1000/e1000.h b/drivers/net/e1000/e1000.h
index 214468c35b4b..281de41d030a 100644
--- a/drivers/net/e1000/e1000.h
+++ b/drivers/net/e1000/e1000.h
@@ -339,4 +339,26 @@ struct e1000_adapter {
339 boolean_t tso_force; 339 boolean_t tso_force;
340#endif 340#endif
341}; 341};
342
343
344/* e1000_main.c */
345extern char e1000_driver_name[];
346extern char e1000_driver_version[];
347int e1000_up(struct e1000_adapter *adapter);
348void e1000_down(struct e1000_adapter *adapter);
349void e1000_reset(struct e1000_adapter *adapter);
350int e1000_setup_all_tx_resources(struct e1000_adapter *adapter);
351void e1000_free_all_tx_resources(struct e1000_adapter *adapter);
352int e1000_setup_all_rx_resources(struct e1000_adapter *adapter);
353void e1000_free_all_rx_resources(struct e1000_adapter *adapter);
354void e1000_update_stats(struct e1000_adapter *adapter);
355int e1000_set_spd_dplx(struct e1000_adapter *adapter, uint16_t spddplx);
356
357/* e1000_ethtool.c */
358void e1000_set_ethtool_ops(struct net_device *netdev);
359
360/* e1000_param.c */
361void e1000_check_options(struct e1000_adapter *adapter);
362
363
342#endif /* _E1000_H_ */ 364#endif /* _E1000_H_ */
diff --git a/drivers/net/e1000/e1000_ethtool.c b/drivers/net/e1000/e1000_ethtool.c
index 44d39f1d8298..ecccca35c6f4 100644
--- a/drivers/net/e1000/e1000_ethtool.c
+++ b/drivers/net/e1000/e1000_ethtool.c
@@ -32,19 +32,6 @@
32 32
33#include <asm/uaccess.h> 33#include <asm/uaccess.h>
34 34
35extern char e1000_driver_name[];
36extern char e1000_driver_version[];
37
38extern int e1000_up(struct e1000_adapter *adapter);
39extern void e1000_down(struct e1000_adapter *adapter);
40extern void e1000_reset(struct e1000_adapter *adapter);
41extern int e1000_set_spd_dplx(struct e1000_adapter *adapter, uint16_t spddplx);
42extern int e1000_setup_all_rx_resources(struct e1000_adapter *adapter);
43extern int e1000_setup_all_tx_resources(struct e1000_adapter *adapter);
44extern void e1000_free_all_rx_resources(struct e1000_adapter *adapter);
45extern void e1000_free_all_tx_resources(struct e1000_adapter *adapter);
46extern void e1000_update_stats(struct e1000_adapter *adapter);
47
48struct e1000_stats { 35struct e1000_stats {
49 char stat_string[ETH_GSTRING_LEN]; 36 char stat_string[ETH_GSTRING_LEN];
50 int sizeof_stat; 37 int sizeof_stat;
diff --git a/drivers/net/e1000/e1000_main.c b/drivers/net/e1000/e1000_main.c
index 34d77ed6acaa..4400117eb6c7 100644
--- a/drivers/net/e1000/e1000_main.c
+++ b/drivers/net/e1000/e1000_main.c
@@ -140,14 +140,6 @@ static struct pci_device_id e1000_pci_tbl[] = {
140 140
141MODULE_DEVICE_TABLE(pci, e1000_pci_tbl); 141MODULE_DEVICE_TABLE(pci, e1000_pci_tbl);
142 142
143int e1000_up(struct e1000_adapter *adapter);
144void e1000_down(struct e1000_adapter *adapter);
145void e1000_reset(struct e1000_adapter *adapter);
146int e1000_set_spd_dplx(struct e1000_adapter *adapter, uint16_t spddplx);
147int e1000_setup_all_tx_resources(struct e1000_adapter *adapter);
148int e1000_setup_all_rx_resources(struct e1000_adapter *adapter);
149void e1000_free_all_tx_resources(struct e1000_adapter *adapter);
150void e1000_free_all_rx_resources(struct e1000_adapter *adapter);
151static int e1000_setup_tx_resources(struct e1000_adapter *adapter, 143static int e1000_setup_tx_resources(struct e1000_adapter *adapter,
152 struct e1000_tx_ring *txdr); 144 struct e1000_tx_ring *txdr);
153static int e1000_setup_rx_resources(struct e1000_adapter *adapter, 145static int e1000_setup_rx_resources(struct e1000_adapter *adapter,
@@ -156,7 +148,6 @@ static void e1000_free_tx_resources(struct e1000_adapter *adapter,
156 struct e1000_tx_ring *tx_ring); 148 struct e1000_tx_ring *tx_ring);
157static void e1000_free_rx_resources(struct e1000_adapter *adapter, 149static void e1000_free_rx_resources(struct e1000_adapter *adapter,
158 struct e1000_rx_ring *rx_ring); 150 struct e1000_rx_ring *rx_ring);
159void e1000_update_stats(struct e1000_adapter *adapter);
160 151
161/* Local Function Prototypes */ 152/* Local Function Prototypes */
162 153
@@ -212,7 +203,6 @@ static void e1000_alloc_rx_buffers_ps(struct e1000_adapter *adapter,
212static int e1000_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd); 203static int e1000_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd);
213static int e1000_mii_ioctl(struct net_device *netdev, struct ifreq *ifr, 204static int e1000_mii_ioctl(struct net_device *netdev, struct ifreq *ifr,
214 int cmd); 205 int cmd);
215void e1000_set_ethtool_ops(struct net_device *netdev);
216static void e1000_enter_82542_rst(struct e1000_adapter *adapter); 206static void e1000_enter_82542_rst(struct e1000_adapter *adapter);
217static void e1000_leave_82542_rst(struct e1000_adapter *adapter); 207static void e1000_leave_82542_rst(struct e1000_adapter *adapter);
218static void e1000_tx_timeout(struct net_device *dev); 208static void e1000_tx_timeout(struct net_device *dev);
@@ -237,10 +227,6 @@ static void e1000_netpoll (struct net_device *netdev);
237#endif 227#endif
238 228
239 229
240/* Exported from other modules */
241
242extern void e1000_check_options(struct e1000_adapter *adapter);
243
244static struct pci_driver e1000_driver = { 230static struct pci_driver e1000_driver = {
245 .name = e1000_driver_name, 231 .name = e1000_driver_name,
246 .id_table = e1000_pci_tbl, 232 .id_table = e1000_pci_tbl,