diff options
Diffstat (limited to 'drivers/net/sfc/efx.h')
-rw-r--r-- | drivers/net/sfc/efx.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/drivers/net/sfc/efx.h b/drivers/net/sfc/efx.h index 3b2f69f4a9ab..d02937b70eee 100644 --- a/drivers/net/sfc/efx.h +++ b/drivers/net/sfc/efx.h | |||
@@ -28,15 +28,21 @@ extern void efx_wake_queue(struct efx_nic *efx); | |||
28 | /* RX */ | 28 | /* RX */ |
29 | extern void efx_xmit_done(struct efx_tx_queue *tx_queue, unsigned int index); | 29 | extern void efx_xmit_done(struct efx_tx_queue *tx_queue, unsigned int index); |
30 | extern void efx_rx_packet(struct efx_rx_queue *rx_queue, unsigned int index, | 30 | extern void efx_rx_packet(struct efx_rx_queue *rx_queue, unsigned int index, |
31 | unsigned int len, int checksummed, int discard); | 31 | unsigned int len, bool checksummed, bool discard); |
32 | extern void efx_schedule_slow_fill(struct efx_rx_queue *rx_queue, int delay); | 32 | extern void efx_schedule_slow_fill(struct efx_rx_queue *rx_queue, int delay); |
33 | 33 | ||
34 | /* Channels */ | 34 | /* Channels */ |
35 | extern void efx_process_channel_now(struct efx_channel *channel); | 35 | extern void efx_process_channel_now(struct efx_channel *channel); |
36 | extern int efx_flush_queues(struct efx_nic *efx); | 36 | extern void efx_flush_queues(struct efx_nic *efx); |
37 | 37 | ||
38 | /* Ports */ | 38 | /* Ports */ |
39 | extern void efx_reconfigure_port(struct efx_nic *efx); | 39 | extern void efx_reconfigure_port(struct efx_nic *efx); |
40 | extern void __efx_reconfigure_port(struct efx_nic *efx); | ||
41 | |||
42 | /* Reset handling */ | ||
43 | extern void efx_reset_down(struct efx_nic *efx, struct ethtool_cmd *ecmd); | ||
44 | extern int efx_reset_up(struct efx_nic *efx, struct ethtool_cmd *ecmd, | ||
45 | bool ok); | ||
40 | 46 | ||
41 | /* Global */ | 47 | /* Global */ |
42 | extern void efx_schedule_reset(struct efx_nic *efx, enum reset_type type); | 48 | extern void efx_schedule_reset(struct efx_nic *efx, enum reset_type type); |
@@ -50,7 +56,7 @@ extern void efx_hex_dump(const u8 *, unsigned int, const char *); | |||
50 | /* Dummy PHY ops for PHY drivers */ | 56 | /* Dummy PHY ops for PHY drivers */ |
51 | extern int efx_port_dummy_op_int(struct efx_nic *efx); | 57 | extern int efx_port_dummy_op_int(struct efx_nic *efx); |
52 | extern void efx_port_dummy_op_void(struct efx_nic *efx); | 58 | extern void efx_port_dummy_op_void(struct efx_nic *efx); |
53 | extern void efx_port_dummy_op_blink(struct efx_nic *efx, int blink); | 59 | extern void efx_port_dummy_op_blink(struct efx_nic *efx, bool blink); |
54 | 60 | ||
55 | 61 | ||
56 | extern unsigned int efx_monitor_interval; | 62 | extern unsigned int efx_monitor_interval; |
@@ -59,7 +65,7 @@ static inline void efx_schedule_channel(struct efx_channel *channel) | |||
59 | { | 65 | { |
60 | EFX_TRACE(channel->efx, "channel %d scheduling NAPI poll on CPU%d\n", | 66 | EFX_TRACE(channel->efx, "channel %d scheduling NAPI poll on CPU%d\n", |
61 | channel->channel, raw_smp_processor_id()); | 67 | channel->channel, raw_smp_processor_id()); |
62 | channel->work_pending = 1; | 68 | channel->work_pending = true; |
63 | 69 | ||
64 | netif_rx_schedule(channel->napi_dev, &channel->napi_str); | 70 | netif_rx_schedule(channel->napi_dev, &channel->napi_str); |
65 | } | 71 | } |