diff options
Diffstat (limited to 'drivers/net/sfc/falcon.h')
-rw-r--r-- | drivers/net/sfc/falcon.h | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/drivers/net/sfc/falcon.h b/drivers/net/sfc/falcon.h index 492f9bc28840..be025ba7a6c6 100644 --- a/drivers/net/sfc/falcon.h +++ b/drivers/net/sfc/falcon.h | |||
@@ -40,24 +40,24 @@ extern struct efx_nic_type falcon_b_nic_type; | |||
40 | 40 | ||
41 | /* TX data path */ | 41 | /* TX data path */ |
42 | extern int falcon_probe_tx(struct efx_tx_queue *tx_queue); | 42 | extern int falcon_probe_tx(struct efx_tx_queue *tx_queue); |
43 | extern int falcon_init_tx(struct efx_tx_queue *tx_queue); | 43 | extern void falcon_init_tx(struct efx_tx_queue *tx_queue); |
44 | extern void falcon_fini_tx(struct efx_tx_queue *tx_queue); | 44 | extern void falcon_fini_tx(struct efx_tx_queue *tx_queue); |
45 | extern void falcon_remove_tx(struct efx_tx_queue *tx_queue); | 45 | extern void falcon_remove_tx(struct efx_tx_queue *tx_queue); |
46 | extern void falcon_push_buffers(struct efx_tx_queue *tx_queue); | 46 | extern void falcon_push_buffers(struct efx_tx_queue *tx_queue); |
47 | 47 | ||
48 | /* RX data path */ | 48 | /* RX data path */ |
49 | extern int falcon_probe_rx(struct efx_rx_queue *rx_queue); | 49 | extern int falcon_probe_rx(struct efx_rx_queue *rx_queue); |
50 | extern int falcon_init_rx(struct efx_rx_queue *rx_queue); | 50 | extern void falcon_init_rx(struct efx_rx_queue *rx_queue); |
51 | extern void falcon_fini_rx(struct efx_rx_queue *rx_queue); | 51 | extern void falcon_fini_rx(struct efx_rx_queue *rx_queue); |
52 | extern void falcon_remove_rx(struct efx_rx_queue *rx_queue); | 52 | extern void falcon_remove_rx(struct efx_rx_queue *rx_queue); |
53 | extern void falcon_notify_rx_desc(struct efx_rx_queue *rx_queue); | 53 | extern void falcon_notify_rx_desc(struct efx_rx_queue *rx_queue); |
54 | 54 | ||
55 | /* Event data path */ | 55 | /* Event data path */ |
56 | extern int falcon_probe_eventq(struct efx_channel *channel); | 56 | extern int falcon_probe_eventq(struct efx_channel *channel); |
57 | extern int falcon_init_eventq(struct efx_channel *channel); | 57 | extern void falcon_init_eventq(struct efx_channel *channel); |
58 | extern void falcon_fini_eventq(struct efx_channel *channel); | 58 | extern void falcon_fini_eventq(struct efx_channel *channel); |
59 | extern void falcon_remove_eventq(struct efx_channel *channel); | 59 | extern void falcon_remove_eventq(struct efx_channel *channel); |
60 | extern int falcon_process_eventq(struct efx_channel *channel, int *rx_quota); | 60 | extern int falcon_process_eventq(struct efx_channel *channel, int rx_quota); |
61 | extern void falcon_eventq_read_ack(struct efx_channel *channel); | 61 | extern void falcon_eventq_read_ack(struct efx_channel *channel); |
62 | 62 | ||
63 | /* Ports */ | 63 | /* Ports */ |
@@ -65,7 +65,7 @@ extern int falcon_probe_port(struct efx_nic *efx); | |||
65 | extern void falcon_remove_port(struct efx_nic *efx); | 65 | extern void falcon_remove_port(struct efx_nic *efx); |
66 | 66 | ||
67 | /* MAC/PHY */ | 67 | /* MAC/PHY */ |
68 | extern int falcon_xaui_link_ok(struct efx_nic *efx); | 68 | extern bool falcon_xaui_link_ok(struct efx_nic *efx); |
69 | extern int falcon_dma_stats(struct efx_nic *efx, | 69 | extern int falcon_dma_stats(struct efx_nic *efx, |
70 | unsigned int done_offset); | 70 | unsigned int done_offset); |
71 | extern void falcon_drain_tx_fifo(struct efx_nic *efx); | 71 | extern void falcon_drain_tx_fifo(struct efx_nic *efx); |
@@ -86,6 +86,7 @@ extern void falcon_fini_interrupt(struct efx_nic *efx); | |||
86 | extern int falcon_probe_nic(struct efx_nic *efx); | 86 | extern int falcon_probe_nic(struct efx_nic *efx); |
87 | extern int falcon_probe_resources(struct efx_nic *efx); | 87 | extern int falcon_probe_resources(struct efx_nic *efx); |
88 | extern int falcon_init_nic(struct efx_nic *efx); | 88 | extern int falcon_init_nic(struct efx_nic *efx); |
89 | extern int falcon_flush_queues(struct efx_nic *efx); | ||
89 | extern int falcon_reset_hw(struct efx_nic *efx, enum reset_type method); | 90 | extern int falcon_reset_hw(struct efx_nic *efx, enum reset_type method); |
90 | extern void falcon_remove_resources(struct efx_nic *efx); | 91 | extern void falcon_remove_resources(struct efx_nic *efx); |
91 | extern void falcon_remove_nic(struct efx_nic *efx); | 92 | extern void falcon_remove_nic(struct efx_nic *efx); |
@@ -93,6 +94,12 @@ extern void falcon_update_nic_stats(struct efx_nic *efx); | |||
93 | extern void falcon_set_multicast_hash(struct efx_nic *efx); | 94 | extern void falcon_set_multicast_hash(struct efx_nic *efx); |
94 | extern int falcon_reset_xaui(struct efx_nic *efx); | 95 | extern int falcon_reset_xaui(struct efx_nic *efx); |
95 | 96 | ||
97 | /* Tests */ | ||
98 | struct falcon_nvconfig; | ||
99 | extern int falcon_read_nvram(struct efx_nic *efx, | ||
100 | struct falcon_nvconfig *nvconfig); | ||
101 | extern int falcon_test_registers(struct efx_nic *efx); | ||
102 | |||
96 | /************************************************************************** | 103 | /************************************************************************** |
97 | * | 104 | * |
98 | * Falcon MAC stats | 105 | * Falcon MAC stats |