Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /****************************************************************************
0003  * Driver for Solarflare network controllers and boards
0004  * Copyright 2018 Solarflare Communications Inc.
0005  *
0006  * This program is free software; you can redistribute it and/or modify it
0007  * under the terms of the GNU General Public License version 2 as published
0008  * by the Free Software Foundation, incorporated herein by reference.
0009  */
0010 
0011 #ifndef EFX_SIENA_CHANNELS_H
0012 #define EFX_SIENA_CHANNELS_H
0013 
0014 extern unsigned int efx_siena_interrupt_mode;
0015 extern unsigned int efx_siena_rss_cpus;
0016 
0017 int efx_siena_probe_interrupts(struct efx_nic *efx);
0018 void efx_siena_remove_interrupts(struct efx_nic *efx);
0019 int efx_siena_enable_interrupts(struct efx_nic *efx);
0020 void efx_siena_disable_interrupts(struct efx_nic *efx);
0021 
0022 void efx_siena_set_interrupt_affinity(struct efx_nic *efx);
0023 void efx_siena_clear_interrupt_affinity(struct efx_nic *efx);
0024 
0025 void efx_siena_start_eventq(struct efx_channel *channel);
0026 void efx_siena_stop_eventq(struct efx_channel *channel);
0027 
0028 int efx_siena_realloc_channels(struct efx_nic *efx, u32 rxq_entries,
0029                    u32 txq_entries);
0030 void efx_siena_set_channel_names(struct efx_nic *efx);
0031 int efx_siena_init_channels(struct efx_nic *efx);
0032 int efx_siena_probe_channels(struct efx_nic *efx);
0033 int efx_siena_set_channels(struct efx_nic *efx);
0034 void efx_siena_remove_channel(struct efx_channel *channel);
0035 void efx_siena_remove_channels(struct efx_nic *efx);
0036 void efx_siena_fini_channels(struct efx_nic *efx);
0037 void efx_siena_start_channels(struct efx_nic *efx);
0038 void efx_siena_stop_channels(struct efx_nic *efx);
0039 
0040 void efx_siena_init_napi(struct efx_nic *efx);
0041 void efx_siena_fini_napi(struct efx_nic *efx);
0042 
0043 void efx_siena_channel_dummy_op_void(struct efx_channel *channel);
0044 
0045 #endif