0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef EFX_MCDI_FUNCTIONS_H
0011 #define EFX_MCDI_FUNCTIONS_H
0012
0013 int efx_mcdi_alloc_vis(struct efx_nic *efx, unsigned int min_vis,
0014 unsigned int max_vis, unsigned int *vi_base,
0015 unsigned int *allocated_vis);
0016 int efx_mcdi_free_vis(struct efx_nic *efx);
0017
0018 int efx_mcdi_ev_probe(struct efx_channel *channel);
0019 int efx_mcdi_ev_init(struct efx_channel *channel, bool v1_cut_thru, bool v2);
0020 void efx_mcdi_ev_remove(struct efx_channel *channel);
0021 void efx_mcdi_ev_fini(struct efx_channel *channel);
0022 int efx_mcdi_tx_init(struct efx_tx_queue *tx_queue);
0023 void efx_mcdi_tx_remove(struct efx_tx_queue *tx_queue);
0024 void efx_mcdi_tx_fini(struct efx_tx_queue *tx_queue);
0025 int efx_mcdi_rx_probe(struct efx_rx_queue *rx_queue);
0026 void efx_mcdi_rx_init(struct efx_rx_queue *rx_queue);
0027 void efx_mcdi_rx_remove(struct efx_rx_queue *rx_queue);
0028 void efx_mcdi_rx_fini(struct efx_rx_queue *rx_queue);
0029 int efx_fini_dmaq(struct efx_nic *efx);
0030 int efx_mcdi_window_mode_to_stride(struct efx_nic *efx, u8 vi_window_mode);
0031 int efx_get_pf_index(struct efx_nic *efx, unsigned int *pf_index);
0032
0033 #endif