Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
megaraid_sas.h File Reference

Go to the source code of this file.

Data Structures

struct  MR_PD_ADDRESS
 
struct  MR_PD_LIST
 
struct  megasas_pd_list
 
union  MR_LD_REF
 
struct  MR_LD_LIST
 
struct  megasas_ctrl_prop
 
struct  megasas_ctrl_info
 
struct  megasas_register_set
 
struct  megasas_sge32
 
struct  megasas_sge64
 
struct  megasas_sge_skinny
 
union  megasas_sgl
 
struct  megasas_header
 
union  megasas_sgl_frame
 
struct  megasas_init_frame
 
struct  megasas_init_queue_info
 
struct  megasas_io_frame
 
struct  megasas_pthru_frame
 
struct  megasas_dcmd_frame
 
struct  megasas_abort_frame
 
struct  megasas_smp_frame
 
struct  megasas_stp_frame
 
union  megasas_frame
 
union  megasas_evt_class_locale
 
struct  megasas_evt_log_info
 
struct  megasas_progress
 
struct  megasas_evtarg_ld
 
struct  megasas_evtarg_pd
 
struct  megasas_evt_detail
 
struct  megasas_aen_event
 
struct  megasas_irq_context
 
struct  megasas_instance
 
struct  megasas_instance_template
 
struct  megasas_cmd
 
struct  megasas_iocpacket
 
struct  megasas_aen
 
struct  megasas_mgmt_info
 

Macros

#define MEGASAS_VERSION   "06.504.01.00-rc1"
 
#define MEGASAS_RELDATE   "Oct. 1, 2012"
 
#define MEGASAS_EXT_VERSION   "Mon. Oct. 1 17:00:00 PDT 2012"
 
#define PCI_DEVICE_ID_LSI_SAS1078R   0x0060
 
#define PCI_DEVICE_ID_LSI_SAS1078DE   0x007C
 
#define PCI_DEVICE_ID_LSI_VERDE_ZCR   0x0413
 
#define PCI_DEVICE_ID_LSI_SAS1078GEN2   0x0078
 
#define PCI_DEVICE_ID_LSI_SAS0079GEN2   0x0079
 
#define PCI_DEVICE_ID_LSI_SAS0073SKINNY   0x0073
 
#define PCI_DEVICE_ID_LSI_SAS0071SKINNY   0x0071
 
#define PCI_DEVICE_ID_LSI_FUSION   0x005b
 
#define PCI_DEVICE_ID_LSI_INVADER   0x005d
 
#define MFI_STATE_MASK   0xF0000000
 
#define MFI_STATE_UNDEFINED   0x00000000
 
#define MFI_STATE_BB_INIT   0x10000000
 
#define MFI_STATE_FW_INIT   0x40000000
 
#define MFI_STATE_WAIT_HANDSHAKE   0x60000000
 
#define MFI_STATE_FW_INIT_2   0x70000000
 
#define MFI_STATE_DEVICE_SCAN   0x80000000
 
#define MFI_STATE_BOOT_MESSAGE_PENDING   0x90000000
 
#define MFI_STATE_FLUSH_CACHE   0xA0000000
 
#define MFI_STATE_READY   0xB0000000
 
#define MFI_STATE_OPERATIONAL   0xC0000000
 
#define MFI_STATE_FAULT   0xF0000000
 
#define MFI_RESET_REQUIRED   0x00000001
 
#define MFI_RESET_ADAPTER   0x00000002
 
#define MEGAMFI_FRAME_SIZE   64
 
#define WRITE_SEQUENCE_OFFSET   (0x0000000FC) /* I20 */
 
#define HOST_DIAGNOSTIC_OFFSET   (0x000000F8) /* I20 */
 
#define DIAG_WRITE_ENABLE   (0x00000080)
 
#define DIAG_RESET_ADAPTER   (0x00000004)
 
#define MFI_ADP_RESET   0x00000040
 
#define MFI_INIT_ABORT   0x00000001
 
#define MFI_INIT_READY   0x00000002
 
#define MFI_INIT_MFIMODE   0x00000004
 
#define MFI_INIT_CLEAR_HANDSHAKE   0x00000008
 
#define MFI_INIT_HOTPLUG   0x00000010
 
#define MFI_STOP_ADP   0x00000020
 
#define MFI_RESET_FLAGS
 
#define MFI_FRAME_POST_IN_REPLY_QUEUE   0x0000
 
#define MFI_FRAME_DONT_POST_IN_REPLY_QUEUE   0x0001
 
#define MFI_FRAME_SGL32   0x0000
 
#define MFI_FRAME_SGL64   0x0002
 
#define MFI_FRAME_SENSE32   0x0000
 
#define MFI_FRAME_SENSE64   0x0004
 
#define MFI_FRAME_DIR_NONE   0x0000
 
#define MFI_FRAME_DIR_WRITE   0x0008
 
#define MFI_FRAME_DIR_READ   0x0010
 
#define MFI_FRAME_DIR_BOTH   0x0018
 
#define MFI_FRAME_IEEE   0x0020
 
#define MFI_CMD_STATUS_POLL_MODE   0xFF
 
#define MFI_CMD_INIT   0x00
 
#define MFI_CMD_LD_READ   0x01
 
#define MFI_CMD_LD_WRITE   0x02
 
#define MFI_CMD_LD_SCSI_IO   0x03
 
#define MFI_CMD_PD_SCSI_IO   0x04
 
#define MFI_CMD_DCMD   0x05
 
#define MFI_CMD_ABORT   0x06
 
#define MFI_CMD_SMP   0x07
 
#define MFI_CMD_STP   0x08
 
#define MFI_CMD_INVALID   0xff
 
#define MR_DCMD_CTRL_GET_INFO   0x01010000
 
#define MR_DCMD_LD_GET_LIST   0x03010000
 
#define MR_DCMD_CTRL_CACHE_FLUSH   0x01101000
 
#define MR_FLUSH_CTRL_CACHE   0x01
 
#define MR_FLUSH_DISK_CACHE   0x02
 
#define MR_DCMD_CTRL_SHUTDOWN   0x01050000
 
#define MR_DCMD_HIBERNATE_SHUTDOWN   0x01060000
 
#define MR_ENABLE_DRIVE_SPINDOWN   0x01
 
#define MR_DCMD_CTRL_EVENT_GET_INFO   0x01040100
 
#define MR_DCMD_CTRL_EVENT_GET   0x01040300
 
#define MR_DCMD_CTRL_EVENT_WAIT   0x01040500
 
#define MR_DCMD_LD_GET_PROPERTIES   0x03030000
 
#define MR_DCMD_CLUSTER   0x08000000
 
#define MR_DCMD_CLUSTER_RESET_ALL   0x08010100
 
#define MR_DCMD_CLUSTER_RESET_LD   0x08010200
 
#define MR_DCMD_PD_LIST_QUERY   0x02010100
 
#define MFI_MBOX_SIZE   12
 
#define MR_EVT_CFG_CLEARED   0x0004
 
#define MR_EVT_LD_STATE_CHANGE   0x0051
 
#define MR_EVT_PD_INSERTED   0x005b
 
#define MR_EVT_PD_REMOVED   0x0070
 
#define MR_EVT_LD_CREATED   0x008a
 
#define MR_EVT_LD_DELETED   0x008b
 
#define MR_EVT_FOREIGN_CFG_IMPORTED   0x00db
 
#define MR_EVT_LD_OFFLINE   0x00fc
 
#define MR_EVT_CTRL_HOST_BUS_SCAN_REQUESTED   0x0152
 
#define MAX_LOGICAL_DRIVES   64
 
#define MEGASAS_MAX_PD_CHANNELS   2
 
#define MEGASAS_MAX_LD_CHANNELS   2
 
#define MEGASAS_MAX_CHANNELS
 
#define MEGASAS_MAX_DEV_PER_CHANNEL   128
 
#define MEGASAS_DEFAULT_INIT_ID   -1
 
#define MEGASAS_MAX_LUN   8
 
#define MEGASAS_MAX_LD   64
 
#define MEGASAS_DEFAULT_CMD_PER_LUN   256
 
#define MEGASAS_MAX_PD
 
#define MEGASAS_MAX_LD_IDS
 
#define MEGASAS_MAX_SECTORS   (2*1024)
 
#define MEGASAS_MAX_SECTORS_IEEE   (2*128)
 
#define MEGASAS_DBG_LVL   1
 
#define MEGASAS_FW_BUSY   1
 
#define IO_FRAME   0
 
#define PTHRU_FRAME   1
 
#define MEGASAS_RESET_WAIT_TIME   180
 
#define MEGASAS_INTERNAL_CMD_WAIT_TIME   180
 
#define MEGASAS_RESET_NOTICE_INTERVAL   5
 
#define MEGASAS_IOCTL_CMD   0
 
#define MEGASAS_DEFAULT_CMD_TIMEOUT   90
 
#define MEGASAS_THROTTLE_QUEUE_DEPTH   16
 
#define MEGASAS_INT_CMDS   32
 
#define MEGASAS_SKINNY_INT_CMDS   5
 
#define MEGASAS_MAX_MSIX_QUEUES   16
 
#define IS_DMA64   (sizeof(dma_addr_t) == 8)
 
#define MFI_XSCALE_OMR0_CHANGE_INTERRUPT   0x00000001
 
#define MFI_INTR_FLAG_REPLY_MESSAGE   0x00000001
 
#define MFI_INTR_FLAG_FIRMWARE_STATE_CHANGE   0x00000002
 
#define MFI_G2_OUTBOUND_DOORBELL_CHANGE_INTERRUPT   0x00000004
 
#define MFI_OB_INTR_STATUS_MASK   0x00000002
 
#define MFI_POLL_TIMEOUT_SECS   60
 
#define MFI_REPLY_1078_MESSAGE_INTERRUPT   0x80000000
 
#define MFI_REPLY_GEN2_MESSAGE_INTERRUPT   0x00000001
 
#define MFI_GEN2_ENABLE_INTERRUPT_MASK   (0x00000001 | 0x00000004)
 
#define MFI_REPLY_SKINNY_MESSAGE_INTERRUPT   0x40000000
 
#define MFI_SKINNY_ENABLE_INTERRUPT_MASK   (0x00000001)
 
#define MFI_1068_PCSR_OFFSET   0x84
 
#define MFI_1068_FW_HANDSHAKE_OFFSET   0x64
 
#define MFI_1068_FW_READY   0xDDDD0000
 
#define MEGASAS_IS_LOGICAL(scp)   (scp->device->channel < MEGASAS_MAX_PD_CHANNELS) ? 0 : 1
 
#define MEGASAS_DEV_INDEX(inst, scp)
 
#define MAX_MGMT_ADAPTERS   1024
 
#define MAX_IOCTL_SGE   16
 
#define MEGASAS_IOC_FIRMWARE   _IOWR('M', 1, struct megasas_iocpacket)
 
#define MEGASAS_IOC_GET_AEN   _IOW('M', 3, struct megasas_aen)
 
#define msi_control_reg(base)   (base + PCI_MSI_FLAGS)
 
#define PCI_MSIX_FLAGS_ENABLE   (1 << 15)
 

Enumerations

enum  MFI_STAT {
  MFI_STAT_OK = 0x00, MFI_STAT_INVALID_CMD = 0x01, MFI_STAT_INVALID_DCMD = 0x02, MFI_STAT_INVALID_PARAMETER = 0x03,
  MFI_STAT_INVALID_SEQUENCE_NUMBER = 0x04, MFI_STAT_ABORT_NOT_POSSIBLE = 0x05, MFI_STAT_APP_HOST_CODE_NOT_FOUND = 0x06, MFI_STAT_APP_IN_USE = 0x07,
  MFI_STAT_APP_NOT_INITIALIZED = 0x08, MFI_STAT_ARRAY_INDEX_INVALID = 0x09, MFI_STAT_ARRAY_ROW_NOT_EMPTY = 0x0a, MFI_STAT_CONFIG_RESOURCE_CONFLICT = 0x0b,
  MFI_STAT_DEVICE_NOT_FOUND = 0x0c, MFI_STAT_DRIVE_TOO_SMALL = 0x0d, MFI_STAT_FLASH_ALLOC_FAIL = 0x0e, MFI_STAT_FLASH_BUSY = 0x0f,
  MFI_STAT_FLASH_ERROR = 0x10, MFI_STAT_FLASH_IMAGE_BAD = 0x11, MFI_STAT_FLASH_IMAGE_INCOMPLETE = 0x12, MFI_STAT_FLASH_NOT_OPEN = 0x13,
  MFI_STAT_FLASH_NOT_STARTED = 0x14, MFI_STAT_FLUSH_FAILED = 0x15, MFI_STAT_HOST_CODE_NOT_FOUNT = 0x16, MFI_STAT_LD_CC_IN_PROGRESS = 0x17,
  MFI_STAT_LD_INIT_IN_PROGRESS = 0x18, MFI_STAT_LD_LBA_OUT_OF_RANGE = 0x19, MFI_STAT_LD_MAX_CONFIGURED = 0x1a, MFI_STAT_LD_NOT_OPTIMAL = 0x1b,
  MFI_STAT_LD_RBLD_IN_PROGRESS = 0x1c, MFI_STAT_LD_RECON_IN_PROGRESS = 0x1d, MFI_STAT_LD_WRONG_RAID_LEVEL = 0x1e, MFI_STAT_MAX_SPARES_EXCEEDED = 0x1f,
  MFI_STAT_MEMORY_NOT_AVAILABLE = 0x20, MFI_STAT_MFC_HW_ERROR = 0x21, MFI_STAT_NO_HW_PRESENT = 0x22, MFI_STAT_NOT_FOUND = 0x23,
  MFI_STAT_NOT_IN_ENCL = 0x24, MFI_STAT_PD_CLEAR_IN_PROGRESS = 0x25, MFI_STAT_PD_TYPE_WRONG = 0x26, MFI_STAT_PR_DISABLED = 0x27,
  MFI_STAT_ROW_INDEX_INVALID = 0x28, MFI_STAT_SAS_CONFIG_INVALID_ACTION = 0x29, MFI_STAT_SAS_CONFIG_INVALID_DATA = 0x2a, MFI_STAT_SAS_CONFIG_INVALID_PAGE = 0x2b,
  MFI_STAT_SAS_CONFIG_INVALID_TYPE = 0x2c, MFI_STAT_SCSI_DONE_WITH_ERROR = 0x2d, MFI_STAT_SCSI_IO_FAILED = 0x2e, MFI_STAT_SCSI_RESERVATION_CONFLICT = 0x2f,
  MFI_STAT_SHUTDOWN_FAILED = 0x30, MFI_STAT_TIME_NOT_SET = 0x31, MFI_STAT_WRONG_STATE = 0x32, MFI_STAT_LD_OFFLINE = 0x33,
  MFI_STAT_PEER_NOTIFICATION_REJECTED = 0x34, MFI_STAT_PEER_NOTIFICATION_FAILED = 0x35, MFI_STAT_RESERVATION_IN_PROGRESS = 0x36, MFI_STAT_I2C_ERRORS_DETECTED = 0x37,
  MFI_STAT_PCI_ERRORS_DETECTED = 0x38, MFI_STAT_CONFIG_SEQ_MISMATCH = 0x67, MFI_STAT_INVALID_STATUS = 0xFF
}
 
enum  MR_EVT_CLASS {
  MR_EVT_CLASS_DEBUG = -2, MR_EVT_CLASS_PROGRESS = -1, MR_EVT_CLASS_INFO = 0, MR_EVT_CLASS_WARNING = 1,
  MR_EVT_CLASS_CRITICAL = 2, MR_EVT_CLASS_FATAL = 3, MR_EVT_CLASS_DEAD = 4
}
 
enum  MR_EVT_LOCALE {
  MR_EVT_LOCALE_LD = 0x0001, MR_EVT_LOCALE_PD = 0x0002, MR_EVT_LOCALE_ENCL = 0x0004, MR_EVT_LOCALE_BBU = 0x0008,
  MR_EVT_LOCALE_SAS = 0x0010, MR_EVT_LOCALE_CTRL = 0x0020, MR_EVT_LOCALE_CONFIG = 0x0040, MR_EVT_LOCALE_CLUSTER = 0x0080,
  MR_EVT_LOCALE_ALL = 0xffff
}
 
enum  MR_EVT_ARGS {
  MR_EVT_ARGS_NONE, MR_EVT_ARGS_CDB_SENSE, MR_EVT_ARGS_LD, MR_EVT_ARGS_LD_COUNT,
  MR_EVT_ARGS_LD_LBA, MR_EVT_ARGS_LD_OWNER, MR_EVT_ARGS_LD_LBA_PD_LBA, MR_EVT_ARGS_LD_PROG,
  MR_EVT_ARGS_LD_STATE, MR_EVT_ARGS_LD_STRIP, MR_EVT_ARGS_PD, MR_EVT_ARGS_PD_ERR,
  MR_EVT_ARGS_PD_LBA, MR_EVT_ARGS_PD_LBA_LD, MR_EVT_ARGS_PD_PROG, MR_EVT_ARGS_PD_STATE,
  MR_EVT_ARGS_PCI, MR_EVT_ARGS_RATE, MR_EVT_ARGS_STR, MR_EVT_ARGS_TIME,
  MR_EVT_ARGS_ECC, MR_EVT_ARGS_LD_PROP, MR_EVT_ARGS_PD_SPARE, MR_EVT_ARGS_PD_INDEX,
  MR_EVT_ARGS_DIAG_PASS, MR_EVT_ARGS_DIAG_FAIL, MR_EVT_ARGS_PD_LBA_LBA, MR_EVT_ARGS_PORT_PHY,
  MR_EVT_ARGS_PD_MISSING, MR_EVT_ARGS_PD_ADDRESS, MR_EVT_ARGS_BITMAP, MR_EVT_ARGS_CONNECTOR,
  MR_EVT_ARGS_PD_PD, MR_EVT_ARGS_PD_FRU, MR_EVT_ARGS_PD_PATHINFO, MR_EVT_ARGS_PD_POWER_STATE,
  MR_EVT_ARGS_GENERIC
}
 
enum  MR_PD_QUERY_TYPE {
  MR_PD_QUERY_TYPE_ALL = 0, MR_PD_QUERY_TYPE_STATE = 1, MR_PD_QUERY_TYPE_POWER_STATE = 2, MR_PD_QUERY_TYPE_MEDIA_TYPE = 3,
  MR_PD_QUERY_TYPE_SPEED = 4, MR_PD_QUERY_TYPE_EXPOSED_TO_HOST = 5
}
 
enum  MR_PD_STATE {
  MR_PD_STATE_UNCONFIGURED_GOOD = 0x00, MR_PD_STATE_UNCONFIGURED_BAD = 0x01, MR_PD_STATE_HOT_SPARE = 0x02, MR_PD_STATE_OFFLINE = 0x10,
  MR_PD_STATE_FAILED = 0x11, MR_PD_STATE_REBUILD = 0x14, MR_PD_STATE_ONLINE = 0x18, MR_PD_STATE_COPYBACK = 0x20,
  MR_PD_STATE_SYSTEM = 0x40
}
 
enum  {
  MEGASAS_HBA_OPERATIONAL = 0, MEGASAS_ADPRESET_SM_INFAULT = 1, MEGASAS_ADPRESET_SM_FW_RESET_SUCCESS = 2, MEGASAS_ADPRESET_SM_OPERATIONAL = 3,
  MEGASAS_HW_CRITICAL_ERROR = 4, MEGASAS_ADPRESET_INPROG_SIGN = 0xDEADDEAD
}
 

Functions

struct megasas_register_set __attribute__ ((packed))
 

Variables

enum MFI_STAT __attribute__
 
struct MR_PD_ADDRESS __packed
 
u16 vendor_id
 
u16 device_id
 
u16 sub_vendor_id
 
u16 sub_device_id
 
u8 reserved [24]
 
u8 PCIX
 
u8 PCIE
 
u8 iSCSI
 
u8 SAS_3G
 
u8 reserved_0
 
u8 reserved_1 [6]
 
u8 port_count
 
u64 port_addr [8]
 
u8 SPI
 
u8 SATA_1_5G
 
u8 SATA_3G
 
char name [8]
 
char version [32]
 
char build_date [16]
 
char built_time [16]
 
char build_time [16]
 
u32 bbu
 
u32 alarm
 
u32 nvram
 
u32 uart
 
u32 raid_level_0
 
u32 raid_level_1
 
u32 raid_level_5
 
u32 raid_level_1E
 
u32 raid_level_6
 
u32 rbld_rate
 
u32 cc_rate
 
u32 bgi_rate
 
u32 recon_rate
 
u32 patrol_rate
 
u32 alarm_control
 
u32 cluster_supported
 
u32 spanning_allowed
 
u32 dedicated_hotspares
 
u32 revertible_hotspares
 
u32 foreign_config_import
 
u32 self_diagnostic
 
u32 mixed_redundancy_arr
 
u32 global_hot_spares
 
u32 read_policy
 
u32 write_policy
 
u32 io_policy
 
u32 access_policy
 
u32 disk_cache_policy
 
u8 min
 
u8 max
 
u32 force_online
 
u32 force_offline
 
u32 force_rebuild
 
u32 ctrl_supports_sas
 
u32 ctrl_supports_sata
 
u32 allow_mix_in_encl
 
u32 allow_mix_in_ld
 
u32 allow_sata_in_cluster
 
u32 doorbell
 
u32 fusion_seq_offset
 
u32 fusion_host_diag
 
u32 reserved_01
 
u32 inbound_msg_0
 
u32 inbound_msg_1
 
u32 outbound_msg_0
 
u32 outbound_msg_1
 
u32 inbound_doorbell
 
u32 inbound_intr_status
 
u32 inbound_intr_mask
 
u32 outbound_doorbell
 
u32 outbound_intr_status
 
u32 outbound_intr_mask
 
u32 inbound_queue_port
 
u32 outbound_queue_port
 
u32 reserved_2 [9]
 
u32 reply_post_host_index
 
u32 reserved_2_2 [12]
 
u32 outbound_doorbell_clear
 
u32 reserved_3 [3]
 
u32 outbound_scratch_pad
 
u32 outbound_scratch_pad_2
 
u32 reserved_4 [2]
 
u32 inbound_low_queue_port
 
u32 inbound_high_queue_port
 
u32 reserved_5
 
u32 res_6 [11]
 
u32 host_diag
 
u32 seq_offset
 
u32 index_registers [807]
 
u32 phys_addr
 
u32 length
 
struct megasas_sge32 sge32 [1]
 
struct megasas_sge64 sge64 [1]
 
struct megasas_sge_skinny sge_skinny [1]
 
u8 cmd
 
u8 sense_len
 
u8 cmd_status
 
u8 scsi_status
 
u8 target_id
 
u8 lun
 
u8 cdb_len
 
u8 sge_count
 
u32 context
 
u32 pad_0
 
u16 flags
 
u16 timeout
 
u32 data_xferlen
 
u32 data_xfer_len
 
u32 queue_info_new_phys_addr_lo
 
u32 queue_info_new_phys_addr_hi
 
u32 queue_info_old_phys_addr_lo
 
u32 queue_info_old_phys_addr_hi
 
u32 init_flags
 
u32 reply_queue_entries
 
u32 reply_queue_start_phys_addr_lo
 
u32 reply_queue_start_phys_addr_hi
 
u32 producer_index_phys_addr_lo
 
u32 producer_index_phys_addr_hi
 
u32 consumer_index_phys_addr_lo
 
u32 consumer_index_phys_addr_hi
 
u8 access_byte
 
u32 lba_count
 
u32 sense_buf_phys_addr_lo
 
u32 sense_buf_phys_addr_hi
 
u32 start_lba_lo
 
u32 start_lba_hi
 
union megasas_sgl sgl
 
u8 cdb [16]
 
u32 opcode
 
union {
   u8   b [12]
 
   u16   s [6]
 
   u32   w [3]
 
mbox
 
u32 abort_context
 
u32 pad_1
 
u32 abort_mfi_phys_addr_lo
 
u32 abort_mfi_phys_addr_hi
 
u8 connection_status
 
u64 sas_addr
 
u16 fis [10]
 
u32 stp_flags
 
u16 locale
 
s8 class
 
u32 word
 
u32 newest_seq_num
 
u32 oldest_seq_num
 
u32 clear_seq_num
 
u32 shutdown_seq_num
 
u32 boot_seq_num
 
u16 progress
 
u16 elapsed_seconds
 
u8 ld_index
 
u8 encl_index
 
u8 slot_number
 
struct megasas_evtarg_pd pd
 
u8 cdb_length
 
u8 sense_length
 
u8 sense [64]
 
struct megasas_evtarg_ld ld
 
u64 count
 
u64 lba
 
u32 prevOwner
 
u32 newOwner
 
u64 ld_lba
 
u64 pd_lba
 
struct megasas_progress prog
 
u32 prev_state
 
u32 new_state
 
u64 strip
 
u32 err
 
u32 prevState
 
u32 newState
 
u16 vendorId
 
u16 deviceId
 
u16 subVendorId
 
u16 subDeviceId
 
u32 rtc
 
u32 elapsedSeconds
 
u32 ecar
 
u32 elog
 
char str [64]
 
u32 seq_num
 
u32 time_stamp
 
u32 code
 
union megasas_evt_class_locale cl
 
u8 arg_type
 
u8 reserved1 [15]
 
union {
   struct megasas_evtarg_ld   ld
 
   struct megasas_evtarg_pd   pd
 
   u32   rate
 
   char   str [96]
 
   u8   b [96]
 
   u16   s [48]
 
   u32   w [24]
 
   u64   d [12]
 
args
 
char description [128]
 
u16 host_no
 
u16 __pad1
 
u32 sgl_off
 
u32 sense_off
 
union {
   u8   raw [128]
 
   struct megasas_header   hdr
 
frame
 
u32 class_locale_word
 

Macro Definition Documentation

#define DIAG_RESET_ADAPTER   (0x00000004)

Definition at line 97 of file megaraid_sas.h.

#define DIAG_WRITE_ENABLE   (0x00000080)

Definition at line 96 of file megaraid_sas.h.

#define HOST_DIAGNOSTIC_OFFSET   (0x000000F8) /* I20 */

Definition at line 95 of file megaraid_sas.h.

#define IO_FRAME   0

Definition at line 735 of file megaraid_sas.h.

#define IS_DMA64   (sizeof(dma_addr_t) == 8)

Definition at line 767 of file megaraid_sas.h.

#define MAX_IOCTL_SGE   16

Definition at line 1437 of file megaraid_sas.h.

#define MAX_LOGICAL_DRIVES   64

Definition at line 324 of file megaraid_sas.h.

#define MAX_MGMT_ADAPTERS   1024

Definition at line 1436 of file megaraid_sas.h.

#define MEGAMFI_FRAME_SIZE   64

Definition at line 82 of file megaraid_sas.h.

#define MEGASAS_DBG_LVL   1

Definition at line 730 of file megaraid_sas.h.

#define MEGASAS_DEFAULT_CMD_PER_LUN   256

Definition at line 722 of file megaraid_sas.h.

#define MEGASAS_DEFAULT_CMD_TIMEOUT   90

Definition at line 749 of file megaraid_sas.h.

#define MEGASAS_DEFAULT_INIT_ID   -1

Definition at line 719 of file megaraid_sas.h.

#define MEGASAS_DEV_INDEX (   inst,
  scp 
)
Value:
((scp->device->channel % 2) * MEGASAS_MAX_DEV_PER_CHANNEL) + \
scp->device->id

Definition at line 1406 of file megaraid_sas.h.

#define MEGASAS_EXT_VERSION   "Mon. Oct. 1 17:00:00 PDT 2012"

Definition at line 38 of file megaraid_sas.h.

#define MEGASAS_FW_BUSY   1

Definition at line 732 of file megaraid_sas.h.

#define MEGASAS_INT_CMDS   32

Definition at line 759 of file megaraid_sas.h.

#define MEGASAS_INTERNAL_CMD_WAIT_TIME   180

Definition at line 746 of file megaraid_sas.h.

#define MEGASAS_IOC_FIRMWARE   _IOWR('M', 1, struct megasas_iocpacket)

Definition at line 1481 of file megaraid_sas.h.

#define MEGASAS_IOC_GET_AEN   _IOW('M', 3, struct megasas_aen)

Definition at line 1482 of file megaraid_sas.h.

#define MEGASAS_IOCTL_CMD   0

Definition at line 748 of file megaraid_sas.h.

#define MEGASAS_IS_LOGICAL (   scp)    (scp->device->channel < MEGASAS_MAX_PD_CHANNELS) ? 0 : 1

Definition at line 1403 of file megaraid_sas.h.

#define MEGASAS_MAX_CHANNELS
Value:
MEGASAS_MAX_LD_CHANNELS)

Definition at line 716 of file megaraid_sas.h.

#define MEGASAS_MAX_DEV_PER_CHANNEL   128

Definition at line 718 of file megaraid_sas.h.

#define MEGASAS_MAX_LD   64

Definition at line 721 of file megaraid_sas.h.

#define MEGASAS_MAX_LD_CHANNELS   2

Definition at line 715 of file megaraid_sas.h.

#define MEGASAS_MAX_LD_IDS
Value:
MEGASAS_MAX_DEV_PER_CHANNEL)

Definition at line 725 of file megaraid_sas.h.

#define MEGASAS_MAX_LUN   8

Definition at line 720 of file megaraid_sas.h.

#define MEGASAS_MAX_MSIX_QUEUES   16

Definition at line 762 of file megaraid_sas.h.

#define MEGASAS_MAX_PD
Value:
MEGASAS_MAX_DEV_PER_CHANNEL)

Definition at line 723 of file megaraid_sas.h.

#define MEGASAS_MAX_PD_CHANNELS   2

Definition at line 714 of file megaraid_sas.h.

#define MEGASAS_MAX_SECTORS   (2*1024)

Definition at line 728 of file megaraid_sas.h.

#define MEGASAS_MAX_SECTORS_IEEE   (2*128)

Definition at line 729 of file megaraid_sas.h.

#define MEGASAS_RELDATE   "Oct. 1, 2012"

Definition at line 37 of file megaraid_sas.h.

#define MEGASAS_RESET_NOTICE_INTERVAL   5

Definition at line 747 of file megaraid_sas.h.

#define MEGASAS_RESET_WAIT_TIME   180

Definition at line 745 of file megaraid_sas.h.

#define MEGASAS_SKINNY_INT_CMDS   5

Definition at line 760 of file megaraid_sas.h.

#define MEGASAS_THROTTLE_QUEUE_DEPTH   16

Definition at line 750 of file megaraid_sas.h.

#define MEGASAS_VERSION   "06.504.01.00-rc1"

Definition at line 36 of file megaraid_sas.h.

#define MFI_1068_FW_HANDSHAKE_OFFSET   0x64

Definition at line 785 of file megaraid_sas.h.

#define MFI_1068_FW_READY   0xDDDD0000

Definition at line 786 of file megaraid_sas.h.

#define MFI_1068_PCSR_OFFSET   0x84

Definition at line 784 of file megaraid_sas.h.

#define MFI_ADP_RESET   0x00000040

Definition at line 99 of file megaraid_sas.h.

#define MFI_CMD_ABORT   0x06

Definition at line 139 of file megaraid_sas.h.

#define MFI_CMD_DCMD   0x05

Definition at line 138 of file megaraid_sas.h.

#define MFI_CMD_INIT   0x00

Definition at line 133 of file megaraid_sas.h.

#define MFI_CMD_INVALID   0xff

Definition at line 142 of file megaraid_sas.h.

#define MFI_CMD_LD_READ   0x01

Definition at line 134 of file megaraid_sas.h.

#define MFI_CMD_LD_SCSI_IO   0x03

Definition at line 136 of file megaraid_sas.h.

#define MFI_CMD_LD_WRITE   0x02

Definition at line 135 of file megaraid_sas.h.

#define MFI_CMD_PD_SCSI_IO   0x04

Definition at line 137 of file megaraid_sas.h.

#define MFI_CMD_SMP   0x07

Definition at line 140 of file megaraid_sas.h.

#define MFI_CMD_STATUS_POLL_MODE   0xFF

Definition at line 128 of file megaraid_sas.h.

#define MFI_CMD_STP   0x08

Definition at line 141 of file megaraid_sas.h.

#define MFI_FRAME_DIR_BOTH   0x0018

Definition at line 122 of file megaraid_sas.h.

#define MFI_FRAME_DIR_NONE   0x0000

Definition at line 119 of file megaraid_sas.h.

#define MFI_FRAME_DIR_READ   0x0010

Definition at line 121 of file megaraid_sas.h.

#define MFI_FRAME_DIR_WRITE   0x0008

Definition at line 120 of file megaraid_sas.h.

#define MFI_FRAME_DONT_POST_IN_REPLY_QUEUE   0x0001

Definition at line 114 of file megaraid_sas.h.

#define MFI_FRAME_IEEE   0x0020

Definition at line 123 of file megaraid_sas.h.

#define MFI_FRAME_POST_IN_REPLY_QUEUE   0x0000

Definition at line 113 of file megaraid_sas.h.

#define MFI_FRAME_SENSE32   0x0000

Definition at line 117 of file megaraid_sas.h.

#define MFI_FRAME_SENSE64   0x0004

Definition at line 118 of file megaraid_sas.h.

#define MFI_FRAME_SGL32   0x0000

Definition at line 115 of file megaraid_sas.h.

#define MFI_FRAME_SGL64   0x0002

Definition at line 116 of file megaraid_sas.h.

#define MFI_G2_OUTBOUND_DOORBELL_CHANGE_INTERRUPT   0x00000004

Definition at line 773 of file megaraid_sas.h.

#define MFI_GEN2_ENABLE_INTERRUPT_MASK   (0x00000001 | 0x00000004)

Definition at line 780 of file megaraid_sas.h.

#define MFI_INIT_ABORT   0x00000001

Definition at line 100 of file megaraid_sas.h.

#define MFI_INIT_CLEAR_HANDSHAKE   0x00000008

Definition at line 103 of file megaraid_sas.h.

#define MFI_INIT_HOTPLUG   0x00000010

Definition at line 104 of file megaraid_sas.h.

#define MFI_INIT_MFIMODE   0x00000004

Definition at line 102 of file megaraid_sas.h.

#define MFI_INIT_READY   0x00000002

Definition at line 101 of file megaraid_sas.h.

#define MFI_INTR_FLAG_FIRMWARE_STATE_CHANGE   0x00000002

Definition at line 772 of file megaraid_sas.h.

#define MFI_INTR_FLAG_REPLY_MESSAGE   0x00000001

Definition at line 771 of file megaraid_sas.h.

#define MFI_MBOX_SIZE   12

Definition at line 234 of file megaraid_sas.h.

#define MFI_OB_INTR_STATUS_MASK   0x00000002

Definition at line 775 of file megaraid_sas.h.

#define MFI_POLL_TIMEOUT_SECS   60

Definition at line 776 of file megaraid_sas.h.

#define MFI_REPLY_1078_MESSAGE_INTERRUPT   0x80000000

Definition at line 778 of file megaraid_sas.h.

#define MFI_REPLY_GEN2_MESSAGE_INTERRUPT   0x00000001

Definition at line 779 of file megaraid_sas.h.

#define MFI_REPLY_SKINNY_MESSAGE_INTERRUPT   0x40000000

Definition at line 781 of file megaraid_sas.h.

#define MFI_RESET_ADAPTER   0x00000002

Definition at line 81 of file megaraid_sas.h.

#define MFI_RESET_FLAGS
Value:
MFI_INIT_MFIMODE| \
MFI_INIT_ABORT

Definition at line 106 of file megaraid_sas.h.

#define MFI_RESET_REQUIRED   0x00000001

Definition at line 80 of file megaraid_sas.h.

#define MFI_SKINNY_ENABLE_INTERRUPT_MASK   (0x00000001)

Definition at line 782 of file megaraid_sas.h.

#define MFI_STATE_BB_INIT   0x10000000

Definition at line 70 of file megaraid_sas.h.

#define MFI_STATE_BOOT_MESSAGE_PENDING   0x90000000

Definition at line 75 of file megaraid_sas.h.

#define MFI_STATE_DEVICE_SCAN   0x80000000

Definition at line 74 of file megaraid_sas.h.

#define MFI_STATE_FAULT   0xF0000000

Definition at line 79 of file megaraid_sas.h.

#define MFI_STATE_FLUSH_CACHE   0xA0000000

Definition at line 76 of file megaraid_sas.h.

#define MFI_STATE_FW_INIT   0x40000000

Definition at line 71 of file megaraid_sas.h.

#define MFI_STATE_FW_INIT_2   0x70000000

Definition at line 73 of file megaraid_sas.h.

#define MFI_STATE_MASK   0xF0000000

Definition at line 68 of file megaraid_sas.h.

#define MFI_STATE_OPERATIONAL   0xC0000000

Definition at line 78 of file megaraid_sas.h.

#define MFI_STATE_READY   0xB0000000

Definition at line 77 of file megaraid_sas.h.

#define MFI_STATE_UNDEFINED   0x00000000

Definition at line 69 of file megaraid_sas.h.

#define MFI_STATE_WAIT_HANDSHAKE   0x60000000

Definition at line 72 of file megaraid_sas.h.

#define MFI_STOP_ADP   0x00000020

Definition at line 105 of file megaraid_sas.h.

#define MFI_XSCALE_OMR0_CHANGE_INTERRUPT   0x00000001

Definition at line 769 of file megaraid_sas.h.

#define MR_DCMD_CLUSTER   0x08000000

Definition at line 160 of file megaraid_sas.h.

#define MR_DCMD_CLUSTER_RESET_ALL   0x08010100

Definition at line 161 of file megaraid_sas.h.

#define MR_DCMD_CLUSTER_RESET_LD   0x08010200

Definition at line 162 of file megaraid_sas.h.

#define MR_DCMD_CTRL_CACHE_FLUSH   0x01101000

Definition at line 147 of file megaraid_sas.h.

#define MR_DCMD_CTRL_EVENT_GET   0x01040300

Definition at line 156 of file megaraid_sas.h.

#define MR_DCMD_CTRL_EVENT_GET_INFO   0x01040100

Definition at line 155 of file megaraid_sas.h.

#define MR_DCMD_CTRL_EVENT_WAIT   0x01040500

Definition at line 157 of file megaraid_sas.h.

#define MR_DCMD_CTRL_GET_INFO   0x01010000

Definition at line 144 of file megaraid_sas.h.

#define MR_DCMD_CTRL_SHUTDOWN   0x01050000

Definition at line 151 of file megaraid_sas.h.

#define MR_DCMD_HIBERNATE_SHUTDOWN   0x01060000

Definition at line 152 of file megaraid_sas.h.

#define MR_DCMD_LD_GET_LIST   0x03010000

Definition at line 145 of file megaraid_sas.h.

#define MR_DCMD_LD_GET_PROPERTIES   0x03030000

Definition at line 158 of file megaraid_sas.h.

#define MR_DCMD_PD_LIST_QUERY   0x02010100

Definition at line 163 of file megaraid_sas.h.

#define MR_ENABLE_DRIVE_SPINDOWN   0x01

Definition at line 153 of file megaraid_sas.h.

#define MR_EVT_CFG_CLEARED   0x0004

Definition at line 315 of file megaraid_sas.h.

#define MR_EVT_CTRL_HOST_BUS_SCAN_REQUESTED   0x0152

Definition at line 323 of file megaraid_sas.h.

#define MR_EVT_FOREIGN_CFG_IMPORTED   0x00db

Definition at line 321 of file megaraid_sas.h.

#define MR_EVT_LD_CREATED   0x008a

Definition at line 319 of file megaraid_sas.h.

#define MR_EVT_LD_DELETED   0x008b

Definition at line 320 of file megaraid_sas.h.

#define MR_EVT_LD_OFFLINE   0x00fc

Definition at line 322 of file megaraid_sas.h.

#define MR_EVT_LD_STATE_CHANGE   0x0051

Definition at line 316 of file megaraid_sas.h.

#define MR_EVT_PD_INSERTED   0x005b

Definition at line 317 of file megaraid_sas.h.

#define MR_EVT_PD_REMOVED   0x0070

Definition at line 318 of file megaraid_sas.h.

#define MR_FLUSH_CTRL_CACHE   0x01

Definition at line 148 of file megaraid_sas.h.

#define MR_FLUSH_DISK_CACHE   0x02

Definition at line 149 of file megaraid_sas.h.

#define msi_control_reg (   base)    (base + PCI_MSI_FLAGS)

Definition at line 1491 of file megaraid_sas.h.

#define PCI_DEVICE_ID_LSI_FUSION   0x005b

Definition at line 50 of file megaraid_sas.h.

#define PCI_DEVICE_ID_LSI_INVADER   0x005d

Definition at line 51 of file megaraid_sas.h.

#define PCI_DEVICE_ID_LSI_SAS0071SKINNY   0x0071

Definition at line 49 of file megaraid_sas.h.

#define PCI_DEVICE_ID_LSI_SAS0073SKINNY   0x0073

Definition at line 48 of file megaraid_sas.h.

#define PCI_DEVICE_ID_LSI_SAS0079GEN2   0x0079

Definition at line 47 of file megaraid_sas.h.

#define PCI_DEVICE_ID_LSI_SAS1078DE   0x007C

Definition at line 44 of file megaraid_sas.h.

#define PCI_DEVICE_ID_LSI_SAS1078GEN2   0x0078

Definition at line 46 of file megaraid_sas.h.

#define PCI_DEVICE_ID_LSI_SAS1078R   0x0060

Definition at line 43 of file megaraid_sas.h.

#define PCI_DEVICE_ID_LSI_VERDE_ZCR   0x0413

Definition at line 45 of file megaraid_sas.h.

#define PCI_MSIX_FLAGS_ENABLE   (1 << 15)

Definition at line 1492 of file megaraid_sas.h.

#define PTHRU_FRAME   1

Definition at line 736 of file megaraid_sas.h.

#define WRITE_SEQUENCE_OFFSET   (0x0000000FC) /* I20 */

Definition at line 94 of file megaraid_sas.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
MEGASAS_HBA_OPERATIONAL 
MEGASAS_ADPRESET_SM_INFAULT 
MEGASAS_ADPRESET_SM_FW_RESET_SUCCESS 
MEGASAS_ADPRESET_SM_OPERATIONAL 
MEGASAS_HW_CRITICAL_ERROR 
MEGASAS_ADPRESET_INPROG_SIGN 

Definition at line 1371 of file megaraid_sas.h.

enum MFI_STAT
Enumerator:
MFI_STAT_OK 
MFI_STAT_INVALID_CMD 
MFI_STAT_INVALID_DCMD 
MFI_STAT_INVALID_PARAMETER 
MFI_STAT_INVALID_SEQUENCE_NUMBER 
MFI_STAT_ABORT_NOT_POSSIBLE 
MFI_STAT_APP_HOST_CODE_NOT_FOUND 
MFI_STAT_APP_IN_USE 
MFI_STAT_APP_NOT_INITIALIZED 
MFI_STAT_ARRAY_INDEX_INVALID 
MFI_STAT_ARRAY_ROW_NOT_EMPTY 
MFI_STAT_CONFIG_RESOURCE_CONFLICT 
MFI_STAT_DEVICE_NOT_FOUND 
MFI_STAT_DRIVE_TOO_SMALL 
MFI_STAT_FLASH_ALLOC_FAIL 
MFI_STAT_FLASH_BUSY 
MFI_STAT_FLASH_ERROR 
MFI_STAT_FLASH_IMAGE_BAD 
MFI_STAT_FLASH_IMAGE_INCOMPLETE 
MFI_STAT_FLASH_NOT_OPEN 
MFI_STAT_FLASH_NOT_STARTED 
MFI_STAT_FLUSH_FAILED 
MFI_STAT_HOST_CODE_NOT_FOUNT 
MFI_STAT_LD_CC_IN_PROGRESS 
MFI_STAT_LD_INIT_IN_PROGRESS 
MFI_STAT_LD_LBA_OUT_OF_RANGE 
MFI_STAT_LD_MAX_CONFIGURED 
MFI_STAT_LD_NOT_OPTIMAL 
MFI_STAT_LD_RBLD_IN_PROGRESS 
MFI_STAT_LD_RECON_IN_PROGRESS 
MFI_STAT_LD_WRONG_RAID_LEVEL 
MFI_STAT_MAX_SPARES_EXCEEDED 
MFI_STAT_MEMORY_NOT_AVAILABLE 
MFI_STAT_MFC_HW_ERROR 
MFI_STAT_NO_HW_PRESENT 
MFI_STAT_NOT_FOUND 
MFI_STAT_NOT_IN_ENCL 
MFI_STAT_PD_CLEAR_IN_PROGRESS 
MFI_STAT_PD_TYPE_WRONG 
MFI_STAT_PR_DISABLED 
MFI_STAT_ROW_INDEX_INVALID 
MFI_STAT_SAS_CONFIG_INVALID_ACTION 
MFI_STAT_SAS_CONFIG_INVALID_DATA 
MFI_STAT_SAS_CONFIG_INVALID_PAGE 
MFI_STAT_SAS_CONFIG_INVALID_TYPE 
MFI_STAT_SCSI_DONE_WITH_ERROR 
MFI_STAT_SCSI_IO_FAILED 
MFI_STAT_SCSI_RESERVATION_CONFLICT 
MFI_STAT_SHUTDOWN_FAILED 
MFI_STAT_TIME_NOT_SET 
MFI_STAT_WRONG_STATE 
MFI_STAT_LD_OFFLINE 
MFI_STAT_PEER_NOTIFICATION_REJECTED 
MFI_STAT_PEER_NOTIFICATION_FAILED 
MFI_STAT_RESERVATION_IN_PROGRESS 
MFI_STAT_I2C_ERRORS_DETECTED 
MFI_STAT_PCI_ERRORS_DETECTED 
MFI_STAT_CONFIG_SEQ_MISMATCH 
MFI_STAT_INVALID_STATUS 

Definition at line 168 of file megaraid_sas.h.

Enumerator:
MR_EVT_ARGS_NONE 
MR_EVT_ARGS_CDB_SENSE 
MR_EVT_ARGS_LD 
MR_EVT_ARGS_LD_COUNT 
MR_EVT_ARGS_LD_LBA 
MR_EVT_ARGS_LD_OWNER 
MR_EVT_ARGS_LD_LBA_PD_LBA 
MR_EVT_ARGS_LD_PROG 
MR_EVT_ARGS_LD_STATE 
MR_EVT_ARGS_LD_STRIP 
MR_EVT_ARGS_PD 
MR_EVT_ARGS_PD_ERR 
MR_EVT_ARGS_PD_LBA 
MR_EVT_ARGS_PD_LBA_LD 
MR_EVT_ARGS_PD_PROG 
MR_EVT_ARGS_PD_STATE 
MR_EVT_ARGS_PCI 
MR_EVT_ARGS_RATE 
MR_EVT_ARGS_STR 
MR_EVT_ARGS_TIME 
MR_EVT_ARGS_ECC 
MR_EVT_ARGS_LD_PROP 
MR_EVT_ARGS_PD_SPARE 
MR_EVT_ARGS_PD_INDEX 
MR_EVT_ARGS_DIAG_PASS 
MR_EVT_ARGS_DIAG_FAIL 
MR_EVT_ARGS_PD_LBA_LBA 
MR_EVT_ARGS_PORT_PHY 
MR_EVT_ARGS_PD_MISSING 
MR_EVT_ARGS_PD_ADDRESS 
MR_EVT_ARGS_BITMAP 
MR_EVT_ARGS_CONNECTOR 
MR_EVT_ARGS_PD_PD 
MR_EVT_ARGS_PD_FRU 
MR_EVT_ARGS_PD_PATHINFO 
MR_EVT_ARGS_PD_POWER_STATE 
MR_EVT_ARGS_GENERIC 

Definition at line 262 of file megaraid_sas.h.

Enumerator:
MR_EVT_CLASS_DEBUG 
MR_EVT_CLASS_PROGRESS 
MR_EVT_CLASS_INFO 
MR_EVT_CLASS_WARNING 
MR_EVT_CLASS_CRITICAL 
MR_EVT_CLASS_FATAL 
MR_EVT_CLASS_DEAD 

Definition at line 236 of file megaraid_sas.h.

Enumerator:
MR_EVT_LOCALE_LD 
MR_EVT_LOCALE_PD 
MR_EVT_LOCALE_ENCL 
MR_EVT_LOCALE_BBU 
MR_EVT_LOCALE_SAS 
MR_EVT_LOCALE_CTRL 
MR_EVT_LOCALE_CONFIG 
MR_EVT_LOCALE_CLUSTER 
MR_EVT_LOCALE_ALL 

Definition at line 248 of file megaraid_sas.h.

Enumerator:
MR_PD_QUERY_TYPE_ALL 
MR_PD_QUERY_TYPE_STATE 
MR_PD_QUERY_TYPE_POWER_STATE 
MR_PD_QUERY_TYPE_MEDIA_TYPE 
MR_PD_QUERY_TYPE_SPEED 
MR_PD_QUERY_TYPE_EXPOSED_TO_HOST 

Definition at line 306 of file megaraid_sas.h.

Enumerator:
MR_PD_STATE_UNCONFIGURED_GOOD 
MR_PD_STATE_UNCONFIGURED_BAD 
MR_PD_STATE_HOT_SPARE 
MR_PD_STATE_OFFLINE 
MR_PD_STATE_FAILED 
MR_PD_STATE_REBUILD 
MR_PD_STATE_ONLINE 
MR_PD_STATE_COPYBACK 
MR_PD_STATE_SYSTEM 

Definition at line 326 of file megaraid_sas.h.

Function Documentation

mcontroller : adapter info structure for old mimd_t apps

: base address : irq number : number of logical drives : pci bus : pci device : pci function : pci id : vendor id : slot number : unique id

Definition at line 171 of file esd_usb2.c.

Variable Documentation

u16 __pad1

Definition at line 1457 of file megaraid_sas.h.

u32 abort_context

Definition at line 1058 of file megaraid_sas.h.

u32 abort_mfi_phys_addr_hi

Definition at line 1062 of file megaraid_sas.h.

u32 abort_mfi_phys_addr_lo

Definition at line 1061 of file megaraid_sas.h.

u8 access_byte

Definition at line 970 of file megaraid_sas.h.

u32 access_policy

Definition at line 664 of file megaraid_sas.h.

Definition at line 571 of file megaraid_sas.h.

u32 alarm_control

Definition at line 655 of file megaraid_sas.h.

u32 allow_mix_in_encl

Definition at line 691 of file megaraid_sas.h.

u32 allow_mix_in_ld

Definition at line 692 of file megaraid_sas.h.

u32 allow_sata_in_cluster

Definition at line 693 of file megaraid_sas.h.

u8 arg_type

Definition at line 1282 of file megaraid_sas.h.

Definition at line 332 of file kernel.h.

u8 b[96]

Definition at line 1034 of file megaraid_sas.h.

u32 bbu

Definition at line 570 of file megaraid_sas.h.

u32 bgi_rate

Definition at line 652 of file megaraid_sas.h.

u32 boot_seq_num

Definition at line 1139 of file megaraid_sas.h.

char build_date

Definition at line 533 of file megaraid_sas.h.

char build_time[16]

Definition at line 551 of file megaraid_sas.h.

char built_time[16]

Definition at line 534 of file megaraid_sas.h.

u32 cc_rate

Definition at line 651 of file megaraid_sas.h.

u8 cdb[16]

Definition at line 1011 of file megaraid_sas.h.

u8 cdb_len

Definition at line 896 of file megaraid_sas.h.

u8 cdb_length

Definition at line 1177 of file megaraid_sas.h.

Definition at line 1281 of file megaraid_sas.h.

Definition at line 1124 of file megaraid_sas.h.

u32 class_locale_word

Definition at line 1465 of file megaraid_sas.h.

u32 clear_seq_num

Definition at line 1137 of file megaraid_sas.h.

u32 cluster_supported

Definition at line 656 of file megaraid_sas.h.

Definition at line 889 of file megaraid_sas.h.

u8 cmd_status

Definition at line 891 of file megaraid_sas.h.

Definition at line 1280 of file megaraid_sas.h.

u8 connection_status

Definition at line 1073 of file megaraid_sas.h.

u32 consumer_index_phys_addr_hi

Definition at line 943 of file megaraid_sas.h.

u32 consumer_index_phys_addr_lo

Definition at line 942 of file megaraid_sas.h.

Definition at line 899 of file megaraid_sas.h.

u64 count

Definition at line 1184 of file megaraid_sas.h.

u32 ctrl_supports_sas

Definition at line 689 of file megaraid_sas.h.

u32 ctrl_supports_sata

Definition at line 690 of file megaraid_sas.h.

u64 d[12]

Definition at line 1389 of file megaraid_sas.h.

u32 data_xfer_len

Definition at line 933 of file megaraid_sas.h.

u32 data_xferlen

Definition at line 904 of file megaraid_sas.h.

u32 dedicated_hotspares

Definition at line 659 of file megaraid_sas.h.

char description[128]

Definition at line 1392 of file megaraid_sas.h.

u16 device_id

Definition at line 485 of file megaraid_sas.h.

u16 deviceId

Definition at line 1254 of file megaraid_sas.h.

u32 disk_cache_policy

Definition at line 665 of file megaraid_sas.h.

Definition at line 839 of file megaraid_sas.h.

u32 ecar

Definition at line 1267 of file megaraid_sas.h.

u16 elapsed_seconds

Definition at line 1144 of file megaraid_sas.h.

u32 elapsedSeconds

Definition at line 1262 of file megaraid_sas.h.

u32 elog

Definition at line 1268 of file megaraid_sas.h.

u8 encl_index

Definition at line 1158 of file megaraid_sas.h.

u32 err

Definition at line 1225 of file megaraid_sas.h.

u16 fis[10]

Definition at line 1116 of file megaraid_sas.h.

u16 flags

Definition at line 902 of file megaraid_sas.h.

u32 force_offline

Definition at line 679 of file megaraid_sas.h.

u32 force_online

Definition at line 678 of file megaraid_sas.h.

u32 force_rebuild

Definition at line 680 of file megaraid_sas.h.

u32 foreign_config_import

Definition at line 661 of file megaraid_sas.h.

union { ... } frame
u32 fusion_host_diag

Definition at line 841 of file megaraid_sas.h.

u32 fusion_seq_offset

Definition at line 840 of file megaraid_sas.h.

u32 global_hot_spares

Definition at line 664 of file megaraid_sas.h.

Definition at line 1464 of file megaraid_sas.h.

u32 host_diag

Definition at line 881 of file megaraid_sas.h.

u16 host_no

Definition at line 1456 of file megaraid_sas.h.

u32 inbound_doorbell

Definition at line 849 of file megaraid_sas.h.

u32 inbound_high_queue_port

Definition at line 877 of file megaraid_sas.h.

u32 inbound_intr_mask

Definition at line 851 of file megaraid_sas.h.

u32 inbound_intr_status

Definition at line 850 of file megaraid_sas.h.

u32 inbound_low_queue_port

Definition at line 875 of file megaraid_sas.h.

u32 inbound_msg_0

Definition at line 844 of file megaraid_sas.h.

u32 inbound_msg_1

Definition at line 845 of file megaraid_sas.h.

u32 inbound_queue_port

Definition at line 859 of file megaraid_sas.h.

u32 index_registers[807]

Definition at line 883 of file megaraid_sas.h.

u32 init_flags

Definition at line 935 of file megaraid_sas.h.

u32 io_policy

Definition at line 663 of file megaraid_sas.h.

u8 iSCSI

Definition at line 502 of file megaraid_sas.h.

u64 lba

Definition at line 1188 of file megaraid_sas.h.

u32 lba_count

Definition at line 979 of file megaraid_sas.h.

Definition at line 1183 of file megaraid_sas.h.

u8 ld_index

Definition at line 1152 of file megaraid_sas.h.

u64 ld_lba

Definition at line 1201 of file megaraid_sas.h.

u32 length

Definition at line 848 of file megaraid_sas.h.

u16 locale

Definition at line 1122 of file megaraid_sas.h.

u8 lun

Definition at line 895 of file megaraid_sas.h.

u8 max

Definition at line 670 of file megaraid_sas.h.

union { ... } mbox
u8 min

Definition at line 669 of file megaraid_sas.h.

u32 mixed_redundancy_arr

Definition at line 663 of file megaraid_sas.h.

char name[8]

Definition at line 531 of file megaraid_sas.h.

u32 new_state

Definition at line 1214 of file megaraid_sas.h.

u32 newest_seq_num

Definition at line 1135 of file megaraid_sas.h.

u32 newOwner

Definition at line 1196 of file megaraid_sas.h.

u32 newState

Definition at line 1248 of file megaraid_sas.h.

Definition at line 572 of file megaraid_sas.h.

u32 oldest_seq_num

Definition at line 1136 of file megaraid_sas.h.

Definition at line 1031 of file megaraid_sas.h.

u32 outbound_doorbell

Definition at line 853 of file megaraid_sas.h.

u32 outbound_doorbell_clear

Definition at line 866 of file megaraid_sas.h.

u32 outbound_intr_mask

Definition at line 855 of file megaraid_sas.h.

u32 outbound_intr_status

Definition at line 854 of file megaraid_sas.h.

u32 outbound_msg_0

Definition at line 846 of file megaraid_sas.h.

u32 outbound_msg_1

Definition at line 847 of file megaraid_sas.h.

u32 outbound_queue_port

Definition at line 860 of file megaraid_sas.h.

u32 outbound_scratch_pad

Definition at line 870 of file megaraid_sas.h.

u32 outbound_scratch_pad_2

Definition at line 871 of file megaraid_sas.h.

u32 pad_0

Definition at line 900 of file megaraid_sas.h.

u32 pad_1

Definition at line 1059 of file megaraid_sas.h.

u32 patrol_rate

Definition at line 654 of file megaraid_sas.h.

u8 PCIE

Definition at line 501 of file megaraid_sas.h.

u8 PCIX

Definition at line 500 of file megaraid_sas.h.

Definition at line 1176 of file megaraid_sas.h.

u64 pd_lba

Definition at line 1202 of file megaraid_sas.h.

Definition at line 847 of file megaraid_sas.h.

u64 port_addr

Definition at line 507 of file megaraid_sas.h.

u8 port_count

Definition at line 506 of file megaraid_sas.h.

u32 prev_state

Definition at line 1213 of file megaraid_sas.h.

u32 prevOwner

Definition at line 1195 of file megaraid_sas.h.

u32 prevState

Definition at line 1247 of file megaraid_sas.h.

u32 producer_index_phys_addr_hi

Definition at line 941 of file megaraid_sas.h.

u32 producer_index_phys_addr_lo

Definition at line 940 of file megaraid_sas.h.

Definition at line 1207 of file megaraid_sas.h.

u16 progress

Definition at line 1143 of file megaraid_sas.h.

u32 queue_info_new_phys_addr_hi

Definition at line 936 of file megaraid_sas.h.

u32 queue_info_new_phys_addr_lo

Definition at line 935 of file megaraid_sas.h.

u32 queue_info_old_phys_addr_hi

Definition at line 938 of file megaraid_sas.h.

u32 queue_info_old_phys_addr_lo

Definition at line 937 of file megaraid_sas.h.

u32 raid_level_0

Definition at line 629 of file megaraid_sas.h.

u32 raid_level_1

Definition at line 630 of file megaraid_sas.h.

u32 raid_level_1E

Definition at line 632 of file megaraid_sas.h.

u32 raid_level_5

Definition at line 631 of file megaraid_sas.h.

u32 raid_level_6

Definition at line 633 of file megaraid_sas.h.

u32 rate

Definition at line 1372 of file megaraid_sas.h.

u8 raw[128]

Definition at line 1463 of file megaraid_sas.h.

u32 rbld_rate

Definition at line 650 of file megaraid_sas.h.

u32 read_policy

Definition at line 661 of file megaraid_sas.h.

u32 recon_rate

Definition at line 653 of file megaraid_sas.h.

u32 reply_post_host_index

Definition at line 863 of file megaraid_sas.h.

u32 reply_queue_entries

Definition at line 936 of file megaraid_sas.h.

u32 reply_queue_start_phys_addr_hi

Definition at line 939 of file megaraid_sas.h.

u32 reply_queue_start_phys_addr_lo

Definition at line 938 of file megaraid_sas.h.

u32 res_6[11]

Definition at line 880 of file megaraid_sas.h.

u8 reserved[2]

Definition at line 488 of file megaraid_sas.h.

u8 reserved1[15]

Definition at line 1283 of file megaraid_sas.h.

u8 reserved_0

Definition at line 504 of file megaraid_sas.h.

u32 reserved_01

Definition at line 842 of file megaraid_sas.h.

u8 reserved_1

Definition at line 505 of file megaraid_sas.h.

u8 reserved_2

Definition at line 862 of file megaraid_sas.h.

u32 reserved_2_2[12]

Definition at line 864 of file megaraid_sas.h.

u8 reserved_3[2]

Definition at line 868 of file megaraid_sas.h.

u32 reserved_4

Definition at line 873 of file megaraid_sas.h.

u32 reserved_5[6]

Definition at line 879 of file megaraid_sas.h.

u32 revertible_hotspares

Definition at line 660 of file megaraid_sas.h.

u32 rtc

Definition at line 1261 of file megaraid_sas.h.

u16 s[48]

Definition at line 1035 of file megaraid_sas.h.

u8 SAS_3G

Definition at line 503 of file megaraid_sas.h.

u64 sas_addr

Definition at line 1085 of file megaraid_sas.h.

u8 SATA_1_5G

Definition at line 518 of file megaraid_sas.h.

u8 SATA_3G

Definition at line 519 of file megaraid_sas.h.

u8 scsi_status

Definition at line 892 of file megaraid_sas.h.

u32 self_diagnostic

Definition at line 662 of file megaraid_sas.h.

u8 sense[64]

Definition at line 1181 of file megaraid_sas.h.

u32 sense_buf_phys_addr_hi

Definition at line 982 of file megaraid_sas.h.

u32 sense_buf_phys_addr_lo

Definition at line 981 of file megaraid_sas.h.

u32 sense_len

Definition at line 890 of file megaraid_sas.h.

u8 sense_length

Definition at line 1178 of file megaraid_sas.h.

u32 sense_off

Definition at line 1460 of file megaraid_sas.h.

u32 seq_num

Definition at line 1278 of file megaraid_sas.h.

u32 seq_offset

Definition at line 882 of file megaraid_sas.h.

Definition at line 868 of file megaraid_sas.h.

Definition at line 869 of file megaraid_sas.h.

u32 sge_count

Definition at line 897 of file megaraid_sas.h.

struct megasas_sge_skinny sge_skinny[1]

Definition at line 870 of file megaraid_sas.h.

Definition at line 987 of file megaraid_sas.h.

u32 sgl_off

Definition at line 1458 of file megaraid_sas.h.

u32 shutdown_seq_num

Definition at line 1138 of file megaraid_sas.h.

u8 slot_number

Definition at line 1159 of file megaraid_sas.h.

u32 spanning_allowed

Definition at line 658 of file megaraid_sas.h.

Definition at line 516 of file megaraid_sas.h.

u32 start_lba_hi

Definition at line 985 of file megaraid_sas.h.

u32 start_lba_lo

Definition at line 984 of file megaraid_sas.h.

u32 stp_flags

Definition at line 1117 of file megaraid_sas.h.

char str[64]

Definition at line 1269 of file megaraid_sas.h.

u64 strip

Definition at line 1217 of file megaraid_sas.h.

u16 sub_device_id

Definition at line 487 of file megaraid_sas.h.

u16 sub_vendor_id

Definition at line 486 of file megaraid_sas.h.

u16 subDeviceId

Definition at line 1256 of file megaraid_sas.h.

u16 subVendorId

Definition at line 1255 of file megaraid_sas.h.

u16 target_id

Definition at line 894 of file megaraid_sas.h.

u32 time_stamp

Definition at line 1279 of file megaraid_sas.h.

u16 timeout

Definition at line 903 of file megaraid_sas.h.

Definition at line 573 of file megaraid_sas.h.

u16 vendor_id

Definition at line 484 of file megaraid_sas.h.

u16 vendorId

Definition at line 1253 of file megaraid_sas.h.

char version[32]

Definition at line 532 of file megaraid_sas.h.

u32 w[24]

Definition at line 1036 of file megaraid_sas.h.

Definition at line 1133 of file megaraid_sas.h.

u32 write_policy

Definition at line 662 of file megaraid_sas.h.