aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ixgb/ixgb.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ixgb/ixgb.h')
-rw-r--r--drivers/net/ixgb/ixgb.h28
1 files changed, 23 insertions, 5 deletions
diff --git a/drivers/net/ixgb/ixgb.h b/drivers/net/ixgb/ixgb.h
index 3d2e7217e9af..f2fff90d2c9d 100644
--- a/drivers/net/ixgb/ixgb.h
+++ b/drivers/net/ixgb/ixgb.h
@@ -158,7 +158,6 @@ struct ixgb_adapter {
158 uint16_t link_speed; 158 uint16_t link_speed;
159 uint16_t link_duplex; 159 uint16_t link_duplex;
160 spinlock_t tx_lock; 160 spinlock_t tx_lock;
161 atomic_t irq_sem;
162 struct work_struct tx_timeout_task; 161 struct work_struct tx_timeout_task;
163 162
164 struct timer_list blink_timer; 163 struct timer_list blink_timer;
@@ -173,15 +172,15 @@ struct ixgb_adapter {
173 uint64_t hw_csum_tx_error; 172 uint64_t hw_csum_tx_error;
174 uint32_t tx_int_delay; 173 uint32_t tx_int_delay;
175 uint32_t tx_timeout_count; 174 uint32_t tx_timeout_count;
176 boolean_t tx_int_delay_enable; 175 bool tx_int_delay_enable;
177 boolean_t detect_tx_hung; 176 bool detect_tx_hung;
178 177
179 /* RX */ 178 /* RX */
180 struct ixgb_desc_ring rx_ring; 179 struct ixgb_desc_ring rx_ring;
181 uint64_t hw_csum_rx_error; 180 uint64_t hw_csum_rx_error;
182 uint64_t hw_csum_rx_good; 181 uint64_t hw_csum_rx_good;
183 uint32_t rx_int_delay; 182 uint32_t rx_int_delay;
184 boolean_t rx_csum; 183 bool rx_csum;
185 184
186 /* OS defined structs */ 185 /* OS defined structs */
187 struct napi_struct napi; 186 struct napi_struct napi;
@@ -194,7 +193,16 @@ struct ixgb_adapter {
194 u16 msg_enable; 193 u16 msg_enable;
195 struct ixgb_hw_stats stats; 194 struct ixgb_hw_stats stats;
196 uint32_t alloc_rx_buff_failed; 195 uint32_t alloc_rx_buff_failed;
197 boolean_t have_msi; 196 bool have_msi;
197 unsigned long flags;
198};
199
200enum ixgb_state_t {
201 /* TBD
202 __IXGB_TESTING,
203 __IXGB_RESETTING,
204 */
205 __IXGB_DOWN
198}; 206};
199 207
200/* Exported from other modules */ 208/* Exported from other modules */
@@ -203,4 +211,14 @@ extern void ixgb_set_ethtool_ops(struct net_device *netdev);
203extern char ixgb_driver_name[]; 211extern char ixgb_driver_name[];
204extern const char ixgb_driver_version[]; 212extern const char ixgb_driver_version[];
205 213
214extern int ixgb_up(struct ixgb_adapter *adapter);
215extern void ixgb_down(struct ixgb_adapter *adapter, bool kill_watchdog);
216extern void ixgb_reset(struct ixgb_adapter *adapter);
217extern int ixgb_setup_rx_resources(struct ixgb_adapter *adapter);
218extern int ixgb_setup_tx_resources(struct ixgb_adapter *adapter);
219extern void ixgb_free_rx_resources(struct ixgb_adapter *adapter);
220extern void ixgb_free_tx_resources(struct ixgb_adapter *adapter);
221extern void ixgb_update_stats(struct ixgb_adapter *adapter);
222
223
206#endif /* _IXGB_H_ */ 224#endif /* _IXGB_H_ */