linux/drivers/net/ethernet/sfc/efx_channels.h
<<
>>
Prefs
   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_CHANNELS_H
  12#define EFX_CHANNELS_H
  13
  14extern unsigned int efx_interrupt_mode;
  15extern unsigned int rss_cpus;
  16
  17int efx_probe_interrupts(struct efx_nic *efx);
  18void efx_remove_interrupts(struct efx_nic *efx);
  19int efx_soft_enable_interrupts(struct efx_nic *efx);
  20void efx_soft_disable_interrupts(struct efx_nic *efx);
  21int efx_enable_interrupts(struct efx_nic *efx);
  22void efx_disable_interrupts(struct efx_nic *efx);
  23
  24void efx_set_interrupt_affinity(struct efx_nic *efx);
  25void efx_clear_interrupt_affinity(struct efx_nic *efx);
  26
  27int efx_probe_eventq(struct efx_channel *channel);
  28int efx_init_eventq(struct efx_channel *channel);
  29void efx_start_eventq(struct efx_channel *channel);
  30void efx_stop_eventq(struct efx_channel *channel);
  31void efx_fini_eventq(struct efx_channel *channel);
  32void efx_remove_eventq(struct efx_channel *channel);
  33
  34int efx_realloc_channels(struct efx_nic *efx, u32 rxq_entries, u32 txq_entries);
  35void efx_set_channel_names(struct efx_nic *efx);
  36int efx_init_channels(struct efx_nic *efx);
  37int efx_probe_channels(struct efx_nic *efx);
  38int efx_set_channels(struct efx_nic *efx);
  39void efx_remove_channel(struct efx_channel *channel);
  40void efx_remove_channels(struct efx_nic *efx);
  41void efx_fini_channels(struct efx_nic *efx);
  42struct efx_channel *efx_copy_channel(const struct efx_channel *old_channel);
  43void efx_start_channels(struct efx_nic *efx);
  44void efx_stop_channels(struct efx_nic *efx);
  45
  46void efx_init_napi_channel(struct efx_channel *channel);
  47void efx_init_napi(struct efx_nic *efx);
  48void efx_fini_napi_channel(struct efx_channel *channel);
  49void efx_fini_napi(struct efx_nic *efx);
  50
  51void efx_channel_dummy_op_void(struct efx_channel *channel);
  52
  53#endif
  54