net/liquidio: add API to setup Rx queue
[dpdk.git] / drivers / net / qede / base / ecore_dev_api.h
index e6924bd..0dee68a 100644 (file)
@@ -57,26 +57,29 @@ enum _ecore_status_t ecore_resc_alloc(struct ecore_dev *p_dev);
  */
 void ecore_resc_setup(struct ecore_dev *p_dev);
 
+struct ecore_hw_init_params {
+       /* tunnelling parameters */
+       struct ecore_tunn_start_params *p_tunn;
+       bool b_hw_start;
+       /* interrupt mode [msix, inta, etc.] to use */
+       enum ecore_int_mode int_mode;
+/* npar tx switching to be used for vports configured for tx-switching */
+
+       bool allow_npar_tx_switch;
+       /* binary fw data pointer in binary fw file */
+       const u8 *bin_fw_data;
+};
+
 /**
  * @brief ecore_hw_init -
  *
  * @param p_dev
- * @param p_tunn - tunneling parameters
- * @param b_hw_start
- * @param int_mode - interrupt mode [msix, inta, etc.] to use.
- * @param allow_npar_tx_switch - npar tx switching to be used
- *       for vports configured for tx-switching.
- * @param bin_fw_data - binary fw data pointer in binary fw file.
- *                     Pass NULL if not using binary fw file.
+ * @param p_params
  *
  * @return enum _ecore_status_t
  */
 enum _ecore_status_t ecore_hw_init(struct ecore_dev *p_dev,
-                                  struct ecore_tunn_start_params *p_tunn,
-                                  bool b_hw_start,
-                                  enum ecore_int_mode int_mode,
-                                  bool allow_npar_tx_switch,
-                                  const u8 *bin_fw_data);
+                                  struct ecore_hw_init_params *p_params);
 
 /**
  * @brief ecore_hw_timers_stop_all -
@@ -98,8 +101,8 @@ enum _ecore_status_t ecore_hw_stop(struct ecore_dev *p_dev);
 
 /**
  * @brief ecore_hw_stop_fastpath -should be called incase
- *        slowpath is still required for the device, but
- *        fastpath is not.
+ *        slowpath is still required for the device,
+ *        but fastpath is not.
  *
  * @param p_dev
  *
@@ -142,6 +145,10 @@ struct ecore_hw_prepare_params {
        bool drv_resc_alloc;
        /* check the reg_fifo after any register access */
        bool chk_reg_fifo;
+       /* request the MFW to initiate PF FLR */
+       bool initiate_pf_flr;
+       /* the OS Epoch time in seconds */
+       u32 epoch;
 };
 
 /**
@@ -363,7 +370,8 @@ ecore_chain_alloc(struct ecore_dev *p_dev,
                  enum ecore_chain_cnt_type cnt_type,
                  u32 num_elems,
                  osal_size_t elem_size,
-                 struct ecore_chain *p_chain);
+                 struct ecore_chain *p_chain,
+                 struct ecore_chain_ext_pbl *ext_pbl);
 
 /**
  * @brief ecore_chain_free - Free chain DMA memory