return rc;
}
+int bnxt_hwrm_port_phy_qcaps(struct bnxt *bp)
+{
+ int rc = 0;
+ struct hwrm_port_phy_qcaps_input req = {0};
+ struct hwrm_port_phy_qcaps_output *resp = bp->hwrm_cmd_resp_addr;
+
+ if (BNXT_VF(bp) && !BNXT_VF_IS_TRUSTED(bp))
+ return 0;
+
+ HWRM_PREP(&req, HWRM_PORT_PHY_QCAPS, BNXT_USE_CHIMP_MB);
+
+ rc = bnxt_hwrm_send_message(bp, &req, sizeof(req), BNXT_USE_CHIMP_MB);
+
+ HWRM_CHECK_RESULT();
+
+ bp->port_cnt = resp->port_cnt;
+
+ HWRM_UNLOCK();
+
+ return 0;
+}
+
static bool bnxt_find_lossy_profile(struct bnxt *bp)
{
int i = 0;
return 0;
}
+
+#ifdef RTE_LIBRTE_BNXT_PMD_SYSTEM
+int
+bnxt_hwrm_oem_cmd(struct bnxt *bp, uint32_t entry_num)
+{
+ struct hwrm_oem_cmd_input req = {0};
+ struct hwrm_oem_cmd_output *resp = bp->hwrm_cmd_resp_addr;
+ struct bnxt_dmabuf_info oem_data;
+ int rc = 0;
+
+ HWRM_PREP(&req, HWRM_OEM_CMD, BNXT_USE_CHIMP_MB);
+ req.IANA = 0x14e4;
+
+ memset(&oem_data, 0, sizeof(struct bnxt_dmabuf_info));
+ oem_data.entry_num = (entry_num);
+ memcpy(&req.oem_data[0], &oem_data, sizeof(struct bnxt_dmabuf_info));
+
+ rc = bnxt_hwrm_send_message(bp, &req, sizeof(req), BNXT_USE_CHIMP_MB);
+ HWRM_CHECK_RESULT();
+
+ bp->dmabuf.entry_num = entry_num;
+
+ HWRM_UNLOCK();
+
+ return rc;
+}
+#endif /* RTE_LIBRTE_BNXT_PMD_SYSTEM */