diff options
-rw-r--r-- | drivers/net/e1000/e1000.h | 22 | ||||
-rw-r--r-- | drivers/net/e1000/e1000_ethtool.c | 13 | ||||
-rw-r--r-- | drivers/net/e1000/e1000_main.c | 14 |
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 */ | ||
345 | extern char e1000_driver_name[]; | ||
346 | extern char e1000_driver_version[]; | ||
347 | int e1000_up(struct e1000_adapter *adapter); | ||
348 | void e1000_down(struct e1000_adapter *adapter); | ||
349 | void e1000_reset(struct e1000_adapter *adapter); | ||
350 | int e1000_setup_all_tx_resources(struct e1000_adapter *adapter); | ||
351 | void e1000_free_all_tx_resources(struct e1000_adapter *adapter); | ||
352 | int e1000_setup_all_rx_resources(struct e1000_adapter *adapter); | ||
353 | void e1000_free_all_rx_resources(struct e1000_adapter *adapter); | ||
354 | void e1000_update_stats(struct e1000_adapter *adapter); | ||
355 | int e1000_set_spd_dplx(struct e1000_adapter *adapter, uint16_t spddplx); | ||
356 | |||
357 | /* e1000_ethtool.c */ | ||
358 | void e1000_set_ethtool_ops(struct net_device *netdev); | ||
359 | |||
360 | /* e1000_param.c */ | ||
361 | void 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 | ||
35 | extern char e1000_driver_name[]; | ||
36 | extern char e1000_driver_version[]; | ||
37 | |||
38 | extern int e1000_up(struct e1000_adapter *adapter); | ||
39 | extern void e1000_down(struct e1000_adapter *adapter); | ||
40 | extern void e1000_reset(struct e1000_adapter *adapter); | ||
41 | extern int e1000_set_spd_dplx(struct e1000_adapter *adapter, uint16_t spddplx); | ||
42 | extern int e1000_setup_all_rx_resources(struct e1000_adapter *adapter); | ||
43 | extern int e1000_setup_all_tx_resources(struct e1000_adapter *adapter); | ||
44 | extern void e1000_free_all_rx_resources(struct e1000_adapter *adapter); | ||
45 | extern void e1000_free_all_tx_resources(struct e1000_adapter *adapter); | ||
46 | extern void e1000_update_stats(struct e1000_adapter *adapter); | ||
47 | |||
48 | struct e1000_stats { | 35 | struct 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 | ||
141 | MODULE_DEVICE_TABLE(pci, e1000_pci_tbl); | 141 | MODULE_DEVICE_TABLE(pci, e1000_pci_tbl); |
142 | 142 | ||
143 | int e1000_up(struct e1000_adapter *adapter); | ||
144 | void e1000_down(struct e1000_adapter *adapter); | ||
145 | void e1000_reset(struct e1000_adapter *adapter); | ||
146 | int e1000_set_spd_dplx(struct e1000_adapter *adapter, uint16_t spddplx); | ||
147 | int e1000_setup_all_tx_resources(struct e1000_adapter *adapter); | ||
148 | int e1000_setup_all_rx_resources(struct e1000_adapter *adapter); | ||
149 | void e1000_free_all_tx_resources(struct e1000_adapter *adapter); | ||
150 | void e1000_free_all_rx_resources(struct e1000_adapter *adapter); | ||
151 | static int e1000_setup_tx_resources(struct e1000_adapter *adapter, | 143 | static int e1000_setup_tx_resources(struct e1000_adapter *adapter, |
152 | struct e1000_tx_ring *txdr); | 144 | struct e1000_tx_ring *txdr); |
153 | static int e1000_setup_rx_resources(struct e1000_adapter *adapter, | 145 | static 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); |
157 | static void e1000_free_rx_resources(struct e1000_adapter *adapter, | 149 | static void e1000_free_rx_resources(struct e1000_adapter *adapter, |
158 | struct e1000_rx_ring *rx_ring); | 150 | struct e1000_rx_ring *rx_ring); |
159 | void 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, | |||
212 | static int e1000_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd); | 203 | static int e1000_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd); |
213 | static int e1000_mii_ioctl(struct net_device *netdev, struct ifreq *ifr, | 204 | static int e1000_mii_ioctl(struct net_device *netdev, struct ifreq *ifr, |
214 | int cmd); | 205 | int cmd); |
215 | void e1000_set_ethtool_ops(struct net_device *netdev); | ||
216 | static void e1000_enter_82542_rst(struct e1000_adapter *adapter); | 206 | static void e1000_enter_82542_rst(struct e1000_adapter *adapter); |
217 | static void e1000_leave_82542_rst(struct e1000_adapter *adapter); | 207 | static void e1000_leave_82542_rst(struct e1000_adapter *adapter); |
218 | static void e1000_tx_timeout(struct net_device *dev); | 208 | static 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 | |||
242 | extern void e1000_check_options(struct e1000_adapter *adapter); | ||
243 | |||
244 | static struct pci_driver e1000_driver = { | 230 | static 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, |