Add a macro for unsupported management FW command
Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
if (rc != ECORE_SUCCESS)
return rc;
- /* A zero response implies that the mdump command is not supported */
- if (!mcp_resp)
+ if (mcp_resp == FW_MSG_CODE_UNSUPPORTED)
return ECORE_NOTIMPL;
if (mcp_resp != FW_MSG_CODE_OK) {
if (rc != ECORE_SUCCESS)
return rc;
- /* A zero response implies that the resource command is not supported */
- if (!*p_mcp_resp)
+ if (*p_mcp_resp == FW_MSG_CODE_UNSUPPORTED)
return ECORE_NOTIMPL;
if (*p_mcp_param == RESOURCE_OPCODE_UNKNOWN_CMD) {
u32 fw_mb_header;
#define FW_MSG_CODE_MASK 0xffff0000
+#define FW_MSG_CODE_UNSUPPORTED 0x00000000
#define FW_MSG_CODE_DRV_LOAD_ENGINE 0x10100000
#define FW_MSG_CODE_DRV_LOAD_PORT 0x10110000
#define FW_MSG_CODE_DRV_LOAD_FUNCTION 0x10120000