1c4f7ac64SKashyap Desai /* SPDX-License-Identifier: GPL-2.0-or-later */ 2c4f7ac64SKashyap Desai /* 3e74f2fbdSRanjan Kumar * Copyright 2016-2023 Broadcom Inc. All rights reserved. 4c4f7ac64SKashyap Desai */ 5c4f7ac64SKashyap Desai #ifndef MPI30_TRANSPORT_H 6c4f7ac64SKashyap Desai #define MPI30_TRANSPORT_H 1 7c4f7ac64SKashyap Desai struct mpi3_version_struct { 8c4f7ac64SKashyap Desai u8 dev; 9c4f7ac64SKashyap Desai u8 unit; 10c4f7ac64SKashyap Desai u8 minor; 11c4f7ac64SKashyap Desai u8 major; 12c4f7ac64SKashyap Desai }; 13c4f7ac64SKashyap Desai 14c4f7ac64SKashyap Desai union mpi3_version_union { 15c4f7ac64SKashyap Desai struct mpi3_version_struct mpi3_version; 16c4f7ac64SKashyap Desai __le32 word; 17c4f7ac64SKashyap Desai }; 18c4f7ac64SKashyap Desai 19c4f7ac64SKashyap Desai #define MPI3_VERSION_MAJOR (3) 20c4f7ac64SKashyap Desai #define MPI3_VERSION_MINOR (0) 21*6f81b1cfSRanjan Kumar #define MPI3_VERSION_UNIT (28) 22ee6f2d6bSSreekanth Reddy #define MPI3_VERSION_DEV (0) 2304b27e53SSreekanth Reddy #define MPI3_DEVHANDLE_INVALID (0xffff) 24c4f7ac64SKashyap Desai struct mpi3_sysif_oper_queue_indexes { 25c4f7ac64SKashyap Desai __le16 producer_index; 26c4f7ac64SKashyap Desai __le16 reserved02; 27c4f7ac64SKashyap Desai __le16 consumer_index; 28c4f7ac64SKashyap Desai __le16 reserved06; 29c4f7ac64SKashyap Desai }; 30c4f7ac64SKashyap Desai 31c4f7ac64SKashyap Desai struct mpi3_sysif_registers { 32c4f7ac64SKashyap Desai __le64 ioc_information; 33c4f7ac64SKashyap Desai union mpi3_version_union version; 34c4f7ac64SKashyap Desai __le32 reserved0c[2]; 35c4f7ac64SKashyap Desai __le32 ioc_configuration; 36c4f7ac64SKashyap Desai __le32 reserved18; 37c4f7ac64SKashyap Desai __le32 ioc_status; 38c4f7ac64SKashyap Desai __le32 reserved20; 39c4f7ac64SKashyap Desai __le32 admin_queue_num_entries; 40c4f7ac64SKashyap Desai __le64 admin_request_queue_address; 41c4f7ac64SKashyap Desai __le64 admin_reply_queue_address; 42c4f7ac64SKashyap Desai __le32 reserved38[2]; 43c4f7ac64SKashyap Desai __le32 coalesce_control; 44c4f7ac64SKashyap Desai __le32 reserved44[1007]; 45c4f7ac64SKashyap Desai __le16 admin_request_queue_pi; 46c4f7ac64SKashyap Desai __le16 reserved1002; 47c4f7ac64SKashyap Desai __le16 admin_reply_queue_ci; 48c4f7ac64SKashyap Desai __le16 reserved1006; 49c4f7ac64SKashyap Desai struct mpi3_sysif_oper_queue_indexes oper_queue_indexes[383]; 50c4f7ac64SKashyap Desai __le32 reserved1c00; 51c4f7ac64SKashyap Desai __le32 write_sequence; 52c4f7ac64SKashyap Desai __le32 host_diagnostic; 53c4f7ac64SKashyap Desai __le32 reserved1c0c; 54c4f7ac64SKashyap Desai __le32 fault; 55c4f7ac64SKashyap Desai __le32 fault_info[3]; 56c4f7ac64SKashyap Desai __le32 reserved1c20[4]; 57c4f7ac64SKashyap Desai __le64 hcb_address; 58c4f7ac64SKashyap Desai __le32 hcb_size; 59c4f7ac64SKashyap Desai __le32 reserved1c3c; 60c4f7ac64SKashyap Desai __le32 reply_free_host_index; 61c4f7ac64SKashyap Desai __le32 sense_buffer_free_host_index; 62c4f7ac64SKashyap Desai __le32 reserved1c48[2]; 63c4f7ac64SKashyap Desai __le64 diag_rw_data; 64c4f7ac64SKashyap Desai __le64 diag_rw_address; 65c4f7ac64SKashyap Desai __le16 diag_rw_control; 66c4f7ac64SKashyap Desai __le16 diag_rw_status; 67c4f7ac64SKashyap Desai __le32 reserved1c64[35]; 68c4f7ac64SKashyap Desai __le32 scratchpad[4]; 69c4f7ac64SKashyap Desai __le32 reserved1d00[192]; 70c4f7ac64SKashyap Desai __le32 device_assigned_registers[2048]; 71c4f7ac64SKashyap Desai }; 72c4f7ac64SKashyap Desai 73c4f7ac64SKashyap Desai #define MPI3_SYSIF_IOC_INFO_LOW_OFFSET (0x00000000) 74c4f7ac64SKashyap Desai #define MPI3_SYSIF_IOC_INFO_HIGH_OFFSET (0x00000004) 75c4f7ac64SKashyap Desai #define MPI3_SYSIF_IOC_INFO_LOW_TIMEOUT_MASK (0xff000000) 76c4f7ac64SKashyap Desai #define MPI3_SYSIF_IOC_INFO_LOW_TIMEOUT_SHIFT (24) 77ec5ebd2cSSreekanth Reddy #define MPI3_SYSIF_IOC_INFO_LOW_HCB_DISABLED (0x00000001) 78c4f7ac64SKashyap Desai #define MPI3_SYSIF_IOC_CONFIG_OFFSET (0x00000014) 79c4f7ac64SKashyap Desai #define MPI3_SYSIF_IOC_CONFIG_OPER_RPY_ENT_SZ (0x00f00000) 80c4f7ac64SKashyap Desai #define MPI3_SYSIF_IOC_CONFIG_OPER_RPY_ENT_SZ_SHIFT (20) 81c4f7ac64SKashyap Desai #define MPI3_SYSIF_IOC_CONFIG_OPER_REQ_ENT_SZ (0x000f0000) 82c4f7ac64SKashyap Desai #define MPI3_SYSIF_IOC_CONFIG_OPER_REQ_ENT_SZ_SHIFT (16) 83c4f7ac64SKashyap Desai #define MPI3_SYSIF_IOC_CONFIG_SHUTDOWN_MASK (0x0000c000) 84c4f7ac64SKashyap Desai #define MPI3_SYSIF_IOC_CONFIG_SHUTDOWN_NO (0x00000000) 85c4f7ac64SKashyap Desai #define MPI3_SYSIF_IOC_CONFIG_SHUTDOWN_NORMAL (0x00004000) 86ec5ebd2cSSreekanth Reddy #define MPI3_SYSIF_IOC_CONFIG_DEVICE_SHUTDOWN_SEND_REQ (0x00002000) 87c4f7ac64SKashyap Desai #define MPI3_SYSIF_IOC_CONFIG_DIAG_SAVE (0x00000010) 88c4f7ac64SKashyap Desai #define MPI3_SYSIF_IOC_CONFIG_ENABLE_IOC (0x00000001) 89c4f7ac64SKashyap Desai #define MPI3_SYSIF_IOC_STATUS_OFFSET (0x0000001c) 90c4f7ac64SKashyap Desai #define MPI3_SYSIF_IOC_STATUS_RESET_HISTORY (0x00000010) 91c4f7ac64SKashyap Desai #define MPI3_SYSIF_IOC_STATUS_SHUTDOWN_MASK (0x0000000c) 92ec5ebd2cSSreekanth Reddy #define MPI3_SYSIF_IOC_STATUS_SHUTDOWN_SHIFT (0x00000002) 93c4f7ac64SKashyap Desai #define MPI3_SYSIF_IOC_STATUS_SHUTDOWN_NONE (0x00000000) 94c4f7ac64SKashyap Desai #define MPI3_SYSIF_IOC_STATUS_SHUTDOWN_IN_PROGRESS (0x00000004) 95c4f7ac64SKashyap Desai #define MPI3_SYSIF_IOC_STATUS_SHUTDOWN_COMPLETE (0x00000008) 96c4f7ac64SKashyap Desai #define MPI3_SYSIF_IOC_STATUS_FAULT (0x00000002) 97c4f7ac64SKashyap Desai #define MPI3_SYSIF_IOC_STATUS_READY (0x00000001) 98c4f7ac64SKashyap Desai #define MPI3_SYSIF_ADMIN_Q_NUM_ENTRIES_OFFSET (0x00000024) 99c4f7ac64SKashyap Desai #define MPI3_SYSIF_ADMIN_Q_NUM_ENTRIES_REQ_MASK (0x0fff) 100c4f7ac64SKashyap Desai #define MPI3_SYSIF_ADMIN_Q_NUM_ENTRIES_REPLY_OFFSET (0x00000026) 101c4f7ac64SKashyap Desai #define MPI3_SYSIF_ADMIN_Q_NUM_ENTRIES_REPLY_MASK (0x0fff0000) 102c4f7ac64SKashyap Desai #define MPI3_SYSIF_ADMIN_Q_NUM_ENTRIES_REPLY_SHIFT (16) 103c4f7ac64SKashyap Desai #define MPI3_SYSIF_ADMIN_REQ_Q_ADDR_LOW_OFFSET (0x00000028) 104c4f7ac64SKashyap Desai #define MPI3_SYSIF_ADMIN_REQ_Q_ADDR_HIGH_OFFSET (0x0000002c) 105c4f7ac64SKashyap Desai #define MPI3_SYSIF_ADMIN_REPLY_Q_ADDR_LOW_OFFSET (0x00000030) 106c4f7ac64SKashyap Desai #define MPI3_SYSIF_ADMIN_REPLY_Q_ADDR_HIGH_OFFSET (0x00000034) 107c4f7ac64SKashyap Desai #define MPI3_SYSIF_COALESCE_CONTROL_OFFSET (0x00000040) 108c4f7ac64SKashyap Desai #define MPI3_SYSIF_COALESCE_CONTROL_ENABLE_MASK (0xc0000000) 109c4f7ac64SKashyap Desai #define MPI3_SYSIF_COALESCE_CONTROL_ENABLE_NO_CHANGE (0x00000000) 110c4f7ac64SKashyap Desai #define MPI3_SYSIF_COALESCE_CONTROL_ENABLE_DISABLE (0x40000000) 111c4f7ac64SKashyap Desai #define MPI3_SYSIF_COALESCE_CONTROL_ENABLE_ENABLE (0xc0000000) 112ec5ebd2cSSreekanth Reddy #define MPI3_SYSIF_COALESCE_CONTROL_VALID (0x20000000) 113ec5ebd2cSSreekanth Reddy #define MPI3_SYSIF_COALESCE_CONTROL_MSIX_IDX_MASK (0x01ff0000) 114ec5ebd2cSSreekanth Reddy #define MPI3_SYSIF_COALESCE_CONTROL_MSIX_IDX_SHIFT (16) 115c4f7ac64SKashyap Desai #define MPI3_SYSIF_COALESCE_CONTROL_TIMEOUT_MASK (0x0000ff00) 116c4f7ac64SKashyap Desai #define MPI3_SYSIF_COALESCE_CONTROL_TIMEOUT_SHIFT (8) 117c4f7ac64SKashyap Desai #define MPI3_SYSIF_COALESCE_CONTROL_DEPTH_MASK (0x000000ff) 118c4f7ac64SKashyap Desai #define MPI3_SYSIF_COALESCE_CONTROL_DEPTH_SHIFT (0) 119c4f7ac64SKashyap Desai #define MPI3_SYSIF_ADMIN_REQ_Q_PI_OFFSET (0x00001000) 120c4f7ac64SKashyap Desai #define MPI3_SYSIF_ADMIN_REPLY_Q_CI_OFFSET (0x00001004) 121c4f7ac64SKashyap Desai #define MPI3_SYSIF_OPER_REQ_Q_PI_OFFSET (0x00001008) 122ec5ebd2cSSreekanth Reddy #define MPI3_SYSIF_OPER_REQ_Q_N_PI_OFFSET(N) (MPI3_SYSIF_OPER_REQ_Q_PI_OFFSET + (((N) - 1) * 8)) 123c4f7ac64SKashyap Desai #define MPI3_SYSIF_OPER_REPLY_Q_CI_OFFSET (0x0000100c) 124ec5ebd2cSSreekanth Reddy #define MPI3_SYSIF_OPER_REPLY_Q_N_CI_OFFSET(N) (MPI3_SYSIF_OPER_REPLY_Q_CI_OFFSET + (((N) - 1) * 8)) 125c4f7ac64SKashyap Desai #define MPI3_SYSIF_WRITE_SEQUENCE_OFFSET (0x00001c04) 126c4f7ac64SKashyap Desai #define MPI3_SYSIF_WRITE_SEQUENCE_KEY_VALUE_MASK (0x0000000f) 127c4f7ac64SKashyap Desai #define MPI3_SYSIF_WRITE_SEQUENCE_KEY_VALUE_FLUSH (0x0) 128c4f7ac64SKashyap Desai #define MPI3_SYSIF_WRITE_SEQUENCE_KEY_VALUE_1ST (0xf) 129c4f7ac64SKashyap Desai #define MPI3_SYSIF_WRITE_SEQUENCE_KEY_VALUE_2ND (0x4) 130c4f7ac64SKashyap Desai #define MPI3_SYSIF_WRITE_SEQUENCE_KEY_VALUE_3RD (0xb) 131c4f7ac64SKashyap Desai #define MPI3_SYSIF_WRITE_SEQUENCE_KEY_VALUE_4TH (0x2) 132c4f7ac64SKashyap Desai #define MPI3_SYSIF_WRITE_SEQUENCE_KEY_VALUE_5TH (0x7) 133c4f7ac64SKashyap Desai #define MPI3_SYSIF_WRITE_SEQUENCE_KEY_VALUE_6TH (0xd) 134c4f7ac64SKashyap Desai #define MPI3_SYSIF_HOST_DIAG_OFFSET (0x00001c08) 135c4f7ac64SKashyap Desai #define MPI3_SYSIF_HOST_DIAG_RESET_ACTION_MASK (0x00000700) 136c4f7ac64SKashyap Desai #define MPI3_SYSIF_HOST_DIAG_RESET_ACTION_NO_RESET (0x00000000) 137c4f7ac64SKashyap Desai #define MPI3_SYSIF_HOST_DIAG_RESET_ACTION_SOFT_RESET (0x00000100) 138ec5ebd2cSSreekanth Reddy #define MPI3_SYSIF_HOST_DIAG_RESET_ACTION_HOST_CONTROL_BOOT_RESET (0x00000200) 139c4f7ac64SKashyap Desai #define MPI3_SYSIF_HOST_DIAG_RESET_ACTION_COMPLETE_RESET (0x00000300) 140c4f7ac64SKashyap Desai #define MPI3_SYSIF_HOST_DIAG_RESET_ACTION_DIAG_FAULT (0x00000700) 141c4f7ac64SKashyap Desai #define MPI3_SYSIF_HOST_DIAG_SAVE_IN_PROGRESS (0x00000080) 142c4f7ac64SKashyap Desai #define MPI3_SYSIF_HOST_DIAG_SECURE_BOOT (0x00000040) 143c4f7ac64SKashyap Desai #define MPI3_SYSIF_HOST_DIAG_CLEAR_INVALID_FW_IMAGE (0x00000020) 144c4f7ac64SKashyap Desai #define MPI3_SYSIF_HOST_DIAG_INVALID_FW_IMAGE (0x00000010) 145c4f7ac64SKashyap Desai #define MPI3_SYSIF_HOST_DIAG_HCBENABLE (0x00000008) 146c4f7ac64SKashyap Desai #define MPI3_SYSIF_HOST_DIAG_HCBMODE (0x00000004) 147c4f7ac64SKashyap Desai #define MPI3_SYSIF_HOST_DIAG_DIAG_RW_ENABLE (0x00000002) 148c4f7ac64SKashyap Desai #define MPI3_SYSIF_HOST_DIAG_DIAG_WRITE_ENABLE (0x00000001) 149c4f7ac64SKashyap Desai #define MPI3_SYSIF_FAULT_OFFSET (0x00001c10) 150c4f7ac64SKashyap Desai #define MPI3_SYSIF_FAULT_FUNC_AREA_MASK (0xff000000) 151c4f7ac64SKashyap Desai #define MPI3_SYSIF_FAULT_FUNC_AREA_SHIFT (24) 152c4f7ac64SKashyap Desai #define MPI3_SYSIF_FAULT_FUNC_AREA_MPI_DEFINED (0x00000000) 153c4f7ac64SKashyap Desai #define MPI3_SYSIF_FAULT_CODE_MASK (0x0000ffff) 154c4f7ac64SKashyap Desai #define MPI3_SYSIF_FAULT_CODE_DIAG_FAULT_RESET (0x0000f000) 155c4f7ac64SKashyap Desai #define MPI3_SYSIF_FAULT_CODE_CI_ACTIVATION_RESET (0x0000f001) 156c4f7ac64SKashyap Desai #define MPI3_SYSIF_FAULT_CODE_SOFT_RESET_IN_PROGRESS (0x0000f002) 157c4f7ac64SKashyap Desai #define MPI3_SYSIF_FAULT_CODE_COMPLETE_RESET_NEEDED (0x0000f003) 158ec5ebd2cSSreekanth Reddy #define MPI3_SYSIF_FAULT_CODE_SOFT_RESET_NEEDED (0x0000f004) 159ec5ebd2cSSreekanth Reddy #define MPI3_SYSIF_FAULT_CODE_POWER_CYCLE_REQUIRED (0x0000f005) 160ec5ebd2cSSreekanth Reddy #define MPI3_SYSIF_FAULT_CODE_TEMP_THRESHOLD_EXCEEDED (0x0000f006) 161c4f7ac64SKashyap Desai #define MPI3_SYSIF_FAULT_INFO0_OFFSET (0x00001c14) 162c4f7ac64SKashyap Desai #define MPI3_SYSIF_FAULT_INFO1_OFFSET (0x00001c18) 163c4f7ac64SKashyap Desai #define MPI3_SYSIF_FAULT_INFO2_OFFSET (0x00001c1c) 164c4f7ac64SKashyap Desai #define MPI3_SYSIF_HCB_ADDRESS_LOW_OFFSET (0x00001c30) 165c4f7ac64SKashyap Desai #define MPI3_SYSIF_HCB_ADDRESS_HIGH_OFFSET (0x00001c34) 166c4f7ac64SKashyap Desai #define MPI3_SYSIF_HCB_SIZE_OFFSET (0x00001c38) 167c4f7ac64SKashyap Desai #define MPI3_SYSIF_HCB_SIZE_SIZE_MASK (0xfffff000) 168c4f7ac64SKashyap Desai #define MPI3_SYSIF_HCB_SIZE_SIZE_SHIFT (12) 169c4f7ac64SKashyap Desai #define MPI3_SYSIF_HCB_SIZE_HCDW_ENABLE (0x00000001) 170c4f7ac64SKashyap Desai #define MPI3_SYSIF_REPLY_FREE_HOST_INDEX_OFFSET (0x00001c40) 171c4f7ac64SKashyap Desai #define MPI3_SYSIF_SENSE_BUF_FREE_HOST_INDEX_OFFSET (0x00001c44) 172c4f7ac64SKashyap Desai #define MPI3_SYSIF_DIAG_RW_DATA_LOW_OFFSET (0x00001c50) 173c4f7ac64SKashyap Desai #define MPI3_SYSIF_DIAG_RW_DATA_HIGH_OFFSET (0x00001c54) 174c4f7ac64SKashyap Desai #define MPI3_SYSIF_DIAG_RW_ADDRESS_LOW_OFFSET (0x00001c58) 175c4f7ac64SKashyap Desai #define MPI3_SYSIF_DIAG_RW_ADDRESS_HIGH_OFFSET (0x00001c5c) 176c4f7ac64SKashyap Desai #define MPI3_SYSIF_DIAG_RW_CONTROL_OFFSET (0x00001c60) 177c4f7ac64SKashyap Desai #define MPI3_SYSIF_DIAG_RW_CONTROL_LEN_MASK (0x00000030) 178c4f7ac64SKashyap Desai #define MPI3_SYSIF_DIAG_RW_CONTROL_LEN_1BYTE (0x00000000) 179c4f7ac64SKashyap Desai #define MPI3_SYSIF_DIAG_RW_CONTROL_LEN_2BYTES (0x00000010) 180c4f7ac64SKashyap Desai #define MPI3_SYSIF_DIAG_RW_CONTROL_LEN_4BYTES (0x00000020) 181c4f7ac64SKashyap Desai #define MPI3_SYSIF_DIAG_RW_CONTROL_LEN_8BYTES (0x00000030) 182c4f7ac64SKashyap Desai #define MPI3_SYSIF_DIAG_RW_CONTROL_RESET (0x00000004) 183c4f7ac64SKashyap Desai #define MPI3_SYSIF_DIAG_RW_CONTROL_DIR_MASK (0x00000002) 184c4f7ac64SKashyap Desai #define MPI3_SYSIF_DIAG_RW_CONTROL_DIR_READ (0x00000000) 185c4f7ac64SKashyap Desai #define MPI3_SYSIF_DIAG_RW_CONTROL_DIR_WRITE (0x00000002) 186c4f7ac64SKashyap Desai #define MPI3_SYSIF_DIAG_RW_CONTROL_START (0x00000001) 187c4f7ac64SKashyap Desai #define MPI3_SYSIF_DIAG_RW_STATUS_OFFSET (0x00001c62) 188c4f7ac64SKashyap Desai #define MPI3_SYSIF_DIAG_RW_STATUS_STATUS_MASK (0x0000000e) 189c4f7ac64SKashyap Desai #define MPI3_SYSIF_DIAG_RW_STATUS_STATUS_SUCCESS (0x00000000) 190c4f7ac64SKashyap Desai #define MPI3_SYSIF_DIAG_RW_STATUS_STATUS_INV_ADDR (0x00000002) 191c4f7ac64SKashyap Desai #define MPI3_SYSIF_DIAG_RW_STATUS_STATUS_ACC_ERR (0x00000004) 192c4f7ac64SKashyap Desai #define MPI3_SYSIF_DIAG_RW_STATUS_STATUS_PAR_ERR (0x00000006) 193c4f7ac64SKashyap Desai #define MPI3_SYSIF_DIAG_RW_STATUS_BUSY (0x00000001) 194c4f7ac64SKashyap Desai #define MPI3_SYSIF_SCRATCHPAD0_OFFSET (0x00001cf0) 195c4f7ac64SKashyap Desai #define MPI3_SYSIF_SCRATCHPAD1_OFFSET (0x00001cf4) 196c4f7ac64SKashyap Desai #define MPI3_SYSIF_SCRATCHPAD2_OFFSET (0x00001cf8) 197c4f7ac64SKashyap Desai #define MPI3_SYSIF_SCRATCHPAD3_OFFSET (0x00001cfc) 198c4f7ac64SKashyap Desai #define MPI3_SYSIF_DEVICE_ASSIGNED_REGS_OFFSET (0x00002000) 199c4f7ac64SKashyap Desai #define MPI3_SYSIF_DIAG_SAVE_TIMEOUT (60) 200c4f7ac64SKashyap Desai struct mpi3_default_reply_descriptor { 201c4f7ac64SKashyap Desai __le32 descriptor_type_dependent1[2]; 202c4f7ac64SKashyap Desai __le16 request_queue_ci; 203c4f7ac64SKashyap Desai __le16 request_queue_id; 204c4f7ac64SKashyap Desai __le16 descriptor_type_dependent2; 205c4f7ac64SKashyap Desai __le16 reply_flags; 206c4f7ac64SKashyap Desai }; 207c4f7ac64SKashyap Desai 208c4f7ac64SKashyap Desai #define MPI3_REPLY_DESCRIPT_FLAGS_PHASE_MASK (0x0001) 209c4f7ac64SKashyap Desai #define MPI3_REPLY_DESCRIPT_FLAGS_TYPE_MASK (0xf000) 210c4f7ac64SKashyap Desai #define MPI3_REPLY_DESCRIPT_FLAGS_TYPE_ADDRESS_REPLY (0x0000) 211c4f7ac64SKashyap Desai #define MPI3_REPLY_DESCRIPT_FLAGS_TYPE_SUCCESS (0x1000) 212c4f7ac64SKashyap Desai #define MPI3_REPLY_DESCRIPT_FLAGS_TYPE_TARGET_COMMAND_BUFFER (0x2000) 213c4f7ac64SKashyap Desai #define MPI3_REPLY_DESCRIPT_FLAGS_TYPE_STATUS (0x3000) 214ee6f2d6bSSreekanth Reddy #define MPI3_REPLY_DESCRIPT_REQUEST_QUEUE_ID_INVALID (0xffff) 215c4f7ac64SKashyap Desai struct mpi3_address_reply_descriptor { 216c4f7ac64SKashyap Desai __le64 reply_frame_address; 217c4f7ac64SKashyap Desai __le16 request_queue_ci; 218c4f7ac64SKashyap Desai __le16 request_queue_id; 219c4f7ac64SKashyap Desai __le16 reserved0c; 220c4f7ac64SKashyap Desai __le16 reply_flags; 221c4f7ac64SKashyap Desai }; 222c4f7ac64SKashyap Desai 223c4f7ac64SKashyap Desai struct mpi3_success_reply_descriptor { 224c4f7ac64SKashyap Desai __le32 reserved00[2]; 225c4f7ac64SKashyap Desai __le16 request_queue_ci; 226c4f7ac64SKashyap Desai __le16 request_queue_id; 227c4f7ac64SKashyap Desai __le16 host_tag; 228c4f7ac64SKashyap Desai __le16 reply_flags; 229c4f7ac64SKashyap Desai }; 230c4f7ac64SKashyap Desai 231c4f7ac64SKashyap Desai struct mpi3_target_command_buffer_reply_descriptor { 232c4f7ac64SKashyap Desai __le32 reserved00; 233c4f7ac64SKashyap Desai __le16 initiator_dev_handle; 234c4f7ac64SKashyap Desai u8 phy_num; 235c4f7ac64SKashyap Desai u8 reserved07; 236c4f7ac64SKashyap Desai __le16 request_queue_ci; 237c4f7ac64SKashyap Desai __le16 request_queue_id; 238c4f7ac64SKashyap Desai __le16 io_index; 239c4f7ac64SKashyap Desai __le16 reply_flags; 240c4f7ac64SKashyap Desai }; 241c4f7ac64SKashyap Desai 242c4f7ac64SKashyap Desai struct mpi3_status_reply_descriptor { 243c4f7ac64SKashyap Desai __le16 ioc_status; 244c4f7ac64SKashyap Desai __le16 reserved02; 245c4f7ac64SKashyap Desai __le32 ioc_log_info; 246c4f7ac64SKashyap Desai __le16 request_queue_ci; 247c4f7ac64SKashyap Desai __le16 request_queue_id; 248c4f7ac64SKashyap Desai __le16 host_tag; 249c4f7ac64SKashyap Desai __le16 reply_flags; 250c4f7ac64SKashyap Desai }; 251c4f7ac64SKashyap Desai 252c4f7ac64SKashyap Desai #define MPI3_REPLY_DESCRIPT_STATUS_IOCSTATUS_LOGINFOAVAIL (0x8000) 253c4f7ac64SKashyap Desai #define MPI3_REPLY_DESCRIPT_STATUS_IOCSTATUS_STATUS_MASK (0x7fff) 254c4f7ac64SKashyap Desai #define MPI3_REPLY_DESCRIPT_STATUS_IOCLOGINFO_TYPE_MASK (0xf0000000) 255c4f7ac64SKashyap Desai #define MPI3_REPLY_DESCRIPT_STATUS_IOCLOGINFO_TYPE_NO_INFO (0x00000000) 256c4f7ac64SKashyap Desai #define MPI3_REPLY_DESCRIPT_STATUS_IOCLOGINFO_TYPE_SAS (0x30000000) 257c4f7ac64SKashyap Desai #define MPI3_REPLY_DESCRIPT_STATUS_IOCLOGINFO_DATA_MASK (0x0fffffff) 258c4f7ac64SKashyap Desai union mpi3_reply_descriptors_union { 259c4f7ac64SKashyap Desai struct mpi3_default_reply_descriptor default_reply; 260c4f7ac64SKashyap Desai struct mpi3_address_reply_descriptor address_reply; 261c4f7ac64SKashyap Desai struct mpi3_success_reply_descriptor success; 262c4f7ac64SKashyap Desai struct mpi3_target_command_buffer_reply_descriptor target_command_buffer; 263c4f7ac64SKashyap Desai struct mpi3_status_reply_descriptor status; 264c4f7ac64SKashyap Desai __le32 words[4]; 265c4f7ac64SKashyap Desai }; 266c4f7ac64SKashyap Desai 267c4f7ac64SKashyap Desai struct mpi3_sge_common { 268c4f7ac64SKashyap Desai __le64 address; 269c4f7ac64SKashyap Desai __le32 length; 270c4f7ac64SKashyap Desai u8 reserved0c[3]; 271c4f7ac64SKashyap Desai u8 flags; 272c4f7ac64SKashyap Desai }; 273c4f7ac64SKashyap Desai 274c4f7ac64SKashyap Desai struct mpi3_sge_bit_bucket { 275c4f7ac64SKashyap Desai __le64 reserved00; 276c4f7ac64SKashyap Desai __le32 length; 277c4f7ac64SKashyap Desai u8 reserved0c[3]; 278c4f7ac64SKashyap Desai u8 flags; 279c4f7ac64SKashyap Desai }; 280c4f7ac64SKashyap Desai 281c4f7ac64SKashyap Desai struct mpi3_sge_extended_eedp { 282c4f7ac64SKashyap Desai u8 user_data_size; 283c4f7ac64SKashyap Desai u8 reserved01; 284c4f7ac64SKashyap Desai __le16 eedp_flags; 285c4f7ac64SKashyap Desai __le32 secondary_reference_tag; 286c4f7ac64SKashyap Desai __le16 secondary_application_tag; 287c4f7ac64SKashyap Desai __le16 application_tag_translation_mask; 288c4f7ac64SKashyap Desai __le16 reserved0c; 289c4f7ac64SKashyap Desai u8 extended_operation; 290c4f7ac64SKashyap Desai u8 flags; 291c4f7ac64SKashyap Desai }; 292c4f7ac64SKashyap Desai 293c4f7ac64SKashyap Desai union mpi3_sge_union { 294c4f7ac64SKashyap Desai struct mpi3_sge_common simple; 295c4f7ac64SKashyap Desai struct mpi3_sge_common chain; 296c4f7ac64SKashyap Desai struct mpi3_sge_common last_chain; 297c4f7ac64SKashyap Desai struct mpi3_sge_bit_bucket bit_bucket; 298c4f7ac64SKashyap Desai struct mpi3_sge_extended_eedp eedp; 299c4f7ac64SKashyap Desai __le32 words[4]; 300c4f7ac64SKashyap Desai }; 301c4f7ac64SKashyap Desai 302c4f7ac64SKashyap Desai #define MPI3_SGE_FLAGS_ELEMENT_TYPE_MASK (0xf0) 303c4f7ac64SKashyap Desai #define MPI3_SGE_FLAGS_ELEMENT_TYPE_SIMPLE (0x00) 304c4f7ac64SKashyap Desai #define MPI3_SGE_FLAGS_ELEMENT_TYPE_BIT_BUCKET (0x10) 305c4f7ac64SKashyap Desai #define MPI3_SGE_FLAGS_ELEMENT_TYPE_CHAIN (0x20) 306c4f7ac64SKashyap Desai #define MPI3_SGE_FLAGS_ELEMENT_TYPE_LAST_CHAIN (0x30) 307c4f7ac64SKashyap Desai #define MPI3_SGE_FLAGS_ELEMENT_TYPE_EXTENDED (0xf0) 308c4f7ac64SKashyap Desai #define MPI3_SGE_FLAGS_END_OF_LIST (0x08) 309c4f7ac64SKashyap Desai #define MPI3_SGE_FLAGS_END_OF_BUFFER (0x04) 310c4f7ac64SKashyap Desai #define MPI3_SGE_FLAGS_DLAS_MASK (0x03) 311c4f7ac64SKashyap Desai #define MPI3_SGE_FLAGS_DLAS_SYSTEM (0x00) 31204b27e53SSreekanth Reddy #define MPI3_SGE_FLAGS_DLAS_IOC_UDP (0x01) 313c4f7ac64SKashyap Desai #define MPI3_SGE_FLAGS_DLAS_IOC_CTL (0x02) 314c4f7ac64SKashyap Desai #define MPI3_SGE_EXT_OPER_EEDP (0x00) 315c4f7ac64SKashyap Desai #define MPI3_EEDPFLAGS_INCR_PRI_REF_TAG (0x8000) 316c4f7ac64SKashyap Desai #define MPI3_EEDPFLAGS_INCR_SEC_REF_TAG (0x4000) 317c4f7ac64SKashyap Desai #define MPI3_EEDPFLAGS_INCR_PRI_APP_TAG (0x2000) 318c4f7ac64SKashyap Desai #define MPI3_EEDPFLAGS_INCR_SEC_APP_TAG (0x1000) 319c4f7ac64SKashyap Desai #define MPI3_EEDPFLAGS_ESC_PASSTHROUGH (0x0800) 320c4f7ac64SKashyap Desai #define MPI3_EEDPFLAGS_CHK_REF_TAG (0x0400) 321c4f7ac64SKashyap Desai #define MPI3_EEDPFLAGS_CHK_APP_TAG (0x0200) 322c4f7ac64SKashyap Desai #define MPI3_EEDPFLAGS_CHK_GUARD (0x0100) 323c4f7ac64SKashyap Desai #define MPI3_EEDPFLAGS_ESC_MODE_MASK (0x00c0) 324c4f7ac64SKashyap Desai #define MPI3_EEDPFLAGS_ESC_MODE_DO_NOT_DISABLE (0x0040) 325c4f7ac64SKashyap Desai #define MPI3_EEDPFLAGS_ESC_MODE_APPTAG_DISABLE (0x0080) 326c4f7ac64SKashyap Desai #define MPI3_EEDPFLAGS_ESC_MODE_APPTAG_REFTAG_DISABLE (0x00c0) 327c4f7ac64SKashyap Desai #define MPI3_EEDPFLAGS_HOST_GUARD_MASK (0x0030) 328c4f7ac64SKashyap Desai #define MPI3_EEDPFLAGS_HOST_GUARD_T10_CRC (0x0000) 329c4f7ac64SKashyap Desai #define MPI3_EEDPFLAGS_HOST_GUARD_IP_CHKSUM (0x0010) 330c4f7ac64SKashyap Desai #define MPI3_EEDPFLAGS_HOST_GUARD_OEM_SPECIFIC (0x0020) 331c4f7ac64SKashyap Desai #define MPI3_EEDPFLAGS_PT_REF_TAG (0x0008) 332c4f7ac64SKashyap Desai #define MPI3_EEDPFLAGS_EEDP_OP_MASK (0x0007) 333c4f7ac64SKashyap Desai #define MPI3_EEDPFLAGS_EEDP_OP_CHECK (0x0001) 334c4f7ac64SKashyap Desai #define MPI3_EEDPFLAGS_EEDP_OP_STRIP (0x0002) 335c4f7ac64SKashyap Desai #define MPI3_EEDPFLAGS_EEDP_OP_CHECK_REMOVE (0x0003) 336c4f7ac64SKashyap Desai #define MPI3_EEDPFLAGS_EEDP_OP_INSERT (0x0004) 337c4f7ac64SKashyap Desai #define MPI3_EEDPFLAGS_EEDP_OP_REPLACE (0x0006) 338c4f7ac64SKashyap Desai #define MPI3_EEDPFLAGS_EEDP_OP_CHECK_REGEN (0x0007) 339c4f7ac64SKashyap Desai #define MPI3_EEDP_UDS_512 (0x01) 340c4f7ac64SKashyap Desai #define MPI3_EEDP_UDS_520 (0x02) 341c4f7ac64SKashyap Desai #define MPI3_EEDP_UDS_4080 (0x03) 342c4f7ac64SKashyap Desai #define MPI3_EEDP_UDS_4088 (0x04) 343c4f7ac64SKashyap Desai #define MPI3_EEDP_UDS_4096 (0x05) 344c4f7ac64SKashyap Desai #define MPI3_EEDP_UDS_4104 (0x06) 345c4f7ac64SKashyap Desai #define MPI3_EEDP_UDS_4160 (0x07) 346c4f7ac64SKashyap Desai struct mpi3_request_header { 347c4f7ac64SKashyap Desai __le16 host_tag; 348c4f7ac64SKashyap Desai u8 ioc_use_only02; 349c4f7ac64SKashyap Desai u8 function; 350c4f7ac64SKashyap Desai __le16 ioc_use_only04; 351c4f7ac64SKashyap Desai u8 ioc_use_only06; 352c4f7ac64SKashyap Desai u8 msg_flags; 353c4f7ac64SKashyap Desai __le16 change_count; 354c4f7ac64SKashyap Desai __le16 function_dependent; 355c4f7ac64SKashyap Desai }; 356c4f7ac64SKashyap Desai 357c4f7ac64SKashyap Desai struct mpi3_default_reply { 358c4f7ac64SKashyap Desai __le16 host_tag; 359c4f7ac64SKashyap Desai u8 ioc_use_only02; 360c4f7ac64SKashyap Desai u8 function; 361c4f7ac64SKashyap Desai __le16 ioc_use_only04; 362c4f7ac64SKashyap Desai u8 ioc_use_only06; 363c4f7ac64SKashyap Desai u8 msg_flags; 364c4f7ac64SKashyap Desai __le16 ioc_use_only08; 365c4f7ac64SKashyap Desai __le16 ioc_status; 366c4f7ac64SKashyap Desai __le32 ioc_log_info; 367c4f7ac64SKashyap Desai }; 368c4f7ac64SKashyap Desai 369c4f7ac64SKashyap Desai #define MPI3_HOST_TAG_INVALID (0xffff) 370c4f7ac64SKashyap Desai #define MPI3_FUNCTION_IOC_FACTS (0x01) 371c4f7ac64SKashyap Desai #define MPI3_FUNCTION_IOC_INIT (0x02) 372c4f7ac64SKashyap Desai #define MPI3_FUNCTION_PORT_ENABLE (0x03) 373c4f7ac64SKashyap Desai #define MPI3_FUNCTION_EVENT_NOTIFICATION (0x04) 374c4f7ac64SKashyap Desai #define MPI3_FUNCTION_EVENT_ACK (0x05) 375c4f7ac64SKashyap Desai #define MPI3_FUNCTION_CI_DOWNLOAD (0x06) 376c4f7ac64SKashyap Desai #define MPI3_FUNCTION_CI_UPLOAD (0x07) 377c4f7ac64SKashyap Desai #define MPI3_FUNCTION_IO_UNIT_CONTROL (0x08) 378c4f7ac64SKashyap Desai #define MPI3_FUNCTION_PERSISTENT_EVENT_LOG (0x09) 379c4f7ac64SKashyap Desai #define MPI3_FUNCTION_MGMT_PASSTHROUGH (0x0a) 380c4f7ac64SKashyap Desai #define MPI3_FUNCTION_CONFIG (0x10) 381c4f7ac64SKashyap Desai #define MPI3_FUNCTION_SCSI_IO (0x20) 382c4f7ac64SKashyap Desai #define MPI3_FUNCTION_SCSI_TASK_MGMT (0x21) 383c4f7ac64SKashyap Desai #define MPI3_FUNCTION_SMP_PASSTHROUGH (0x22) 384c4f7ac64SKashyap Desai #define MPI3_FUNCTION_NVME_ENCAPSULATED (0x24) 385c4f7ac64SKashyap Desai #define MPI3_FUNCTION_TARGET_ASSIST (0x30) 386c4f7ac64SKashyap Desai #define MPI3_FUNCTION_TARGET_STATUS_SEND (0x31) 387c4f7ac64SKashyap Desai #define MPI3_FUNCTION_TARGET_MODE_ABORT (0x32) 388c4f7ac64SKashyap Desai #define MPI3_FUNCTION_TARGET_CMD_BUF_POST_BASE (0x33) 389c4f7ac64SKashyap Desai #define MPI3_FUNCTION_TARGET_CMD_BUF_POST_LIST (0x34) 390c4f7ac64SKashyap Desai #define MPI3_FUNCTION_CREATE_REQUEST_QUEUE (0x70) 391c4f7ac64SKashyap Desai #define MPI3_FUNCTION_DELETE_REQUEST_QUEUE (0x71) 392c4f7ac64SKashyap Desai #define MPI3_FUNCTION_CREATE_REPLY_QUEUE (0x72) 393c4f7ac64SKashyap Desai #define MPI3_FUNCTION_DELETE_REPLY_QUEUE (0x73) 394c4f7ac64SKashyap Desai #define MPI3_FUNCTION_TOOLBOX (0x80) 395c4f7ac64SKashyap Desai #define MPI3_FUNCTION_DIAG_BUFFER_POST (0x81) 396c4f7ac64SKashyap Desai #define MPI3_FUNCTION_DIAG_BUFFER_MANAGE (0x82) 397c4f7ac64SKashyap Desai #define MPI3_FUNCTION_DIAG_BUFFER_UPLOAD (0x83) 398c4f7ac64SKashyap Desai #define MPI3_FUNCTION_MIN_IOC_USE_ONLY (0xc0) 399c4f7ac64SKashyap Desai #define MPI3_FUNCTION_MAX_IOC_USE_ONLY (0xef) 400c4f7ac64SKashyap Desai #define MPI3_FUNCTION_MIN_PRODUCT_SPECIFIC (0xf0) 401c4f7ac64SKashyap Desai #define MPI3_FUNCTION_MAX_PRODUCT_SPECIFIC (0xff) 402c4f7ac64SKashyap Desai #define MPI3_IOCSTATUS_LOG_INFO_AVAIL_MASK (0x8000) 403c4f7ac64SKashyap Desai #define MPI3_IOCSTATUS_LOG_INFO_AVAILABLE (0x8000) 404c4f7ac64SKashyap Desai #define MPI3_IOCSTATUS_STATUS_MASK (0x7fff) 405c4f7ac64SKashyap Desai #define MPI3_IOCSTATUS_SUCCESS (0x0000) 406c4f7ac64SKashyap Desai #define MPI3_IOCSTATUS_INVALID_FUNCTION (0x0001) 407c4f7ac64SKashyap Desai #define MPI3_IOCSTATUS_BUSY (0x0002) 408c4f7ac64SKashyap Desai #define MPI3_IOCSTATUS_INVALID_SGL (0x0003) 409c4f7ac64SKashyap Desai #define MPI3_IOCSTATUS_INTERNAL_ERROR (0x0004) 410c4f7ac64SKashyap Desai #define MPI3_IOCSTATUS_INSUFFICIENT_RESOURCES (0x0006) 411c4f7ac64SKashyap Desai #define MPI3_IOCSTATUS_INVALID_FIELD (0x0007) 412c4f7ac64SKashyap Desai #define MPI3_IOCSTATUS_INVALID_STATE (0x0008) 413c4f7ac64SKashyap Desai #define MPI3_IOCSTATUS_INSUFFICIENT_POWER (0x000a) 414c4f7ac64SKashyap Desai #define MPI3_IOCSTATUS_INVALID_CHANGE_COUNT (0x000b) 415ec5ebd2cSSreekanth Reddy #define MPI3_IOCSTATUS_ALLOWED_CMD_BLOCK (0x000c) 416ec5ebd2cSSreekanth Reddy #define MPI3_IOCSTATUS_SUPERVISOR_ONLY (0x000d) 417c4f7ac64SKashyap Desai #define MPI3_IOCSTATUS_FAILURE (0x001f) 418c4f7ac64SKashyap Desai #define MPI3_IOCSTATUS_CONFIG_INVALID_ACTION (0x0020) 419c4f7ac64SKashyap Desai #define MPI3_IOCSTATUS_CONFIG_INVALID_TYPE (0x0021) 420c4f7ac64SKashyap Desai #define MPI3_IOCSTATUS_CONFIG_INVALID_PAGE (0x0022) 421c4f7ac64SKashyap Desai #define MPI3_IOCSTATUS_CONFIG_INVALID_DATA (0x0023) 422c4f7ac64SKashyap Desai #define MPI3_IOCSTATUS_CONFIG_NO_DEFAULTS (0x0024) 423c4f7ac64SKashyap Desai #define MPI3_IOCSTATUS_CONFIG_CANT_COMMIT (0x0025) 424c4f7ac64SKashyap Desai #define MPI3_IOCSTATUS_SCSI_RECOVERED_ERROR (0x0040) 425c4f7ac64SKashyap Desai #define MPI3_IOCSTATUS_SCSI_TM_NOT_SUPPORTED (0x0041) 426c4f7ac64SKashyap Desai #define MPI3_IOCSTATUS_SCSI_INVALID_DEVHANDLE (0x0042) 427c4f7ac64SKashyap Desai #define MPI3_IOCSTATUS_SCSI_DEVICE_NOT_THERE (0x0043) 428c4f7ac64SKashyap Desai #define MPI3_IOCSTATUS_SCSI_DATA_OVERRUN (0x0044) 429c4f7ac64SKashyap Desai #define MPI3_IOCSTATUS_SCSI_DATA_UNDERRUN (0x0045) 430c4f7ac64SKashyap Desai #define MPI3_IOCSTATUS_SCSI_IO_DATA_ERROR (0x0046) 431c4f7ac64SKashyap Desai #define MPI3_IOCSTATUS_SCSI_PROTOCOL_ERROR (0x0047) 432c4f7ac64SKashyap Desai #define MPI3_IOCSTATUS_SCSI_TASK_TERMINATED (0x0048) 433c4f7ac64SKashyap Desai #define MPI3_IOCSTATUS_SCSI_RESIDUAL_MISMATCH (0x0049) 434c4f7ac64SKashyap Desai #define MPI3_IOCSTATUS_SCSI_TASK_MGMT_FAILED (0x004a) 435c4f7ac64SKashyap Desai #define MPI3_IOCSTATUS_SCSI_IOC_TERMINATED (0x004b) 436c4f7ac64SKashyap Desai #define MPI3_IOCSTATUS_SCSI_EXT_TERMINATED (0x004c) 437c4f7ac64SKashyap Desai #define MPI3_IOCSTATUS_EEDP_GUARD_ERROR (0x004d) 438c4f7ac64SKashyap Desai #define MPI3_IOCSTATUS_EEDP_REF_TAG_ERROR (0x004e) 439c4f7ac64SKashyap Desai #define MPI3_IOCSTATUS_EEDP_APP_TAG_ERROR (0x004f) 440c4f7ac64SKashyap Desai #define MPI3_IOCSTATUS_TARGET_INVALID_IO_INDEX (0x0062) 441c4f7ac64SKashyap Desai #define MPI3_IOCSTATUS_TARGET_ABORTED (0x0063) 442c4f7ac64SKashyap Desai #define MPI3_IOCSTATUS_TARGET_NO_CONN_RETRYABLE (0x0064) 443c4f7ac64SKashyap Desai #define MPI3_IOCSTATUS_TARGET_NO_CONNECTION (0x0065) 444c4f7ac64SKashyap Desai #define MPI3_IOCSTATUS_TARGET_XFER_COUNT_MISMATCH (0x006a) 445c4f7ac64SKashyap Desai #define MPI3_IOCSTATUS_TARGET_DATA_OFFSET_ERROR (0x006d) 446c4f7ac64SKashyap Desai #define MPI3_IOCSTATUS_TARGET_TOO_MUCH_WRITE_DATA (0x006e) 447c4f7ac64SKashyap Desai #define MPI3_IOCSTATUS_TARGET_IU_TOO_SHORT (0x006f) 448c4f7ac64SKashyap Desai #define MPI3_IOCSTATUS_TARGET_ACK_NAK_TIMEOUT (0x0070) 449c4f7ac64SKashyap Desai #define MPI3_IOCSTATUS_TARGET_NAK_RECEIVED (0x0071) 450c4f7ac64SKashyap Desai #define MPI3_IOCSTATUS_SAS_SMP_REQUEST_FAILED (0x0090) 451c4f7ac64SKashyap Desai #define MPI3_IOCSTATUS_SAS_SMP_DATA_OVERRUN (0x0091) 452c4f7ac64SKashyap Desai #define MPI3_IOCSTATUS_DIAGNOSTIC_RELEASED (0x00a0) 453c4f7ac64SKashyap Desai #define MPI3_IOCSTATUS_CI_UNSUPPORTED (0x00b0) 454c4f7ac64SKashyap Desai #define MPI3_IOCSTATUS_CI_UPDATE_SEQUENCE (0x00b1) 455c4f7ac64SKashyap Desai #define MPI3_IOCSTATUS_CI_VALIDATION_FAILED (0x00b2) 456ec5ebd2cSSreekanth Reddy #define MPI3_IOCSTATUS_CI_KEY_UPDATE_PENDING (0x00b3) 457ec5ebd2cSSreekanth Reddy #define MPI3_IOCSTATUS_CI_KEY_UPDATE_NOT_POSSIBLE (0x00b4) 458c4f7ac64SKashyap Desai #define MPI3_IOCSTATUS_SECURITY_KEY_REQUIRED (0x00c0) 459ec5ebd2cSSreekanth Reddy #define MPI3_IOCSTATUS_SECURITY_VIOLATION (0x00c1) 460c4f7ac64SKashyap Desai #define MPI3_IOCSTATUS_INVALID_QUEUE_ID (0x0f00) 461c4f7ac64SKashyap Desai #define MPI3_IOCSTATUS_INVALID_QUEUE_SIZE (0x0f01) 462c4f7ac64SKashyap Desai #define MPI3_IOCSTATUS_INVALID_MSIX_VECTOR (0x0f02) 463c4f7ac64SKashyap Desai #define MPI3_IOCSTATUS_INVALID_REPLY_QUEUE_ID (0x0f03) 464c4f7ac64SKashyap Desai #define MPI3_IOCSTATUS_INVALID_QUEUE_DELETION (0x0f04) 465c4f7ac64SKashyap Desai #define MPI3_IOCLOGINFO_TYPE_MASK (0xf0000000) 466c4f7ac64SKashyap Desai #define MPI3_IOCLOGINFO_TYPE_SHIFT (28) 467c4f7ac64SKashyap Desai #define MPI3_IOCLOGINFO_TYPE_NONE (0x0) 468c4f7ac64SKashyap Desai #define MPI3_IOCLOGINFO_TYPE_SAS (0x3) 469c4f7ac64SKashyap Desai #define MPI3_IOCLOGINFO_LOG_DATA_MASK (0x0fffffff) 470c4f7ac64SKashyap Desai #endif 471