diff options
author | Nicholas Nunley <nicholas.d.nunley@intel.com> | 2006-09-27 15:53:34 -0400 |
---|---|---|
committer | Auke Kok <juke-jan.h.kok@intel.com> | 2006-09-27 15:53:34 -0400 |
commit | 35574764c7eafab4ec0aa92c18a78a51acc8a710 (patch) | |
tree | 98b300ec244017d00f5c425c2143b340a6593052 /drivers/net/e1000/e1000_main.c | |
parent | 70c6f30a5e5d616321669acfc853f7851741fd4e (diff) |
e1000: remove unused code and make symbols static
Signed-off-by: Nicholas Nunley <nicholas.d.nunley@intel.com>
Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com>
Diffstat (limited to 'drivers/net/e1000/e1000_main.c')
-rw-r--r-- | drivers/net/e1000/e1000_main.c | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/drivers/net/e1000/e1000_main.c b/drivers/net/e1000/e1000_main.c index 0aaf9afe31ec..447b7c8a77b1 100644 --- a/drivers/net/e1000/e1000_main.c +++ b/drivers/net/e1000/e1000_main.c | |||
@@ -109,16 +109,24 @@ static struct pci_device_id e1000_pci_tbl[] = { | |||
109 | 109 | ||
110 | MODULE_DEVICE_TABLE(pci, e1000_pci_tbl); | 110 | MODULE_DEVICE_TABLE(pci, e1000_pci_tbl); |
111 | 111 | ||
112 | int e1000_up(struct e1000_adapter *adapter); | ||
113 | void e1000_down(struct e1000_adapter *adapter); | ||
114 | void e1000_reinit_locked(struct e1000_adapter *adapter); | ||
115 | void e1000_reset(struct e1000_adapter *adapter); | ||
116 | int e1000_set_spd_dplx(struct e1000_adapter *adapter, uint16_t spddplx); | ||
117 | int e1000_setup_all_tx_resources(struct e1000_adapter *adapter); | ||
118 | int e1000_setup_all_rx_resources(struct e1000_adapter *adapter); | ||
119 | void e1000_free_all_tx_resources(struct e1000_adapter *adapter); | ||
120 | void e1000_free_all_rx_resources(struct e1000_adapter *adapter); | ||
112 | static int e1000_setup_tx_resources(struct e1000_adapter *adapter, | 121 | static int e1000_setup_tx_resources(struct e1000_adapter *adapter, |
113 | struct e1000_tx_ring *txdr); | 122 | struct e1000_tx_ring *txdr); |
114 | static int e1000_setup_rx_resources(struct e1000_adapter *adapter, | 123 | static int e1000_setup_rx_resources(struct e1000_adapter *adapter, |
115 | struct e1000_rx_ring *rxdr); | 124 | struct e1000_rx_ring *rxdr); |
116 | static void e1000_free_tx_resources(struct e1000_adapter *adapter, | 125 | static void e1000_free_tx_resources(struct e1000_adapter *adapter, |
117 | struct e1000_tx_ring *tx_ring); | 126 | struct e1000_tx_ring *tx_ring); |
118 | static void e1000_free_rx_resources(struct e1000_adapter *adapter, | 127 | static void e1000_free_rx_resources(struct e1000_adapter *adapter, |
119 | struct e1000_rx_ring *rx_ring); | 128 | struct e1000_rx_ring *rx_ring); |
120 | 129 | void e1000_update_stats(struct e1000_adapter *adapter); | |
121 | /* Local Function Prototypes */ | ||
122 | 130 | ||
123 | static int e1000_init_module(void); | 131 | static int e1000_init_module(void); |
124 | static void e1000_exit_module(void); | 132 | static void e1000_exit_module(void); |
@@ -171,6 +179,7 @@ static void e1000_alloc_rx_buffers_ps(struct e1000_adapter *adapter, | |||
171 | static int e1000_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd); | 179 | static int e1000_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd); |
172 | static int e1000_mii_ioctl(struct net_device *netdev, struct ifreq *ifr, | 180 | static int e1000_mii_ioctl(struct net_device *netdev, struct ifreq *ifr, |
173 | int cmd); | 181 | int cmd); |
182 | void e1000_set_ethtool_ops(struct net_device *netdev); | ||
174 | static void e1000_enter_82542_rst(struct e1000_adapter *adapter); | 183 | static void e1000_enter_82542_rst(struct e1000_adapter *adapter); |
175 | static void e1000_leave_82542_rst(struct e1000_adapter *adapter); | 184 | static void e1000_leave_82542_rst(struct e1000_adapter *adapter); |
176 | static void e1000_tx_timeout(struct net_device *dev); | 185 | static void e1000_tx_timeout(struct net_device *dev); |
@@ -195,6 +204,8 @@ static void e1000_shutdown(struct pci_dev *pdev); | |||
195 | static void e1000_netpoll (struct net_device *netdev); | 204 | static void e1000_netpoll (struct net_device *netdev); |
196 | #endif | 205 | #endif |
197 | 206 | ||
207 | extern void e1000_check_options(struct e1000_adapter *adapter); | ||
208 | |||
198 | static pci_ers_result_t e1000_io_error_detected(struct pci_dev *pdev, | 209 | static pci_ers_result_t e1000_io_error_detected(struct pci_dev *pdev, |
199 | pci_channel_state_t state); | 210 | pci_channel_state_t state); |
200 | static pci_ers_result_t e1000_io_slot_reset(struct pci_dev *pdev); | 211 | static pci_ers_result_t e1000_io_slot_reset(struct pci_dev *pdev); |
@@ -4411,14 +4422,6 @@ e1000_write_pci_cfg(struct e1000_hw *hw, uint32_t reg, uint16_t *value) | |||
4411 | pci_write_config_word(adapter->pdev, reg, *value); | 4422 | pci_write_config_word(adapter->pdev, reg, *value); |
4412 | } | 4423 | } |
4413 | 4424 | ||
4414 | #if 0 | ||
4415 | uint32_t | ||
4416 | e1000_io_read(struct e1000_hw *hw, unsigned long port) | ||
4417 | { | ||
4418 | return inl(port); | ||
4419 | } | ||
4420 | #endif /* 0 */ | ||
4421 | |||
4422 | void | 4425 | void |
4423 | e1000_io_write(struct e1000_hw *hw, unsigned long port, uint32_t value) | 4426 | e1000_io_write(struct e1000_hw *hw, unsigned long port, uint32_t value) |
4424 | { | 4427 | { |