1eff380aaSAnirudh Venkataramanan /* SPDX-License-Identifier: GPL-2.0 */ 2eff380aaSAnirudh Venkataramanan /* Copyright (c) 2019, Intel Corporation. */ 3eff380aaSAnirudh Venkataramanan 4eff380aaSAnirudh Venkataramanan #ifndef _ICE_BASE_H_ 5eff380aaSAnirudh Venkataramanan #define _ICE_BASE_H_ 6eff380aaSAnirudh Venkataramanan 7eff380aaSAnirudh Venkataramanan #include "ice.h" 8eff380aaSAnirudh Venkataramanan 9*e72bba21SMaciej Fijalkowski int ice_vsi_cfg_rxq(struct ice_rx_ring *ring); 10eff380aaSAnirudh Venkataramanan int __ice_vsi_get_qs(struct ice_qs_cfg *qs_cfg); 1113a6233bSBrett Creeley int 1213a6233bSBrett Creeley ice_vsi_ctrl_one_rx_ring(struct ice_vsi *vsi, bool ena, u16 rxq_idx, bool wait); 1313a6233bSBrett Creeley int ice_vsi_wait_one_rx_ring(struct ice_vsi *vsi, bool ena, u16 rxq_idx); 14eff380aaSAnirudh Venkataramanan int ice_vsi_alloc_q_vectors(struct ice_vsi *vsi); 15eff380aaSAnirudh Venkataramanan void ice_vsi_map_rings_to_vectors(struct ice_vsi *vsi); 16eff380aaSAnirudh Venkataramanan void ice_vsi_free_q_vectors(struct ice_vsi *vsi); 17eff380aaSAnirudh Venkataramanan int 18*e72bba21SMaciej Fijalkowski ice_vsi_cfg_txq(struct ice_vsi *vsi, struct ice_tx_ring *ring, 19e75d1b2cSMaciej Fijalkowski struct ice_aqc_add_tx_qgrp *qg_buf); 20eff380aaSAnirudh Venkataramanan void ice_cfg_itr(struct ice_hw *hw, struct ice_q_vector *q_vector); 21eff380aaSAnirudh Venkataramanan void 22eff380aaSAnirudh Venkataramanan ice_cfg_txq_interrupt(struct ice_vsi *vsi, u16 txq, u16 msix_idx, u16 itr_idx); 23eff380aaSAnirudh Venkataramanan void 24eff380aaSAnirudh Venkataramanan ice_cfg_rxq_interrupt(struct ice_vsi *vsi, u16 rxq, u16 msix_idx, u16 itr_idx); 25eff380aaSAnirudh Venkataramanan void ice_trigger_sw_intr(struct ice_hw *hw, struct ice_q_vector *q_vector); 26eff380aaSAnirudh Venkataramanan int 27eff380aaSAnirudh Venkataramanan ice_vsi_stop_tx_ring(struct ice_vsi *vsi, enum ice_disq_rst_src rst_src, 28*e72bba21SMaciej Fijalkowski u16 rel_vmvf_num, struct ice_tx_ring *ring, 29eff380aaSAnirudh Venkataramanan struct ice_txq_meta *txq_meta); 30eff380aaSAnirudh Venkataramanan void 31*e72bba21SMaciej Fijalkowski ice_fill_txq_meta(struct ice_vsi *vsi, struct ice_tx_ring *ring, 32eff380aaSAnirudh Venkataramanan struct ice_txq_meta *txq_meta); 33eff380aaSAnirudh Venkataramanan #endif /* _ICE_BASE_H_ */ 34