1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /****************************************************************************
3 * Driver for Solarflare network controllers and boards
4 * Copyright 2018 Solarflare Communications Inc.
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.
11 #ifndef EFX_SIENA_CHANNELS_H
12 #define EFX_SIENA_CHANNELS_H
14 extern unsigned int efx_siena_interrupt_mode
;
15 extern unsigned int efx_siena_rss_cpus
;
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
);
22 void efx_siena_set_interrupt_affinity(struct efx_nic
*efx
);
23 void efx_siena_clear_interrupt_affinity(struct efx_nic
*efx
);
25 void efx_siena_start_eventq(struct efx_channel
*channel
);
26 void efx_siena_stop_eventq(struct efx_channel
*channel
);
28 int efx_siena_realloc_channels(struct efx_nic
*efx
, u32 rxq_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
);
40 void efx_siena_init_napi(struct efx_nic
*efx
);
41 void efx_siena_fini_napi(struct efx_nic
*efx
);
43 void efx_siena_channel_dummy_op_void(struct efx_channel
*channel
);