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_vf_start - VF Function Start
20 * This ramrod is sent to initialize a virtual function (VF) is loaded.
21 * It will configure the function related parameters.
23 * @note Final phase API.
26 * @param concrete_vfid VF ID
29 * @return enum _ecore_status_t
32 enum _ecore_status_t ecore_sp_vf_start(struct ecore_hwfn *p_hwfn,
33 u32 concrete_vfid, u16 opaque_vfid);
36 * @brief ecore_sp_vf_update - VF Function Update Ramrod
38 * This ramrod performs updates of a virtual function (VF).
39 * It currently contains no functionality.
41 * @note Final phase API.
45 * @return enum _ecore_status_t
48 enum _ecore_status_t ecore_sp_vf_update(struct ecore_hwfn *p_hwfn);
51 * @brief ecore_sp_vf_stop - VF Function Stop Ramrod
53 * This ramrod is sent to unload a virtual function (VF).
55 * @note Final phase API.
58 * @param concrete_vfid
61 * @return enum _ecore_status_t
64 enum _ecore_status_t ecore_sp_vf_stop(struct ecore_hwfn *p_hwfn,
65 u32 concrete_vfid, u16 opaque_vfid);
68 * @brief ecore_sp_eth_tx_queue_update -
70 * This ramrod updates a TX queue. It is used for setting the active
73 * @note Final phase API.
77 * @return enum _ecore_status_t
79 enum _ecore_status_t ecore_sp_eth_tx_queue_update(struct ecore_hwfn *p_hwfn);
82 ecore_sp_eth_vport_start(struct ecore_hwfn *p_hwfn,
83 struct ecore_sp_vport_start_params *p_params);
86 * @brief - Starts an Rx queue; Should be used where contexts are handled
87 * outside of the ramrod area [specifically iov scenarios]
98 * @param bd_chain_phys_addr
100 * @param cqe_pbl_size
103 * @return enum _ecore_status_t
106 ecore_sp_eth_rxq_start_ramrod(struct ecore_hwfn *p_hwfn,
115 dma_addr_t bd_chain_phys_addr,
116 dma_addr_t cqe_pbl_addr, u16 cqe_pbl_size);
119 * @brief - Starts a Tx queue; Should be used where contexts are handled
120 * outside of the ramrod area [specifically iov scenarios]
132 * @param p_pq_params - parameters for choosing the PQ for this Tx queue
134 * @return enum _ecore_status_t
137 ecore_sp_eth_txq_start_ramrod(struct ecore_hwfn *p_hwfn,
147 union ecore_qm_pq_params *p_pq_params);
149 u8 ecore_mcast_bin_from_mac(u8 *mac);