1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /****************************************************************************
3  * Driver for Solarflare network controllers and boards
4  * Copyright 2018 Solarflare Communications Inc.
5  *
6  * This program is free software; you can redistribute it and/or modify it
7  * under the terms of the GNU General Public License version 2 as published
8  * by the Free Software Foundation, incorporated herein by reference.
9  */
10 
11 #ifndef EFX_SIENA_CHANNELS_H
12 #define EFX_SIENA_CHANNELS_H
13 
14 extern unsigned int efx_siena_interrupt_mode;
15 extern unsigned int efx_siena_rss_cpus;
16 
17 int efx_siena_probe_interrupts(struct efx_nic *efx);
18 void efx_siena_remove_interrupts(struct efx_nic *efx);
19 int efx_siena_enable_interrupts(struct efx_nic *efx);
20 void efx_siena_disable_interrupts(struct efx_nic *efx);
21 
22 void efx_siena_set_interrupt_affinity(struct efx_nic *efx);
23 void efx_siena_clear_interrupt_affinity(struct efx_nic *efx);
24 
25 void efx_siena_start_eventq(struct efx_channel *channel);
26 void efx_siena_stop_eventq(struct efx_channel *channel);
27 
28 int efx_siena_realloc_channels(struct efx_nic *efx, u32 rxq_entries,
29 			       u32 txq_entries);
30 void efx_siena_set_channel_names(struct efx_nic *efx);
31 int efx_siena_init_channels(struct efx_nic *efx);
32 int efx_siena_probe_channels(struct efx_nic *efx);
33 int efx_siena_set_channels(struct efx_nic *efx);
34 void efx_siena_remove_channel(struct efx_channel *channel);
35 void efx_siena_remove_channels(struct efx_nic *efx);
36 void efx_siena_fini_channels(struct efx_nic *efx);
37 void efx_siena_start_channels(struct efx_nic *efx);
38 void efx_siena_stop_channels(struct efx_nic *efx);
39 
40 void efx_siena_init_napi(struct efx_nic *efx);
41 void efx_siena_fini_napi(struct efx_nic *efx);
42 
43 void efx_siena_channel_dummy_op_void(struct efx_channel *channel);
44 
45 #endif
46