|
#define | IBMVFC_NAME "ibmvfc" |
|
#define | IBMVFC_DRIVER_VERSION "1.0.10" |
|
#define | IBMVFC_DRIVER_DATE "(August 24, 2012)" |
|
#define | IBMVFC_DEFAULT_TIMEOUT 60 |
|
#define | IBMVFC_ADISC_CANCEL_TIMEOUT 45 |
|
#define | IBMVFC_ADISC_TIMEOUT 15 |
|
#define | IBMVFC_ADISC_PLUS_CANCEL_TIMEOUT (IBMVFC_ADISC_TIMEOUT + IBMVFC_ADISC_CANCEL_TIMEOUT) |
|
#define | IBMVFC_INIT_TIMEOUT 120 |
|
#define | IBMVFC_ABORT_TIMEOUT 8 |
|
#define | IBMVFC_ABORT_WAIT_TIMEOUT 40 |
|
#define | IBMVFC_MAX_REQUESTS_DEFAULT 100 |
|
#define | IBMVFC_DEBUG 0 |
|
#define | IBMVFC_MAX_TARGETS 1024 |
|
#define | IBMVFC_MAX_LUN 0xffffffff |
|
#define | IBMVFC_MAX_SECTORS 0xffffu |
|
#define | IBMVFC_MAX_DISC_THREADS 4 |
|
#define | IBMVFC_TGT_MEMPOOL_SZ 64 |
|
#define | IBMVFC_MAX_CMDS_PER_LUN 64 |
|
#define | IBMVFC_MAX_HOST_INIT_RETRIES 6 |
|
#define | IBMVFC_MAX_TGT_INIT_RETRIES 3 |
|
#define | IBMVFC_DEV_LOSS_TMO (5 * 60) |
|
#define | IBMVFC_DEFAULT_LOG_LEVEL 2 |
|
#define | IBMVFC_MAX_CDB_LEN 16 |
|
#define | IBMVFC_NUM_INTERNAL_REQ (1 + 1 + 1 + 2 + (disc_threads * 2)) |
|
#define | IBMVFC_MAD_SUCCESS 0x00 |
|
#define | IBMVFC_MAD_NOT_SUPPORTED 0xF1 |
|
#define | IBMVFC_MAD_FAILED 0xF7 |
|
#define | IBMVFC_MAD_DRIVER_FAILED 0xEE |
|
#define | IBMVFC_MAD_CRQ_ERROR 0xEF |
|
#define | IBMVFC_MAX_NAME 256 |
|
#define | IBMVFC_OS_LINUX 0x02 |
|
#define | IBMVFC_CLIENT_MIGRATED 0x01 |
|
#define | IBMVFC_FLUSH_ON_HALT 0x02 |
|
#define | IBMVFC_CAN_MIGRATE 0x01 |
|
#define | IBMVFC_NATIVE_FC 0x01 |
|
#define | IBMVFC_CAN_FLUSH_ON_HALT 0x08 |
|
#define | IBMVFC_CAN_FLUSH_ON_HALT 0x08 |
|
#define | IBMVFC_DISC_TGT_SCSI_ID_MASK 0x00ffffff |
|
#define | IBMVFC_SCSI_FCP_TYPE 0x08 |
|
#define | IBMVFC_PRLI_ORIG_PA_VALID 0x8000 |
|
#define | IBMVFC_PRLI_RESP_PA_VALID 0x4000 |
|
#define | IBMVFC_PRLI_EST_IMG_PAIR 0x2000 |
|
#define | IBMVFC_PRLI_TASK_RETRY 0x00000200 |
|
#define | IBMVFC_PRLI_RETRY 0x00000100 |
|
#define | IBMVFC_PRLI_DATA_OVERLAY 0x00000040 |
|
#define | IBMVFC_PRLI_INITIATOR_FUNC 0x00000020 |
|
#define | IBMVFC_PRLI_TARGET_FUNC 0x00000010 |
|
#define | IBMVFC_PRLI_READ_FCP_XFER_RDY_DISABLED 0x00000002 |
|
#define | IBMVFC_PRLI_WR_FCP_XFER_RDY_DISABLED 0x00000001 |
|
#define | IBMVFC_TMF_ABORT_TASK 0x02 |
|
#define | IBMVFC_TMF_ABORT_TASK_SET 0x04 |
|
#define | IBMVFC_TMF_LUN_RESET 0x10 |
|
#define | IBMVFC_TMF_TGT_RESET 0x20 |
|
#define | IBMVFC_TMF_LUA_VALID 0x40 |
|
#define | IBMVFC_RDDATA 0x02 |
|
#define | IBMVFC_WRDATA 0x01 |
|
#define | IBMVFC_ADAPTER_RESID_VALID 0x01 |
|
#define | IBMVFC_ADISC 0x52000000 |
|
#define | IBMVFC_FC_ELS 0x01 |
|
#define | IBMVFC_FC_CT_IU 0x02 |
|
#define | IBMVFC_PASSTHRU_CANCEL_KEY 0x80000000 |
|
#define | IBMVFC_INTERNAL_CANCEL_KEY 0x80000001 |
|
#define | IBMVFC_TRC_START 0x00 |
|
#define | IBMVFC_TRC_END 0xff |
|
#define | IBMVFC_NUM_TRACE_INDEX_BITS 8 |
|
#define | IBMVFC_NUM_TRACE_ENTRIES (1 << IBMVFC_NUM_TRACE_INDEX_BITS) |
|
#define | IBMVFC_TRACE_SIZE (sizeof(struct ibmvfc_trace_entry) * IBMVFC_NUM_TRACE_ENTRIES) |
|
#define | IBMVFC_AE_LINKUP 0x0001 |
|
#define | IBMVFC_AE_LINKDOWN 0x0002 |
|
#define | IBMVFC_AE_RSCN 0x0004 |
|
#define | DBG_CMD(CMD) do { if (ibmvfc_debug) CMD; } while (0) |
|
#define | tgt_dbg(t, fmt,...) DBG_CMD(dev_info((t)->vhost->dev, "%llX: " fmt, (t)->scsi_id, ##__VA_ARGS__)) |
|
#define | tgt_info(t, fmt,...) dev_info((t)->vhost->dev, "%llX: " fmt, (t)->scsi_id, ##__VA_ARGS__) |
|
#define | tgt_err(t, fmt,...) dev_err((t)->vhost->dev, "%llX: " fmt, (t)->scsi_id, ##__VA_ARGS__) |
|
#define | tgt_log(t, level, fmt,...) |
|
#define | ibmvfc_dbg(vhost,...) DBG_CMD(dev_info((vhost)->dev, ##__VA_ARGS__)) |
|
#define | ibmvfc_log(vhost, level,...) |
|
#define | ENTER DBG_CMD(printk(KERN_INFO IBMVFC_NAME": Entering %s\n", __func__)) |
|
#define | LEAVE DBG_CMD(printk(KERN_INFO IBMVFC_NAME": Leaving %s\n", __func__)) |
|
#define | ibmvfc_create_trace_file(kobj, attr) 0 |
|
#define | ibmvfc_remove_trace_file(kobj, attr) do { } while (0) |
|
|
enum | ibmvfc_crq_valid { IBMVFC_CRQ_CMD_RSP = 0x80,
IBMVFC_CRQ_INIT_RSP = 0xC0,
IBMVFC_CRQ_XPORT_EVENT = 0xFF
} |
|
enum | ibmvfc_crq_format { IBMVFC_CRQ_INIT = 0x01,
IBMVFC_CRQ_INIT_COMPLETE = 0x02,
IBMVFC_PARTITION_MIGRATED = 0x06
} |
|
enum | ibmvfc_cmd_status_flags {
IBMVFC_FABRIC_MAPPED = 0x0001,
IBMVFC_VIOS_FAILURE = 0x0002,
IBMVFC_FC_FAILURE = 0x0004,
IBMVFC_FC_SCSI_ERROR = 0x0008,
IBMVFC_HW_EVENT_LOGGED = 0x0010,
IBMVFC_VIOS_LOGGED = 0x0020
} |
|
enum | ibmvfc_fabric_mapped_errors {
IBMVFC_UNABLE_TO_ESTABLISH = 0x0001,
IBMVFC_XPORT_FAULT = 0x0002,
IBMVFC_CMD_TIMEOUT = 0x0003,
IBMVFC_ENETDOWN = 0x0004,
IBMVFC_HW_FAILURE = 0x0005,
IBMVFC_LINK_DOWN_ERR = 0x0006,
IBMVFC_LINK_DEAD_ERR = 0x0007,
IBMVFC_UNABLE_TO_REGISTER = 0x0008,
IBMVFC_XPORT_BUSY = 0x000A,
IBMVFC_XPORT_DEAD = 0x000B,
IBMVFC_CONFIG_ERROR = 0x000C,
IBMVFC_NAME_SERVER_FAIL = 0x000D,
IBMVFC_LINK_HALTED = 0x000E,
IBMVFC_XPORT_GENERAL = 0x8000
} |
|
enum | ibmvfc_vios_errors {
IBMVFC_CRQ_FAILURE = 0x0001,
IBMVFC_SW_FAILURE = 0x0002,
IBMVFC_INVALID_PARAMETER = 0x0003,
IBMVFC_MISSING_PARAMETER = 0x0004,
IBMVFC_HOST_IO_BUS = 0x0005,
IBMVFC_TRANS_CANCELLED = 0x0006,
IBMVFC_TRANS_CANCELLED_IMPLICIT = 0x0007,
IBMVFC_INSUFFICIENT_RESOURCE = 0x0008,
IBMVFC_PLOGI_REQUIRED = 0x0010,
IBMVFC_COMMAND_FAILED = 0x8000
} |
|
enum | ibmvfc_mad_types {
IBMVFC_NPIV_LOGIN = 0x0001,
IBMVFC_DISC_TARGETS = 0x0002,
IBMVFC_PORT_LOGIN = 0x0004,
IBMVFC_PROCESS_LOGIN = 0x0008,
IBMVFC_QUERY_TARGET = 0x0010,
IBMVFC_IMPLICIT_LOGOUT = 0x0040,
IBMVFC_PASSTHRU = 0x0200,
IBMVFC_TMF_MAD = 0x0100,
IBMVFC_NPIV_LOGOUT = 0x0800
} |
|
enum | ibmvfc_fc_reason {
IBMVFC_INVALID_ELS_CMD_CODE = 0x01,
IBMVFC_INVALID_VERSION = 0x02,
IBMVFC_LOGICAL_ERROR = 0x03,
IBMVFC_INVALID_CT_IU_SIZE = 0x04,
IBMVFC_LOGICAL_BUSY = 0x05,
IBMVFC_PROTOCOL_ERROR = 0x07,
IBMVFC_UNABLE_TO_PERFORM_REQ = 0x09,
IBMVFC_CMD_NOT_SUPPORTED = 0x0B,
IBMVFC_SERVER_NOT_AVAIL = 0x0D,
IBMVFC_CMD_IN_PROGRESS = 0x0E,
IBMVFC_VENDOR_SPECIFIC = 0xFF
} |
|
enum | ibmvfc_fc_type {
IBMVFC_FABRIC_REJECT = 0x01,
IBMVFC_PORT_REJECT = 0x02,
IBMVFC_LS_REJECT = 0x03,
IBMVFC_FABRIC_BUSY = 0x04,
IBMVFC_PORT_BUSY = 0x05,
IBMVFC_BASIC_REJECT = 0x06
} |
|
enum | ibmvfc_gs_explain { IBMVFC_PORT_NAME_NOT_REG = 0x02
} |
|
enum | ibmvfc_fcp_rsp_info_codes { RSP_NO_FAILURE = 0x00,
RSP_TMF_REJECTED = 0x04,
RSP_TMF_FAILED = 0x05,
RSP_TMF_INVALID_LUN = 0x09
} |
|
enum | ibmvfc_fcp_rsp_flags {
FCP_BIDI_RSP = 0x80,
FCP_BIDI_READ_RESID_UNDER = 0x40,
FCP_BIDI_READ_RESID_OVER = 0x20,
FCP_CONF_REQ = 0x10,
FCP_RESID_UNDER = 0x08,
FCP_RESID_OVER = 0x04,
FCP_SNS_LEN_VALID = 0x02,
FCP_RSP_LEN_VALID = 0x01
} |
|
enum | ibmvfc_cmd_flags {
IBMVFC_SCATTERLIST = 0x0001,
IBMVFC_NO_MEM_DESC = 0x0002,
IBMVFC_READ = 0x0004,
IBMVFC_WRITE = 0x0008,
IBMVFC_TMF = 0x0080,
IBMVFC_CLASS_3_ERR = 0x0100
} |
|
enum | ibmvfc_fc_task_attr { IBMVFC_SIMPLE_TASK = 0x00,
IBMVFC_HEAD_OF_QUEUE = 0x01,
IBMVFC_ORDERED_TASK = 0x02,
IBMVFC_ACA_TASK = 0x04
} |
|
enum | ibmvfc_fc_tmf_flags { IBMVFC_ABORT_TASK_SET = 0x02,
IBMVFC_LUN_RESET = 0x10,
IBMVFC_TARGET_RESET = 0x20
} |
|
enum | ibmvfc_crq_formats { IBMVFC_CMD_FORMAT = 0x01,
IBMVFC_ASYNC_EVENT = 0x02,
IBMVFC_MAD_FORMAT = 0x04
} |
|
enum | ibmvfc_async_event {
IBMVFC_AE_ELS_PLOGI = 0x0001,
IBMVFC_AE_ELS_LOGO = 0x0002,
IBMVFC_AE_ELS_PRLO = 0x0004,
IBMVFC_AE_SCN_NPORT = 0x0008,
IBMVFC_AE_SCN_GROUP = 0x0010,
IBMVFC_AE_SCN_DOMAIN = 0x0020,
IBMVFC_AE_SCN_FABRIC = 0x0040,
IBMVFC_AE_LINK_UP = 0x0080,
IBMVFC_AE_LINK_DOWN = 0x0100,
IBMVFC_AE_LINK_DEAD = 0x0200,
IBMVFC_AE_HALT = 0x0400,
IBMVFC_AE_RESUME = 0x0800,
IBMVFC_AE_ADAPTER_FAILED = 0x1000
} |
|
enum | ibmvfc_ae_link_state { IBMVFC_AE_LS_LINK_UP = 0x01,
IBMVFC_AE_LS_LINK_BOUNCED = 0x02,
IBMVFC_AE_LS_LINK_DOWN = 0x04,
IBMVFC_AE_LS_LINK_DEAD = 0x08
} |
|
enum | ibmvfc_target_action {
IBMVFC_TGT_ACTION_NONE = 0,
IBMVFC_TGT_ACTION_INIT,
IBMVFC_TGT_ACTION_INIT_WAIT,
IBMVFC_TGT_ACTION_DEL_RPORT,
IBMVFC_TGT_ACTION_DELETED_RPORT
} |
|
enum | ibmvfc_host_action {
IBMVFC_HOST_ACTION_NONE = 0,
IBMVFC_HOST_ACTION_RESET,
IBMVFC_HOST_ACTION_REENABLE,
IBMVFC_HOST_ACTION_LOGO,
IBMVFC_HOST_ACTION_LOGO_WAIT,
IBMVFC_HOST_ACTION_INIT,
IBMVFC_HOST_ACTION_INIT_WAIT,
IBMVFC_HOST_ACTION_QUERY,
IBMVFC_HOST_ACTION_QUERY_TGTS,
IBMVFC_HOST_ACTION_TGT_DEL,
IBMVFC_HOST_ACTION_ALLOC_TGTS,
IBMVFC_HOST_ACTION_TGT_INIT,
IBMVFC_HOST_ACTION_TGT_DEL_FAILED
} |
|
enum | ibmvfc_host_state {
IBMVFC_NO_CRQ = 0,
IBMVFC_INITIALIZING,
IBMVFC_ACTIVE,
IBMVFC_HALTED,
IBMVFC_LINK_DOWN,
IBMVFC_LINK_DEAD,
IBMVFC_HOST_OFFLINE
} |
|