18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 28c2ecf20Sopenharmony_ci/**************************************************************************** 38c2ecf20Sopenharmony_ci * Driver for Solarflare network controllers and boards 48c2ecf20Sopenharmony_ci * Copyright 2018 Solarflare Communications Inc. 58c2ecf20Sopenharmony_ci * 68c2ecf20Sopenharmony_ci * This program is free software; you can redistribute it and/or modify it 78c2ecf20Sopenharmony_ci * under the terms of the GNU General Public License version 2 as published 88c2ecf20Sopenharmony_ci * by the Free Software Foundation, incorporated herein by reference. 98c2ecf20Sopenharmony_ci */ 108c2ecf20Sopenharmony_ci#ifndef EFX_MCDI_FUNCTIONS_H 118c2ecf20Sopenharmony_ci#define EFX_MCDI_FUNCTIONS_H 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ciint efx_mcdi_alloc_vis(struct efx_nic *efx, unsigned int min_vis, 148c2ecf20Sopenharmony_ci unsigned int max_vis, unsigned int *vi_base, 158c2ecf20Sopenharmony_ci unsigned int *allocated_vis); 168c2ecf20Sopenharmony_ciint efx_mcdi_free_vis(struct efx_nic *efx); 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ciint efx_mcdi_ev_probe(struct efx_channel *channel); 198c2ecf20Sopenharmony_ciint efx_mcdi_ev_init(struct efx_channel *channel, bool v1_cut_thru, bool v2); 208c2ecf20Sopenharmony_civoid efx_mcdi_ev_remove(struct efx_channel *channel); 218c2ecf20Sopenharmony_civoid efx_mcdi_ev_fini(struct efx_channel *channel); 228c2ecf20Sopenharmony_ciint efx_mcdi_tx_init(struct efx_tx_queue *tx_queue); 238c2ecf20Sopenharmony_civoid efx_mcdi_tx_remove(struct efx_tx_queue *tx_queue); 248c2ecf20Sopenharmony_civoid efx_mcdi_tx_fini(struct efx_tx_queue *tx_queue); 258c2ecf20Sopenharmony_ciint efx_mcdi_rx_probe(struct efx_rx_queue *rx_queue); 268c2ecf20Sopenharmony_civoid efx_mcdi_rx_init(struct efx_rx_queue *rx_queue); 278c2ecf20Sopenharmony_civoid efx_mcdi_rx_remove(struct efx_rx_queue *rx_queue); 288c2ecf20Sopenharmony_civoid efx_mcdi_rx_fini(struct efx_rx_queue *rx_queue); 298c2ecf20Sopenharmony_ciint efx_fini_dmaq(struct efx_nic *efx); 308c2ecf20Sopenharmony_ciint efx_mcdi_window_mode_to_stride(struct efx_nic *efx, u8 vi_window_mode); 318c2ecf20Sopenharmony_ciint efx_get_pf_index(struct efx_nic *efx, unsigned int *pf_index); 328c2ecf20Sopenharmony_ci 338c2ecf20Sopenharmony_ci#endif 34