diff options
Diffstat (limited to 'drivers/net/sfc/efx.h')
-rw-r--r-- | drivers/net/sfc/efx.h | 27 |
1 files changed, 25 insertions, 2 deletions
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 */ |
26 | extern netdev_tx_t efx_enqueue_skb(struct efx_tx_queue *tx_queue, | 26 | extern int efx_probe_tx_queue(struct efx_tx_queue *tx_queue); |
27 | struct sk_buff *skb); | 27 | extern void efx_remove_tx_queue(struct efx_tx_queue *tx_queue); |
28 | extern void efx_init_tx_queue(struct efx_tx_queue *tx_queue); | ||
29 | extern void efx_fini_tx_queue(struct efx_tx_queue *tx_queue); | ||
30 | extern void efx_release_tx_buffers(struct efx_tx_queue *tx_queue); | ||
31 | extern netdev_tx_t | ||
32 | efx_hard_start_xmit(struct sk_buff *skb, struct net_device *net_dev); | ||
33 | extern netdev_tx_t | ||
34 | efx_enqueue_skb(struct efx_tx_queue *tx_queue, struct sk_buff *skb); | ||
28 | extern void efx_xmit_done(struct efx_tx_queue *tx_queue, unsigned int index); | 35 | extern void efx_xmit_done(struct efx_tx_queue *tx_queue, unsigned int index); |
29 | extern void efx_stop_queue(struct efx_nic *efx); | 36 | extern void efx_stop_queue(struct efx_nic *efx); |
30 | extern void efx_wake_queue(struct efx_nic *efx); | 37 | extern 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 */ |
42 | extern int efx_probe_rx_queue(struct efx_rx_queue *rx_queue); | ||
43 | extern void efx_remove_rx_queue(struct efx_rx_queue *rx_queue); | ||
44 | extern void efx_init_rx_queue(struct efx_rx_queue *rx_queue); | ||
45 | extern void efx_fini_rx_queue(struct efx_rx_queue *rx_queue); | ||
46 | extern void efx_rx_strategy(struct efx_channel *channel); | ||
47 | extern void efx_fast_push_rx_descriptors(struct efx_rx_queue *rx_queue); | ||
48 | extern void efx_rx_work(struct work_struct *data); | ||
49 | extern void __efx_rx_packet(struct efx_channel *channel, | ||
50 | struct efx_rx_buffer *rx_buf, bool checksummed); | ||
35 | extern void efx_rx_packet(struct efx_rx_queue *rx_queue, unsigned int index, | 51 | extern 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); |
37 | extern void efx_schedule_slow_fill(struct efx_rx_queue *rx_queue, int delay); | 53 | extern 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); | |||
50 | extern void efx_reconfigure_port(struct efx_nic *efx); | 66 | extern void efx_reconfigure_port(struct efx_nic *efx); |
51 | extern void __efx_reconfigure_port(struct efx_nic *efx); | 67 | extern void __efx_reconfigure_port(struct efx_nic *efx); |
52 | 68 | ||
69 | /* Ethtool support */ | ||
70 | extern int efx_ethtool_get_settings(struct net_device *net_dev, | ||
71 | struct ethtool_cmd *ecmd); | ||
72 | extern int efx_ethtool_set_settings(struct net_device *net_dev, | ||
73 | struct ethtool_cmd *ecmd); | ||
74 | extern const struct ethtool_ops efx_ethtool_ops; | ||
75 | |||
53 | /* Reset handling */ | 76 | /* Reset handling */ |
54 | extern void efx_reset_down(struct efx_nic *efx, enum reset_type method, | 77 | extern void efx_reset_down(struct efx_nic *efx, enum reset_type method, |
55 | struct ethtool_cmd *ecmd); | 78 | struct ethtool_cmd *ecmd); |