16e173d3bSMartin Habets /* SPDX-License-Identifier: GPL-2.0-only */ 26e173d3bSMartin Habets /**************************************************************************** 36e173d3bSMartin Habets * Driver for Solarflare network controllers and boards 46e173d3bSMartin Habets * Copyright 2018 Solarflare Communications Inc. 56e173d3bSMartin Habets * 66e173d3bSMartin Habets * This program is free software; you can redistribute it and/or modify it 76e173d3bSMartin Habets * under the terms of the GNU General Public License version 2 as published 86e173d3bSMartin Habets * by the Free Software Foundation, incorporated herein by reference. 96e173d3bSMartin Habets */ 106e173d3bSMartin Habets 116e173d3bSMartin Habets #ifndef EFX_CHANNELS_H 126e173d3bSMartin Habets #define EFX_CHANNELS_H 136e173d3bSMartin Habets 14*71ad88f6SMartin Habets extern unsigned int efx_siena_interrupt_mode; 15*71ad88f6SMartin Habets extern unsigned int efx_siena_rss_cpus; 166e173d3bSMartin Habets 17*71ad88f6SMartin Habets int efx_siena_probe_interrupts(struct efx_nic *efx); 18*71ad88f6SMartin Habets void efx_siena_remove_interrupts(struct efx_nic *efx); 19*71ad88f6SMartin Habets int efx_siena_enable_interrupts(struct efx_nic *efx); 20*71ad88f6SMartin Habets void efx_siena_disable_interrupts(struct efx_nic *efx); 216e173d3bSMartin Habets 22*71ad88f6SMartin Habets void efx_siena_set_interrupt_affinity(struct efx_nic *efx); 23*71ad88f6SMartin Habets void efx_siena_clear_interrupt_affinity(struct efx_nic *efx); 246e173d3bSMartin Habets 25*71ad88f6SMartin Habets void efx_siena_start_eventq(struct efx_channel *channel); 26*71ad88f6SMartin Habets void efx_siena_stop_eventq(struct efx_channel *channel); 276e173d3bSMartin Habets 28*71ad88f6SMartin Habets int efx_siena_realloc_channels(struct efx_nic *efx, u32 rxq_entries, 29*71ad88f6SMartin Habets u32 txq_entries); 30*71ad88f6SMartin Habets void efx_siena_set_channel_names(struct efx_nic *efx); 31*71ad88f6SMartin Habets int efx_siena_init_channels(struct efx_nic *efx); 32*71ad88f6SMartin Habets int efx_siena_probe_channels(struct efx_nic *efx); 33*71ad88f6SMartin Habets int efx_siena_set_channels(struct efx_nic *efx); 34*71ad88f6SMartin Habets void efx_siena_remove_channel(struct efx_channel *channel); 35*71ad88f6SMartin Habets void efx_siena_remove_channels(struct efx_nic *efx); 36*71ad88f6SMartin Habets void efx_siena_fini_channels(struct efx_nic *efx); 37*71ad88f6SMartin Habets void efx_siena_start_channels(struct efx_nic *efx); 38*71ad88f6SMartin Habets void efx_siena_stop_channels(struct efx_nic *efx); 396e173d3bSMartin Habets 40*71ad88f6SMartin Habets void efx_siena_init_napi(struct efx_nic *efx); 41*71ad88f6SMartin Habets void efx_siena_fini_napi(struct efx_nic *efx); 426e173d3bSMartin Habets 43*71ad88f6SMartin Habets void efx_siena_channel_dummy_op_void(struct efx_channel *channel); 446e173d3bSMartin Habets 456e173d3bSMartin Habets #endif 46