#include "ice_common.h"
-
#define ICE_CQ_INIT_REGS(qinfo, prefix) \
do { \
(qinfo)->sq.head = prefix##_ATQH; \
ICE_CQ_INIT_REGS(cq, PF_MBX);
}
-
/**
* ice_check_sq_alive
* @hw: pointer to the HW struct
return ret_code;
}
-
/**
* ice_init_check_adminq - Check version for Admin Queue to know if its alive
* @hw: pointer to the hardware structure
ice_debug(hw, ICE_DBG_TRACE, "%s\n", __func__);
-
status = ice_aq_get_fw_ver(hw, NULL);
if (status)
goto init_ctrlq_free_rq;
-
if (!ice_aq_ver_check(hw)) {
status = ICE_ERR_FW_API_VER;
goto init_ctrlq_free_rq;
ice_debug(hw, ICE_DBG_TRACE, "%s\n", __func__);
-
/* Init FW admin queue */
ret_code = ice_init_ctrlq(hw, ICE_CTL_Q_ADMIN);
if (ret_code)
ice_debug_cq(hw, (void *)desc_on_ring, buf, buf_size);
-
(cq->sq.next_to_use)++;
if (cq->sq.next_to_use == cq->sq.count)
cq->sq.next_to_use = 0;
ice_debug_cq(hw, (void *)desc, buf, buf_size);
-
/* save writeback AQ if requested */
if (details->wb_desc)
ice_memcpy(details->wb_desc, desc_on_ring,
ice_debug_cq(hw, (void *)desc, e->msg_buf,
cq->rq_buf_size);
-
/* Restore the original datalen and buffer address in the desc,
* FW updates datalen to indicate the event message size
*/