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 11*309ec443SSaeed Mahameed #ifndef EFX_SIENA_CHANNELS_H 12*309ec443SSaeed Mahameed #define EFX_SIENA_CHANNELS_H 136e173d3bSMartin Habets 1471ad88f6SMartin Habets extern unsigned int efx_siena_interrupt_mode; 1571ad88f6SMartin Habets extern unsigned int efx_siena_rss_cpus; 166e173d3bSMartin Habets 1771ad88f6SMartin Habets int efx_siena_probe_interrupts(struct efx_nic *efx); 1871ad88f6SMartin Habets void efx_siena_remove_interrupts(struct efx_nic *efx); 1971ad88f6SMartin Habets int efx_siena_enable_interrupts(struct efx_nic *efx); 2071ad88f6SMartin Habets void efx_siena_disable_interrupts(struct efx_nic *efx); 216e173d3bSMartin Habets 2271ad88f6SMartin Habets void efx_siena_set_interrupt_affinity(struct efx_nic *efx); 2371ad88f6SMartin Habets void efx_siena_clear_interrupt_affinity(struct efx_nic *efx); 246e173d3bSMartin Habets 2571ad88f6SMartin Habets void efx_siena_start_eventq(struct efx_channel *channel); 2671ad88f6SMartin Habets void efx_siena_stop_eventq(struct efx_channel *channel); 276e173d3bSMartin Habets 2871ad88f6SMartin Habets int efx_siena_realloc_channels(struct efx_nic *efx, u32 rxq_entries, 2971ad88f6SMartin Habets u32 txq_entries); 3071ad88f6SMartin Habets void efx_siena_set_channel_names(struct efx_nic *efx); 3171ad88f6SMartin Habets int efx_siena_init_channels(struct efx_nic *efx); 3271ad88f6SMartin Habets int efx_siena_probe_channels(struct efx_nic *efx); 3371ad88f6SMartin Habets int efx_siena_set_channels(struct efx_nic *efx); 3471ad88f6SMartin Habets void efx_siena_remove_channel(struct efx_channel *channel); 3571ad88f6SMartin Habets void efx_siena_remove_channels(struct efx_nic *efx); 3671ad88f6SMartin Habets void efx_siena_fini_channels(struct efx_nic *efx); 3771ad88f6SMartin Habets void efx_siena_start_channels(struct efx_nic *efx); 3871ad88f6SMartin Habets void efx_siena_stop_channels(struct efx_nic *efx); 396e173d3bSMartin Habets 4071ad88f6SMartin Habets void efx_siena_init_napi(struct efx_nic *efx); 4171ad88f6SMartin Habets void efx_siena_fini_napi(struct efx_nic *efx); 426e173d3bSMartin Habets 4371ad88f6SMartin Habets void efx_siena_channel_dummy_op_void(struct efx_channel *channel); 446e173d3bSMartin Habets 456e173d3bSMartin Habets #endif 46