1*52fa7bf9SThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-only */ 2f844a0eaSJeff Kirsher /* 32732ba56SRasesh Mody * Linux network driver for QLogic BR-series Converged Network Adapter. 4f844a0eaSJeff Kirsher */ 5f844a0eaSJeff Kirsher /* 62732ba56SRasesh Mody * Copyright (c) 2005-2014 Brocade Communications Systems, Inc. 72732ba56SRasesh Mody * Copyright (c) 2014-2015 QLogic Corporation 8f844a0eaSJeff Kirsher * All rights reserved 92732ba56SRasesh Mody * www.qlogic.com 10f844a0eaSJeff Kirsher */ 11f844a0eaSJeff Kirsher #ifndef __BFA_DEFS_STATUS_H__ 12f844a0eaSJeff Kirsher #define __BFA_DEFS_STATUS_H__ 13f844a0eaSJeff Kirsher 141aa8b471SBen Hutchings /* API status return values 15f844a0eaSJeff Kirsher * 16f844a0eaSJeff Kirsher * NOTE: The error msgs are auto generated from the comments. Only singe line 17f844a0eaSJeff Kirsher * comments are supported 18f844a0eaSJeff Kirsher */ 19f844a0eaSJeff Kirsher enum bfa_status { 20f844a0eaSJeff Kirsher BFA_STATUS_OK = 0, 21f844a0eaSJeff Kirsher BFA_STATUS_FAILED = 1, 22f844a0eaSJeff Kirsher BFA_STATUS_EINVAL = 2, 23f844a0eaSJeff Kirsher BFA_STATUS_ENOMEM = 3, 24f844a0eaSJeff Kirsher BFA_STATUS_ENOSYS = 4, 25f844a0eaSJeff Kirsher BFA_STATUS_ETIMER = 5, 26f844a0eaSJeff Kirsher BFA_STATUS_EPROTOCOL = 6, 27f844a0eaSJeff Kirsher BFA_STATUS_ENOFCPORTS = 7, 28f844a0eaSJeff Kirsher BFA_STATUS_NOFLASH = 8, 29f844a0eaSJeff Kirsher BFA_STATUS_BADFLASH = 9, 30f844a0eaSJeff Kirsher BFA_STATUS_SFP_UNSUPP = 10, 31f844a0eaSJeff Kirsher BFA_STATUS_UNKNOWN_VFID = 11, 32f844a0eaSJeff Kirsher BFA_STATUS_DATACORRUPTED = 12, 33f844a0eaSJeff Kirsher BFA_STATUS_DEVBUSY = 13, 34f844a0eaSJeff Kirsher BFA_STATUS_ABORTED = 14, 35f844a0eaSJeff Kirsher BFA_STATUS_NODEV = 15, 36f844a0eaSJeff Kirsher BFA_STATUS_HDMA_FAILED = 16, 37f844a0eaSJeff Kirsher BFA_STATUS_FLASH_BAD_LEN = 17, 38f844a0eaSJeff Kirsher BFA_STATUS_UNKNOWN_LWWN = 18, 39f844a0eaSJeff Kirsher BFA_STATUS_UNKNOWN_RWWN = 19, 40f844a0eaSJeff Kirsher BFA_STATUS_FCPT_LS_RJT = 20, 41f844a0eaSJeff Kirsher BFA_STATUS_VPORT_EXISTS = 21, 42f844a0eaSJeff Kirsher BFA_STATUS_VPORT_MAX = 22, 43f844a0eaSJeff Kirsher BFA_STATUS_UNSUPP_SPEED = 23, 44f844a0eaSJeff Kirsher BFA_STATUS_INVLD_DFSZ = 24, 45f844a0eaSJeff Kirsher BFA_STATUS_CNFG_FAILED = 25, 46f844a0eaSJeff Kirsher BFA_STATUS_CMD_NOTSUPP = 26, 47f844a0eaSJeff Kirsher BFA_STATUS_NO_ADAPTER = 27, 48f844a0eaSJeff Kirsher BFA_STATUS_LINKDOWN = 28, 49f844a0eaSJeff Kirsher BFA_STATUS_FABRIC_RJT = 29, 50f844a0eaSJeff Kirsher BFA_STATUS_UNKNOWN_VWWN = 30, 51f844a0eaSJeff Kirsher BFA_STATUS_NSLOGIN_FAILED = 31, 52f844a0eaSJeff Kirsher BFA_STATUS_NO_RPORTS = 32, 53f844a0eaSJeff Kirsher BFA_STATUS_NSQUERY_FAILED = 33, 54f844a0eaSJeff Kirsher BFA_STATUS_PORT_OFFLINE = 34, 55f844a0eaSJeff Kirsher BFA_STATUS_RPORT_OFFLINE = 35, 56f844a0eaSJeff Kirsher BFA_STATUS_TGTOPEN_FAILED = 36, 57f844a0eaSJeff Kirsher BFA_STATUS_BAD_LUNS = 37, 58f844a0eaSJeff Kirsher BFA_STATUS_IO_FAILURE = 38, 59f844a0eaSJeff Kirsher BFA_STATUS_NO_FABRIC = 39, 60f844a0eaSJeff Kirsher BFA_STATUS_EBADF = 40, 61f844a0eaSJeff Kirsher BFA_STATUS_EINTR = 41, 62f844a0eaSJeff Kirsher BFA_STATUS_EIO = 42, 63f844a0eaSJeff Kirsher BFA_STATUS_ENOTTY = 43, 64f844a0eaSJeff Kirsher BFA_STATUS_ENXIO = 44, 65f844a0eaSJeff Kirsher BFA_STATUS_EFOPEN = 45, 66f844a0eaSJeff Kirsher BFA_STATUS_VPORT_WWN_BP = 46, 67f844a0eaSJeff Kirsher BFA_STATUS_PORT_NOT_DISABLED = 47, 68f844a0eaSJeff Kirsher BFA_STATUS_BADFRMHDR = 48, 69f844a0eaSJeff Kirsher BFA_STATUS_BADFRMSZ = 49, 70f844a0eaSJeff Kirsher BFA_STATUS_MISSINGFRM = 50, 71f844a0eaSJeff Kirsher BFA_STATUS_LINKTIMEOUT = 51, 72f844a0eaSJeff Kirsher BFA_STATUS_NO_FCPIM_NEXUS = 52, 73f844a0eaSJeff Kirsher BFA_STATUS_CHECKSUM_FAIL = 53, 74f844a0eaSJeff Kirsher BFA_STATUS_GZME_FAILED = 54, 75f844a0eaSJeff Kirsher BFA_STATUS_SCSISTART_REQD = 55, 76f844a0eaSJeff Kirsher BFA_STATUS_IOC_FAILURE = 56, 77f844a0eaSJeff Kirsher BFA_STATUS_INVALID_WWN = 57, 78f844a0eaSJeff Kirsher BFA_STATUS_MISMATCH = 58, 79f844a0eaSJeff Kirsher BFA_STATUS_IOC_ENABLED = 59, 80f844a0eaSJeff Kirsher BFA_STATUS_ADAPTER_ENABLED = 60, 81f844a0eaSJeff Kirsher BFA_STATUS_IOC_NON_OP = 61, 82f844a0eaSJeff Kirsher BFA_STATUS_ADDR_MAP_FAILURE = 62, 83f844a0eaSJeff Kirsher BFA_STATUS_SAME_NAME = 63, 84f844a0eaSJeff Kirsher BFA_STATUS_PENDING = 64, 85f844a0eaSJeff Kirsher BFA_STATUS_8G_SPD = 65, 86f844a0eaSJeff Kirsher BFA_STATUS_4G_SPD = 66, 87f844a0eaSJeff Kirsher BFA_STATUS_AD_IS_ENABLE = 67, 88f844a0eaSJeff Kirsher BFA_STATUS_EINVAL_TOV = 68, 89f844a0eaSJeff Kirsher BFA_STATUS_EINVAL_QDEPTH = 69, 90f844a0eaSJeff Kirsher BFA_STATUS_VERSION_FAIL = 70, 91f844a0eaSJeff Kirsher BFA_STATUS_DIAG_BUSY = 71, 92f844a0eaSJeff Kirsher BFA_STATUS_BEACON_ON = 72, 93f844a0eaSJeff Kirsher BFA_STATUS_BEACON_OFF = 73, 94f844a0eaSJeff Kirsher BFA_STATUS_LBEACON_ON = 74, 95f844a0eaSJeff Kirsher BFA_STATUS_LBEACON_OFF = 75, 96f844a0eaSJeff Kirsher BFA_STATUS_PORT_NOT_INITED = 76, 97f844a0eaSJeff Kirsher BFA_STATUS_RPSC_ENABLED = 77, 98f844a0eaSJeff Kirsher BFA_STATUS_ENOFSAVE = 78, 99f844a0eaSJeff Kirsher BFA_STATUS_BAD_FILE = 79, 100f844a0eaSJeff Kirsher BFA_STATUS_RLIM_EN = 80, 101f844a0eaSJeff Kirsher BFA_STATUS_RLIM_DIS = 81, 102f844a0eaSJeff Kirsher BFA_STATUS_IOC_DISABLED = 82, 103f844a0eaSJeff Kirsher BFA_STATUS_ADAPTER_DISABLED = 83, 104f844a0eaSJeff Kirsher BFA_STATUS_BIOS_DISABLED = 84, 105f844a0eaSJeff Kirsher BFA_STATUS_AUTH_ENABLED = 85, 106f844a0eaSJeff Kirsher BFA_STATUS_AUTH_DISABLED = 86, 107f844a0eaSJeff Kirsher BFA_STATUS_ERROR_TRL_ENABLED = 87, 108f844a0eaSJeff Kirsher BFA_STATUS_ERROR_QOS_ENABLED = 88, 109f844a0eaSJeff Kirsher BFA_STATUS_NO_SFP_DEV = 89, 110f844a0eaSJeff Kirsher BFA_STATUS_MEMTEST_FAILED = 90, 111f844a0eaSJeff Kirsher BFA_STATUS_INVALID_DEVID = 91, 112f844a0eaSJeff Kirsher BFA_STATUS_QOS_ENABLED = 92, 113f844a0eaSJeff Kirsher BFA_STATUS_QOS_DISABLED = 93, 114f844a0eaSJeff Kirsher BFA_STATUS_INCORRECT_DRV_CONFIG = 94, 115f844a0eaSJeff Kirsher BFA_STATUS_REG_FAIL = 95, 116f844a0eaSJeff Kirsher BFA_STATUS_IM_INV_CODE = 96, 117f844a0eaSJeff Kirsher BFA_STATUS_IM_INV_VLAN = 97, 118f844a0eaSJeff Kirsher BFA_STATUS_IM_INV_ADAPT_NAME = 98, 119f844a0eaSJeff Kirsher BFA_STATUS_IM_LOW_RESOURCES = 99, 120f844a0eaSJeff Kirsher BFA_STATUS_IM_VLANID_IS_PVID = 100, 121f844a0eaSJeff Kirsher BFA_STATUS_IM_VLANID_EXISTS = 101, 122f844a0eaSJeff Kirsher BFA_STATUS_IM_FW_UPDATE_FAIL = 102, 123f844a0eaSJeff Kirsher BFA_STATUS_PORTLOG_ENABLED = 103, 124f844a0eaSJeff Kirsher BFA_STATUS_PORTLOG_DISABLED = 104, 125f844a0eaSJeff Kirsher BFA_STATUS_FILE_NOT_FOUND = 105, 126f844a0eaSJeff Kirsher BFA_STATUS_QOS_FC_ONLY = 106, 127f844a0eaSJeff Kirsher BFA_STATUS_RLIM_FC_ONLY = 107, 128f844a0eaSJeff Kirsher BFA_STATUS_CT_SPD = 108, 129f844a0eaSJeff Kirsher BFA_STATUS_LEDTEST_OP = 109, 130f844a0eaSJeff Kirsher BFA_STATUS_CEE_NOT_DN = 110, 131f844a0eaSJeff Kirsher BFA_STATUS_10G_SPD = 111, 132f844a0eaSJeff Kirsher BFA_STATUS_IM_INV_TEAM_NAME = 112, 133f844a0eaSJeff Kirsher BFA_STATUS_IM_DUP_TEAM_NAME = 113, 134f844a0eaSJeff Kirsher BFA_STATUS_IM_ADAPT_ALREADY_IN_TEAM = 114, 135f844a0eaSJeff Kirsher BFA_STATUS_IM_ADAPT_HAS_VLANS = 115, 136f844a0eaSJeff Kirsher BFA_STATUS_IM_PVID_MISMATCH = 116, 137f844a0eaSJeff Kirsher BFA_STATUS_IM_LINK_SPEED_MISMATCH = 117, 138f844a0eaSJeff Kirsher BFA_STATUS_IM_MTU_MISMATCH = 118, 139f844a0eaSJeff Kirsher BFA_STATUS_IM_RSS_MISMATCH = 119, 140f844a0eaSJeff Kirsher BFA_STATUS_IM_HDS_MISMATCH = 120, 141f844a0eaSJeff Kirsher BFA_STATUS_IM_OFFLOAD_MISMATCH = 121, 142f844a0eaSJeff Kirsher BFA_STATUS_IM_PORT_PARAMS = 122, 143f844a0eaSJeff Kirsher BFA_STATUS_IM_PORT_NOT_IN_TEAM = 123, 144f844a0eaSJeff Kirsher BFA_STATUS_IM_CANNOT_REM_PRI = 124, 145f844a0eaSJeff Kirsher BFA_STATUS_IM_MAX_PORTS_REACHED = 125, 146f844a0eaSJeff Kirsher BFA_STATUS_IM_LAST_PORT_DELETE = 126, 147f844a0eaSJeff Kirsher BFA_STATUS_IM_NO_DRIVER = 127, 148f844a0eaSJeff Kirsher BFA_STATUS_IM_MAX_VLANS_REACHED = 128, 149f844a0eaSJeff Kirsher BFA_STATUS_TOMCAT_SPD_NOT_ALLOWED = 129, 150f844a0eaSJeff Kirsher BFA_STATUS_NO_MINPORT_DRIVER = 130, 151f844a0eaSJeff Kirsher BFA_STATUS_CARD_TYPE_MISMATCH = 131, 152f844a0eaSJeff Kirsher BFA_STATUS_BAD_ASICBLK = 132, 153f844a0eaSJeff Kirsher BFA_STATUS_NO_DRIVER = 133, 154f844a0eaSJeff Kirsher BFA_STATUS_INVALID_MAC = 134, 155f844a0eaSJeff Kirsher BFA_STATUS_IM_NO_VLAN = 135, 156f844a0eaSJeff Kirsher BFA_STATUS_IM_ETH_LB_FAILED = 136, 157f844a0eaSJeff Kirsher BFA_STATUS_IM_PVID_REMOVE = 137, 158f844a0eaSJeff Kirsher BFA_STATUS_IM_PVID_EDIT = 138, 159f844a0eaSJeff Kirsher BFA_STATUS_CNA_NO_BOOT = 139, 160f844a0eaSJeff Kirsher BFA_STATUS_IM_PVID_NON_ZERO = 140, 161f844a0eaSJeff Kirsher BFA_STATUS_IM_INETCFG_LOCK_FAILED = 141, 162f844a0eaSJeff Kirsher BFA_STATUS_IM_GET_INETCFG_FAILED = 142, 163f844a0eaSJeff Kirsher BFA_STATUS_IM_NOT_BOUND = 143, 164f844a0eaSJeff Kirsher BFA_STATUS_INSUFFICIENT_PERMS = 144, 165f844a0eaSJeff Kirsher BFA_STATUS_IM_INV_VLAN_NAME = 145, 166f844a0eaSJeff Kirsher BFA_STATUS_CMD_NOTSUPP_CNA = 146, 167f844a0eaSJeff Kirsher BFA_STATUS_IM_PASSTHRU_EDIT = 147, 168f844a0eaSJeff Kirsher BFA_STATUS_IM_BIND_FAILED = 148, 169f844a0eaSJeff Kirsher BFA_STATUS_IM_UNBIND_FAILED = 149, 170f844a0eaSJeff Kirsher BFA_STATUS_IM_PORT_IN_TEAM = 150, 171f844a0eaSJeff Kirsher BFA_STATUS_IM_VLAN_NOT_FOUND = 151, 172f844a0eaSJeff Kirsher BFA_STATUS_IM_TEAM_NOT_FOUND = 152, 173f844a0eaSJeff Kirsher BFA_STATUS_IM_TEAM_CFG_NOT_ALLOWED = 153, 174f844a0eaSJeff Kirsher BFA_STATUS_PBC = 154, 175f844a0eaSJeff Kirsher BFA_STATUS_DEVID_MISSING = 155, 176f844a0eaSJeff Kirsher BFA_STATUS_BAD_FWCFG = 156, 177f844a0eaSJeff Kirsher BFA_STATUS_CREATE_FILE = 157, 178f844a0eaSJeff Kirsher BFA_STATUS_INVALID_VENDOR = 158, 179f844a0eaSJeff Kirsher BFA_STATUS_SFP_NOT_READY = 159, 180f844a0eaSJeff Kirsher BFA_STATUS_FLASH_UNINIT = 160, 181f844a0eaSJeff Kirsher BFA_STATUS_FLASH_EMPTY = 161, 182f844a0eaSJeff Kirsher BFA_STATUS_FLASH_CKFAIL = 162, 183f844a0eaSJeff Kirsher BFA_STATUS_TRUNK_UNSUPP = 163, 184f844a0eaSJeff Kirsher BFA_STATUS_TRUNK_ENABLED = 164, 185f844a0eaSJeff Kirsher BFA_STATUS_TRUNK_DISABLED = 165, 186f844a0eaSJeff Kirsher BFA_STATUS_TRUNK_ERROR_TRL_ENABLED = 166, 187f844a0eaSJeff Kirsher BFA_STATUS_BOOT_CODE_UPDATED = 167, 188f844a0eaSJeff Kirsher BFA_STATUS_BOOT_VERSION = 168, 189f844a0eaSJeff Kirsher BFA_STATUS_CARDTYPE_MISSING = 169, 190f844a0eaSJeff Kirsher BFA_STATUS_INVALID_CARDTYPE = 170, 191f844a0eaSJeff Kirsher BFA_STATUS_NO_TOPOLOGY_FOR_CNA = 171, 192f844a0eaSJeff Kirsher BFA_STATUS_IM_VLAN_OVER_TEAM_DELETE_FAILED = 172, 193f844a0eaSJeff Kirsher BFA_STATUS_ETHBOOT_ENABLED = 173, 194f844a0eaSJeff Kirsher BFA_STATUS_ETHBOOT_DISABLED = 174, 195f844a0eaSJeff Kirsher BFA_STATUS_IOPROFILE_OFF = 175, 196f844a0eaSJeff Kirsher BFA_STATUS_NO_PORT_INSTANCE = 176, 197f844a0eaSJeff Kirsher BFA_STATUS_BOOT_CODE_TIMEDOUT = 177, 198f844a0eaSJeff Kirsher BFA_STATUS_NO_VPORT_LOCK = 178, 199f844a0eaSJeff Kirsher BFA_STATUS_VPORT_NO_CNFG = 179, 200f844a0eaSJeff Kirsher BFA_STATUS_MAX_VAL 201f844a0eaSJeff Kirsher }; 202f844a0eaSJeff Kirsher 203f844a0eaSJeff Kirsher enum bfa_eproto_status { 204f844a0eaSJeff Kirsher BFA_EPROTO_BAD_ACCEPT = 0, 205f844a0eaSJeff Kirsher BFA_EPROTO_UNKNOWN_RSP = 1 206f844a0eaSJeff Kirsher }; 207f844a0eaSJeff Kirsher 208f844a0eaSJeff Kirsher #endif /* __BFA_DEFS_STATUS_H__ */ 209