2 * Copyright (c) 2016 QLogic Corporation.
6 * See LICENSE.qede_pmd for copyright and licensing details.
10 #define __ECORE_L2_H__
14 #include "ecore_spq.h"
15 #include "ecore_l2_api.h"
18 * @brief ecore_sp_eth_tx_queue_update -
20 * This ramrod updates a TX queue. It is used for setting the active
23 * @note Final phase API.
27 * @return enum _ecore_status_t
29 enum _ecore_status_t ecore_sp_eth_tx_queue_update(struct ecore_hwfn *p_hwfn);
32 ecore_sp_eth_vport_start(struct ecore_hwfn *p_hwfn,
33 struct ecore_sp_vport_start_params *p_params);
36 * @brief - Starts an Rx queue; Should be used where contexts are handled
37 * outside of the ramrod area [specifically iov scenarios]
48 * @param bd_chain_phys_addr
53 * @return enum _ecore_status_t
56 ecore_sp_eth_rxq_start_ramrod(struct ecore_hwfn *p_hwfn,
65 dma_addr_t bd_chain_phys_addr,
66 dma_addr_t cqe_pbl_addr, u16 cqe_pbl_size);
69 * @brief - Starts a Tx queue; Should be used where contexts are handled
70 * outside of the ramrod area [specifically iov scenarios]
82 * @param p_pq_params - parameters for choosing the PQ for this Tx queue
84 * @return enum _ecore_status_t
87 ecore_sp_eth_txq_start_ramrod(struct ecore_hwfn *p_hwfn,
97 union ecore_qm_pq_params *p_pq_params);
99 u8 ecore_mcast_bin_from_mac(u8 *mac);