efx_channels.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. #ifndef EFX_SIENA_CHANNELS_H
  11. #define EFX_SIENA_CHANNELS_H
  12. extern unsigned int efx_siena_interrupt_mode;
  13. extern unsigned int efx_siena_rss_cpus;
  14. int efx_siena_probe_interrupts(struct efx_nic *efx);
  15. void efx_siena_remove_interrupts(struct efx_nic *efx);
  16. int efx_siena_enable_interrupts(struct efx_nic *efx);
  17. void efx_siena_disable_interrupts(struct efx_nic *efx);
  18. void efx_siena_set_interrupt_affinity(struct efx_nic *efx);
  19. void efx_siena_clear_interrupt_affinity(struct efx_nic *efx);
  20. void efx_siena_start_eventq(struct efx_channel *channel);
  21. void efx_siena_stop_eventq(struct efx_channel *channel);
  22. int efx_siena_realloc_channels(struct efx_nic *efx, u32 rxq_entries,
  23. u32 txq_entries);
  24. void efx_siena_set_channel_names(struct efx_nic *efx);
  25. int efx_siena_init_channels(struct efx_nic *efx);
  26. int efx_siena_probe_channels(struct efx_nic *efx);
  27. int efx_siena_set_channels(struct efx_nic *efx);
  28. void efx_siena_remove_channel(struct efx_channel *channel);
  29. void efx_siena_remove_channels(struct efx_nic *efx);
  30. void efx_siena_fini_channels(struct efx_nic *efx);
  31. void efx_siena_start_channels(struct efx_nic *efx);
  32. void efx_siena_stop_channels(struct efx_nic *efx);
  33. void efx_siena_init_napi(struct efx_nic *efx);
  34. void efx_siena_fini_napi(struct efx_nic *efx);
  35. void efx_siena_channel_dummy_op_void(struct efx_channel *channel);
  36. #endif