2 * Copyright (c) 2016 QLogic Corporation.
6 * See LICENSE.qede_pmd for copyright and licensing details.
10 #define __ECORE_L2_H__
15 #include "ecore_spq.h"
16 #include "ecore_l2_api.h"
19 * @brief ecore_sp_eth_tx_queue_update -
21 * This ramrod updates a TX queue. It is used for setting the active
24 * @note Final phase API.
28 * @return enum _ecore_status_t
30 enum _ecore_status_t ecore_sp_eth_tx_queue_update(struct ecore_hwfn *p_hwfn);
33 ecore_sp_eth_vport_start(struct ecore_hwfn *p_hwfn,
34 struct ecore_sp_vport_start_params *p_params);
37 * @brief - Starts an Rx queue; Should be used where contexts are handled
38 * outside of the ramrod area [specifically iov scenarios]
43 * @param p_params [queue_id, vport_id, stats_id, sb, sb_idx, vf_qid]
44 stats_id is absolute packed in p_params.
46 * @param bd_chain_phys_addr
49 * @param b_use_zone_a_prod - support legacy VF producers
51 * @return enum _ecore_status_t
54 ecore_sp_eth_rxq_start_ramrod(struct ecore_hwfn *p_hwfn,
57 struct ecore_queue_start_common_params *p_params,
59 dma_addr_t bd_chain_phys_addr,
60 dma_addr_t cqe_pbl_addr,
61 u16 cqe_pbl_size, bool b_use_zone_a_prod);
64 * @brief - Starts a Tx queue; Should be used where contexts are handled
65 * outside of the ramrod area [specifically iov scenarios]
70 * @param p_params [queue_id, vport_id,stats_id, sb, sb_idx, vf_qid]
73 * @param p_pq_params - parameters for choosing the PQ for this Tx queue
75 * @return enum _ecore_status_t
78 ecore_sp_eth_txq_start_ramrod(struct ecore_hwfn *p_hwfn,
81 struct ecore_queue_start_common_params *p_params,
84 union ecore_qm_pq_params *p_pq_params);
86 u8 ecore_mcast_bin_from_mac(u8 *mac);