1e1253f39SAlex Maftei (amaftei) /* SPDX-License-Identifier: GPL-2.0-only */
2e1253f39SAlex Maftei (amaftei) /****************************************************************************
3e1253f39SAlex Maftei (amaftei)  * Driver for Solarflare network controllers and boards
4e1253f39SAlex Maftei (amaftei)  * Copyright 2018 Solarflare Communications Inc.
5e1253f39SAlex Maftei (amaftei)  *
6e1253f39SAlex Maftei (amaftei)  * This program is free software; you can redistribute it and/or modify it
7e1253f39SAlex Maftei (amaftei)  * under the terms of the GNU General Public License version 2 as published
8e1253f39SAlex Maftei (amaftei)  * by the Free Software Foundation, incorporated herein by reference.
9e1253f39SAlex Maftei (amaftei)  */
10e1253f39SAlex Maftei (amaftei) #ifndef EFX_MCDI_FUNCTIONS_H
11e1253f39SAlex Maftei (amaftei) #define EFX_MCDI_FUNCTIONS_H
12e1253f39SAlex Maftei (amaftei) 
13e1253f39SAlex Maftei (amaftei) int efx_mcdi_alloc_vis(struct efx_nic *efx, unsigned int min_vis,
14e1253f39SAlex Maftei (amaftei) 		       unsigned int max_vis, unsigned int *vi_base,
15e1253f39SAlex Maftei (amaftei) 		       unsigned int *allocated_vis);
16e1253f39SAlex Maftei (amaftei) int efx_mcdi_free_vis(struct efx_nic *efx);
17e1253f39SAlex Maftei (amaftei) 
18e1253f39SAlex Maftei (amaftei) int efx_mcdi_ev_probe(struct efx_channel *channel);
19e1253f39SAlex Maftei (amaftei) int efx_mcdi_ev_init(struct efx_channel *channel, bool v1_cut_thru, bool v2);
20e1253f39SAlex Maftei (amaftei) void efx_mcdi_ev_remove(struct efx_channel *channel);
21e1253f39SAlex Maftei (amaftei) void efx_mcdi_ev_fini(struct efx_channel *channel);
22e1253f39SAlex Maftei (amaftei) int efx_mcdi_tx_init(struct efx_tx_queue *tx_queue, bool tso_v2);
23e1253f39SAlex Maftei (amaftei) void efx_mcdi_tx_remove(struct efx_tx_queue *tx_queue);
24e1253f39SAlex Maftei (amaftei) void efx_mcdi_tx_fini(struct efx_tx_queue *tx_queue);
25e1253f39SAlex Maftei (amaftei) int efx_mcdi_rx_probe(struct efx_rx_queue *rx_queue);
268da92642SAlex Maftei (amaftei) void efx_mcdi_rx_init(struct efx_rx_queue *rx_queue);
27e1253f39SAlex Maftei (amaftei) void efx_mcdi_rx_remove(struct efx_rx_queue *rx_queue);
28e1253f39SAlex Maftei (amaftei) void efx_mcdi_rx_fini(struct efx_rx_queue *rx_queue);
29d700fe01SEdward Cree int efx_fini_dmaq(struct efx_nic *efx);
30190c736aSAlex Maftei (amaftei) int efx_mcdi_window_mode_to_stride(struct efx_nic *efx, u8 vi_window_mode);
3131482310SAlex Maftei (amaftei) int efx_get_pf_index(struct efx_nic *efx, unsigned int *pf_index);
32e1253f39SAlex Maftei (amaftei) 
33e1253f39SAlex Maftei (amaftei) #endif
34