Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
pmcraid.h File Reference
#include <linux/types.h>
#include <linux/completion.h>
#include <linux/list.h>
#include <scsi/scsi.h>
#include <scsi/scsi_cmnd.h>
#include <linux/cdev.h>
#include <net/netlink.h>
#include <net/genetlink.h>
#include <linux/connector.h>

Go to the source code of this file.

Data Structures

struct  pmcraid_ioadl_desc
 
struct  pmcraid_ioarcb_add_data
 
struct  pmcraid_ioarcb
 
struct  pmcraid_ioasa_vset
 
struct  pmcraid_ioasa
 
struct  pmcraid_config_table_entry
 
struct  pmcraid_config_table_entry_ext
 
struct  pmcraid_config_table
 
struct  pmcraid_hostrcb_error
 
struct  pmcraid_hcam_hdr
 
struct  pmcraid_hcam_ccn
 
struct  pmcraid_hcam_ccn_ext
 
struct  pmcraid_hcam_ldn
 
struct  pmcraid_chip_details
 
struct  pmcraid_control_block
 
struct  pmcraid_sglist
 
struct  pmcraid_inquiry_data
 
struct  pmcraid_timestamp_data
 
struct  pmcraid_cmd
 
struct  pmcraid_interrupts
 
struct  pmcraid_isr_param
 
struct  pmcraid_aen_msg
 
struct  pmcraid_state_msg
 
struct  pmcraid_hostrcb
 
struct  pmcraid_instance
 
struct  pmcraid_resource_entry
 
struct  pmcraid_ioasc_error
 
struct  pmcraid_ioctl_header
 
struct  pmcraid_passthrough_ioctl_buffer
 

Macros

#define PMCRAID_DRIVER_NAME   "PMC MaxRAID"
 
#define PMCRAID_DEVFILE   "pmcsas"
 
#define PMCRAID_DRIVER_VERSION   "1.0.3"
 
#define PMCRAID_FW_VERSION_1   0x002
 
#define PMCRAID_MAX_ADAPTERS   1024
 
#define PMC_BIT8(n)   (1 << (7-n))
 
#define PMC_BIT16(n)   (1 << (15-n))
 
#define PMC_BIT32(n)   (1 << (31-n))
 
#define PCI_VENDOR_ID_PMC   0x11F8
 
#define PCI_DEVICE_ID_PMC_MAXRAID   0x5220
 
#define PMCRAID_MAX_CMD   1024
 
#define PMCRAID_MAX_IO_CMD   1020
 
#define PMCRAID_MAX_HCAM_CMD   2
 
#define PMCRAID_MAX_INTERNAL_CMD   2
 
#define PMCRAID_IOADLS_INTERNAL   27
 
#define PMCRAID_IOADLS_EXTERNAL   37
 
#define PMCRAID_MAX_IOADLS   PMCRAID_IOADLS_INTERNAL
 
#define HRRQ_ENTRY_SIZE   sizeof(__le32)
 
#define PMCRAID_IOARCB_ALIGNMENT   32
 
#define PMCRAID_IOADL_ALIGNMENT   16
 
#define PMCRAID_IOASA_ALIGNMENT   4
 
#define PMCRAID_NUM_MSIX_VECTORS   16
 
#define PMCRAID_VENDOR_ID_LEN   8
 
#define PMCRAID_PRODUCT_ID_LEN   16
 
#define PMCRAID_SERIAL_NUM_LEN   8
 
#define PMCRAID_LUN_LEN   8
 
#define PMCRAID_MAX_CDB_LEN   16
 
#define PMCRAID_DEVICE_ID_LEN   8
 
#define PMCRAID_SENSE_DATA_LEN   256
 
#define PMCRAID_ADD_CMD_PARAM_LEN   48
 
#define PMCRAID_MAX_BUS_TO_SCAN   1
 
#define PMCRAID_MAX_NUM_TARGETS_PER_BUS   256
 
#define PMCRAID_MAX_NUM_LUNS_PER_TARGET   8
 
#define PMCRAID_IOA_BUS_ID   0xfe
 
#define PMCRAID_IOA_TARGET_ID   0xff
 
#define PMCRAID_IOA_LUN_ID   0xff
 
#define PMCRAID_VSET_BUS_ID   0x1
 
#define PMCRAID_VSET_LUN_ID   0x0
 
#define PMCRAID_PHYS_BUS_ID   0x0
 
#define PMCRAID_VIRTUAL_ENCL_BUS_ID   0x8
 
#define PMCRAID_MAX_VSET_TARGETS   0x7F
 
#define PMCRAID_MAX_VSET_LUNS_PER_TARGET   8
 
#define PMCRAID_IOA_MAX_SECTORS   32767
 
#define PMCRAID_VSET_MAX_SECTORS   512
 
#define PMCRAID_MAX_CMD_PER_LUN   254
 
#define PMCRAID_MAX_RESOURCES   256
 
#define PMCRAID_QUERY_RESOURCE_STATE   0xC2
 
#define PMCRAID_RESET_DEVICE   0xC3
 
#define ENABLE_RESET_MODIFIER   0x80
 
#define RESET_DEVICE_LUN   0x40
 
#define RESET_DEVICE_TARGET   0x20
 
#define RESET_DEVICE_BUS   0x10
 
#define PMCRAID_IDENTIFY_HRRQ   0xC4
 
#define PMCRAID_QUERY_IOA_CONFIG   0xC5
 
#define PMCRAID_QUERY_CMD_STATUS   0xCB
 
#define PMCRAID_ABORT_CMD   0xC7
 
#define PMCRAID_CANCEL_ALL_REQUESTS   0xCE
 
#define PMCRAID_SYNC_COMPLETE_AFTER_CANCEL   PMC_BIT8(0)
 
#define PMCRAID_HOST_CONTROLLED_ASYNC   0xCF
 
#define PMCRAID_HCAM_CODE_CONFIG_CHANGE   0x01
 
#define PMCRAID_HCAM_CODE_LOG_DATA   0x02
 
#define PMCRAID_IOA_SHUTDOWN   0xF7
 
#define PMCRAID_SHUTDOWN_NORMAL   0x00
 
#define PMCRAID_SHUTDOWN_PREPARE_FOR_NORMAL   0x40
 
#define PMCRAID_SHUTDOWN_NONE   0x100
 
#define PMCRAID_SHUTDOWN_ABBREV   0x80
 
#define PMCRAID_SET_SUPPORTED_DEVICES   0xFB
 
#define ALL_DEVICES_SUPPORTED   PMC_BIT8(0)
 
#define PMCRAID_WR_BUF_DOWNLOAD_AND_SAVE   0x05
 
#define PMCRAID_IOASC_SENSE_MASK   0xFFFFFF00
 
#define PMCRAID_IOASC_SENSE_KEY(ioasc)   ((ioasc) >> 24)
 
#define PMCRAID_IOASC_SENSE_CODE(ioasc)   (((ioasc) & 0x00ff0000) >> 16)
 
#define PMCRAID_IOASC_SENSE_QUAL(ioasc)   (((ioasc) & 0x0000ff00) >> 8)
 
#define PMCRAID_IOASC_SENSE_STATUS(ioasc)   ((ioasc) & 0x000000ff)
 
#define PMCRAID_IOASC_GOOD_COMPLETION   0x00000000
 
#define PMCRAID_IOASC_GC_IOARCB_NOTFOUND   0x005A0000
 
#define PMCRAID_IOASC_NR_INIT_CMD_REQUIRED   0x02040200
 
#define PMCRAID_IOASC_NR_IOA_RESET_REQUIRED   0x02048000
 
#define PMCRAID_IOASC_NR_SYNC_REQUIRED   0x023F0000
 
#define PMCRAID_IOASC_ME_READ_ERROR_NO_REALLOC   0x03110C00
 
#define PMCRAID_IOASC_HW_CANNOT_COMMUNICATE   0x04050000
 
#define PMCRAID_IOASC_HW_DEVICE_TIMEOUT   0x04080100
 
#define PMCRAID_IOASC_HW_DEVICE_BUS_STATUS_ERROR   0x04448500
 
#define PMCRAID_IOASC_HW_IOA_RESET_REQUIRED   0x04448600
 
#define PMCRAID_IOASC_IR_INVALID_RESOURCE_HANDLE   0x05250000
 
#define PMCRAID_IOASC_AC_TERMINATED_BY_HOST   0x0B5A0000
 
#define PMCRAID_IOASC_UA_BUS_WAS_RESET   0x06290000
 
#define PMCRAID_IOASC_TIME_STAMP_OUT_OF_SYNC   0x06908B00
 
#define PMCRAID_IOASC_UA_BUS_WAS_RESET_BY_OTHER   0x06298000
 
#define PMCRAID_IOASC_IOA_WAS_RESET   0x10000001
 
#define PMCRAID_IOASC_PCI_ACCESS_ERROR   0x10000002
 
#define PMCRAID_PCI_DEASSERT_TIMEOUT   2000
 
#define PMCRAID_BIST_TIMEOUT   2000
 
#define PMCRAID_AENWAIT_TIMEOUT   5000
 
#define PMCRAID_TRANSOP_TIMEOUT   60000
 
#define PMCRAID_RESET_TIMEOUT   (2 * HZ)
 
#define PMCRAID_CHECK_FOR_RESET_TIMEOUT   ((HZ / 10))
 
#define PMCRAID_VSET_IO_TIMEOUT   (60 * HZ)
 
#define PMCRAID_INTERNAL_TIMEOUT   (60 * HZ)
 
#define PMCRAID_SHUTDOWN_TIMEOUT   (150 * HZ)
 
#define PMCRAID_RESET_BUS_TIMEOUT   (60 * HZ)
 
#define PMCRAID_RESET_HOST_TIMEOUT   (150 * HZ)
 
#define PMCRAID_REQUEST_SENSE_TIMEOUT   (30 * HZ)
 
#define PMCRAID_SET_SUP_DEV_TIMEOUT   (2 * 60 * HZ)
 
#define IOADL_FLAGS_CHAINED   PMC_BIT8(0)
 
#define IOADL_FLAGS_LAST_DESC   PMC_BIT8(1)
 
#define IOADL_FLAGS_READ_LAST   PMC_BIT8(1)
 
#define IOADL_FLAGS_WRITE_LAST   PMC_BIT8(1)
 
#define PMCRAID_IOA_RES_HANDLE   0xffffffff
 
#define PMCRAID_INVALID_RES_HANDLE   0
 
#define REQ_TYPE_SCSI   0x00
 
#define REQ_TYPE_IOACMD   0x01
 
#define REQ_TYPE_HCAM   0x02
 
#define TRANSFER_DIR_WRITE   PMC_BIT8(0)
 
#define INHIBIT_UL_CHECK   PMC_BIT8(2)
 
#define SYNC_OVERRIDE   PMC_BIT8(3)
 
#define SYNC_COMPLETE   PMC_BIT8(4)
 
#define NO_LINK_DESCS   PMC_BIT8(5)
 
#define DELAY_AFTER_RESET   PMC_BIT8(0)
 
#define TASK_TAG_SIMPLE   0x10
 
#define TASK_TAG_ORDERED   0x20
 
#define TASK_TAG_QUEUE_HEAD   0x30
 
#define HRRQ_TOGGLE_BIT   0x01
 
#define HRRQ_RESPONSE_BIT   0x02
 
#define PMCRAID_DRIVER_ILID   0xffffffff
 
#define RES_TYPE_AF_DASD   0x00
 
#define RES_TYPE_GSCSI   0x01
 
#define RES_TYPE_VSET   0x02
 
#define RES_TYPE_IOA_FP   0xFF
 
#define RES_IS_IOA(res)   ((res).resource_type == RES_TYPE_IOA_FP)
 
#define RES_IS_GSCSI(res)   ((res).resource_type == RES_TYPE_GSCSI)
 
#define RES_IS_VSET(res)   ((res).resource_type == RES_TYPE_VSET)
 
#define RES_IS_AFDASD(res)   ((res).resource_type == RES_TYPE_AF_DASD)
 
#define RES_TYPE_VENCLOSURE   0x8
 
#define MULTIPATH_RESOURCE   PMC_BIT32(0)
 
#define IMPORT_MODE_MANUAL   PMC_BIT8(0)
 
#define RES_HANDLE_IOA   0xFFFFFFFF
 
#define RES_HANDLE_NONE   0x00000000
 
#define RES_ADDRESS_IOAFP   0xFEFFFFFF
 
#define RES_ADDRESS_INVALID   0xFFFFFFFF
 
#define RES_BUS(res_addr)   (le32_to_cpu(res_addr) & 0xFF)
 
#define RES_TARGET(res_addr)   ((le32_to_cpu(res_addr) >> 16) & 0xFF)
 
#define RES_LUN(res_addr)   0x0
 
#define MICROCODE_UPDATE_REQUIRED   PMC_BIT32(0)
 
#define PMCRAID_HOSTRCB_LDNSIZE   4056
 
#define PMCRAID_AEN_GROUP   0x3
 
#define PMCRAID_CCN_EXT_SIZE   3944
 
#define HOSTRCB_TYPE_CCN   0xE1
 
#define HOSTRCB_TYPE_LDN   0xE2
 
#define NOTIFICATION_TYPE_ENTRY_CHANGED   0x0
 
#define NOTIFICATION_TYPE_ENTRY_NEW   0x1
 
#define NOTIFICATION_TYPE_ENTRY_DELETED   0x2
 
#define NOTIFICATION_TYPE_STATE_CHANGE   0x3
 
#define NOTIFICATION_TYPE_ENTRY_STATECHANGED   0x4
 
#define NOTIFICATION_TYPE_ERROR_LOG   0x10
 
#define NOTIFICATION_TYPE_INFORMATION_LOG   0x11
 
#define HOSTRCB_NOTIFICATIONS_LOST   PMC_BIT8(0)
 
#define HOSTRCB_INTERNAL_OP_ERROR   PMC_BIT8(0)
 
#define HOSTRCB_ERROR_RESPONSE_SENT   PMC_BIT8(1)
 
#define HOSTRCB_OVERLAY_ID_08   0x08
 
#define HOSTRCB_OVERLAY_ID_09   0x09
 
#define HOSTRCB_OVERLAY_ID_11   0x11
 
#define HOSTRCB_OVERLAY_ID_12   0x12
 
#define HOSTRCB_OVERLAY_ID_13   0x13
 
#define HOSTRCB_OVERLAY_ID_14   0x14
 
#define HOSTRCB_OVERLAY_ID_16   0x16
 
#define HOSTRCB_OVERLAY_ID_17   0x17
 
#define HOSTRCB_OVERLAY_ID_20   0x20
 
#define HOSTRCB_OVERLAY_ID_FF   0xFF
 
#define INTRS_TRANSITION_TO_OPERATIONAL   PMC_BIT32(0)
 
#define INTRS_IOARCB_TRANSFER_FAILED   PMC_BIT32(3)
 
#define INTRS_IOA_UNIT_CHECK   PMC_BIT32(4)
 
#define INTRS_NO_HRRQ_FOR_CMD_RESPONSE   PMC_BIT32(5)
 
#define INTRS_CRITICAL_OP_IN_PROGRESS   PMC_BIT32(6)
 
#define INTRS_IO_DEBUG_ACK   PMC_BIT32(7)
 
#define INTRS_IOARRIN_LOST   PMC_BIT32(27)
 
#define INTRS_SYSTEM_BUS_MMIO_ERROR   PMC_BIT32(28)
 
#define INTRS_IOA_PROCESSOR_ERROR   PMC_BIT32(29)
 
#define INTRS_HRRQ_VALID   PMC_BIT32(30)
 
#define INTRS_OPERATIONAL_STATUS   PMC_BIT32(0)
 
#define INTRS_ALLOW_MSIX_VECTOR0   PMC_BIT32(31)
 
#define DOORBELL_RUNTIME_RESET   PMC_BIT32(1)
 
#define DOORBELL_IOA_RESET_ALERT   PMC_BIT32(7)
 
#define DOORBELL_IOA_DEBUG_ALERT   PMC_BIT32(9)
 
#define DOORBELL_ENABLE_DESTRUCTIVE_DIAGS   PMC_BIT32(8)
 
#define DOORBELL_IOA_START_BIST   PMC_BIT32(23)
 
#define DOORBELL_INTR_MODE_MSIX   PMC_BIT32(25)
 
#define DOORBELL_INTR_MSIX_CLR   PMC_BIT32(26)
 
#define DOORBELL_RESET_IOA   PMC_BIT32(31)
 
#define GLOBAL_INTERRUPT_MASK   0x5ULL
 
#define PMCRAID_ERROR_INTERRUPTS
 
#define PMCRAID_PCI_INTERRUPTS
 
#define PMCRAID_TIMESTAMP_LEN   12
 
#define PMCRAID_REQ_TM_STR_LEN   6
 
#define PMCRAID_SCSI_SET_TIMESTAMP   0xA4
 
#define PMCRAID_SCSI_SERVICE_ACTION   0x0F
 
#define PMC_DEVICE_EVENT_RESET_START   0x11000000
 
#define PMC_DEVICE_EVENT_RESET_SUCCESS   0x11000001
 
#define PMC_DEVICE_EVENT_RESET_FAILED   0x11000002
 
#define PMC_DEVICE_EVENT_SHUTDOWN_START   0x11000003
 
#define PMC_DEVICE_EVENT_SHUTDOWN_SUCCESS   0x11000004
 
#define PMC_DEVICE_EVENT_SHUTDOWN_FAILED   0x11000005
 
#define PMCRAID_AEN_HDR_SIZE   sizeof(struct pmcraid_aen_msg)
 
#define PMCRAID_RESET_ATTEMPTS   3
 
#define IOA_STATE_OPERATIONAL   0x0
 
#define IOA_STATE_UNKNOWN   0x1
 
#define IOA_STATE_DEAD   0x2
 
#define IOA_STATE_IN_SOFT_RESET   0x3
 
#define IOA_STATE_IN_HARD_RESET   0x4
 
#define IOA_STATE_IN_RESET_ALERT   0x5
 
#define IOA_STATE_IN_BRINGDOWN   0x6
 
#define IOA_STATE_IN_BRINGUP   0x7
 
#define SHUTDOWN_NONE   0x0
 
#define SHUTDOWN_NORMAL   0x1
 
#define SHUTDOWN_ABBREV   0x2
 
#define RES_CHANGE_ADD   0x1 /* add this to mid-layer */
 
#define RES_CHANGE_DEL   0x2 /* remove this from mid-layer */
 
#define IOASC_LOG_LEVEL_NONE   0x0 /* no logging */
 
#define IOASC_LOG_LEVEL_MUST   0x1 /* must log: all high-severity errors */
 
#define IOASC_LOG_LEVEL_HARD   0x2 /* optional – low severity errors */
 
#define pmcraid_err(...)   printk(KERN_ERR "MaxRAID: "__VA_ARGS__)
 
#define pmcraid_info(...)
 
#define SCSI_READ_CMD   0x1 /* any of SCSI READ commands */
 
#define SCSI_WRITE_CMD   0x2 /* any of SCSI WRITE commands */
 
#define SCSI_CMD_TYPE(opcode)
 
#define IS_SCSI_READ_WRITE(opcode)
 
#define PMCRAID_IOCTL_SIGNATURE   "PMCRAID"
 
#define PMCRAID_DRIVER_IOCTL   'D'
 
#define PMCRAID_PASSTHROUGH_IOCTL   'F'
 
#define DRV_IOCTL(n, size)   _IOC(_IOC_READ|_IOC_WRITE, PMCRAID_DRIVER_IOCTL, (n), (size))
 
#define FMW_IOCTL(n, size)   _IOC(_IOC_READ|_IOC_WRITE, PMCRAID_PASSTHROUGH_IOCTL, (n), (size))
 
#define _ARGSIZE(arg)   (sizeof(struct pmcraid_ioctl_header) + sizeof(arg))
 
#define PMCRAID_IOCTL_RESET_ADAPTER   DRV_IOCTL(5, sizeof(struct pmcraid_ioctl_header))
 
#define PMCRAID_IOCTL_PASSTHROUGH_COMMAND   FMW_IOCTL(1, sizeof(struct pmcraid_passthrough_ioctl_buffer))
 
#define PMCRAID_IOCTL_DOWNLOAD_MICROCODE   FMW_IOCTL(2, sizeof(struct pmcraid_passthrough_ioctl_buffer))
 

Functions

struct pmcraid_ioadl_desc __attribute__ ((packed, aligned(PMCRAID_IOADL_ALIGNMENT)))
 
struct pmcraid_ioarcb __attribute__ ((packed, aligned(PMCRAID_IOARCB_ALIGNMENT)))
 
struct pmcraid_ioasa_vset __attribute__ ((packed, aligned(4)))
 
struct
pmcraid_passthrough_ioctl_buffer 
__attribute__ ((packed))
 

Variables

__le64 address
 
__le32 data_len
 
__u8 reserved [3]
 
__u8 flags
 
struct pmcraid_ioarcb_add_data __attribute__
 
__le64 ioarcb_bus_addr
 
__le32 resource_handle
 
__le32 response_handle
 
__le64 ioadl_bus_addr
 
__le32 ioadl_length
 
__le32 data_transfer_length
 
__le64 ioasa_bus_addr
 
__le16 ioasa_len
 
__le16 cmd_timeout
 
__le16 add_cmd_param_offset
 
__le16 add_cmd_param_length
 
__le32 reserved1 [2]
 
__le32 reserved2
 
__u8 request_type
 
__u8 request_flags0
 
__u8 request_flags1
 
__u8 hrrq_id
 
__u8 cdb [PMCRAID_MAX_CDB_LEN]
 
struct pmcraid_ioarcb_add_data add_data
 
__le32 failing_lba_hi
 
__le32 failing_lba_lo
 
__le32 ioasc
 
__le16 returned_status_length
 
__le16 available_status_length
 
__le32 residual_data_length
 
__le32 ilid
 
__le32 fd_ioasc
 
__le32 fd_res_address
 
__le32 fd_res_handle
 
union {
   struct pmcraid_ioasa_vset   vset
 
u
 
__le16 auto_sense_length
 
__le16 error_data_length
 
__u8 sense_data [PMCRAID_SENSE_DATA_LEN]
 
__u8 resource_type
 
__u8 bus_protocol
 
__le16 array_id
 
__u8 common_flags0
 
__u8 common_flags1
 
__u8 unique_flags0
 
__u8 unique_flags1
 
__le32 resource_address
 
__u8 device_id [PMCRAID_DEVICE_ID_LEN]
 
__u8 lun [PMCRAID_LUN_LEN]
 
__le16 num_entries
 
__u8 table_format
 
union {
   struct pmcraid_config_table_entry   entries [PMCRAID_MAX_RESOURCES]
 
   struct
pmcraid_config_table_entry_ext   entries_ext [PMCRAID_MAX_RESOURCES]
 
}; 
 
__le32 fd_ra
 
__le32 fd_rh
 
__le32 prc
 
__u8 op_code
 
__u8 notification_type
 
__u8 notification_lost
 
__u8 overlay_id
 
__le32 timestamp1
 
__le32 timestamp2
 
struct pmcraid_hcam_hdr header
 
struct pmcraid_config_table_entry cfg_entry
 
struct pmcraid_config_table_entry cfg_entry_old
 
struct pmcraid_hostrcb_error error_log
 
struct pmcraid_ioarcb ioarcb
 
struct pmcraid_ioadl_desc ioadl [PMCRAID_IOADLS_EXTERNAL+3]
 
struct pmcraid_ioasa ioasa
 
struct pmcraid_ioctl_header ioctl_header
 
u8 request_buffer [1]
 

Macro Definition Documentation

#define _ARGSIZE (   arg)    (sizeof(struct pmcraid_ioctl_header) + sizeof(arg))

Definition at line 1080 of file pmcraid.h.

#define ALL_DEVICES_SUPPORTED   PMC_BIT8(0)

Definition at line 160 of file pmcraid.h.

#define DELAY_AFTER_RESET   PMC_BIT8(0)

Definition at line 279 of file pmcraid.h.

#define DOORBELL_ENABLE_DESTRUCTIVE_DIAGS   PMC_BIT32(8)

Definition at line 508 of file pmcraid.h.

#define DOORBELL_INTR_MODE_MSIX   PMC_BIT32(25)

Definition at line 510 of file pmcraid.h.

#define DOORBELL_INTR_MSIX_CLR   PMC_BIT32(26)

Definition at line 511 of file pmcraid.h.

#define DOORBELL_IOA_DEBUG_ALERT   PMC_BIT32(9)

Definition at line 507 of file pmcraid.h.

#define DOORBELL_IOA_RESET_ALERT   PMC_BIT32(7)

Definition at line 506 of file pmcraid.h.

#define DOORBELL_IOA_START_BIST   PMC_BIT32(23)

Definition at line 509 of file pmcraid.h.

#define DOORBELL_RESET_IOA   PMC_BIT32(31)

Definition at line 512 of file pmcraid.h.

#define DOORBELL_RUNTIME_RESET   PMC_BIT32(1)

Definition at line 505 of file pmcraid.h.

#define DRV_IOCTL (   n,
  size 
)    _IOC(_IOC_READ|_IOC_WRITE, PMCRAID_DRIVER_IOCTL, (n), (size))

Definition at line 1069 of file pmcraid.h.

#define ENABLE_RESET_MODIFIER   0x80

Definition at line 128 of file pmcraid.h.

#define FMW_IOCTL (   n,
  size 
)    _IOC(_IOC_READ|_IOC_WRITE, PMCRAID_PASSTHROUGH_IOCTL, (n), (size))

Definition at line 1072 of file pmcraid.h.

#define GLOBAL_INTERRUPT_MASK   0x5ULL

Definition at line 515 of file pmcraid.h.

#define HOSTRCB_ERROR_RESPONSE_SENT   PMC_BIT8(1)

Definition at line 457 of file pmcraid.h.

#define HOSTRCB_INTERNAL_OP_ERROR   PMC_BIT8(0)

Definition at line 456 of file pmcraid.h.

#define HOSTRCB_NOTIFICATIONS_LOST   PMC_BIT8(0)

Definition at line 453 of file pmcraid.h.

#define HOSTRCB_OVERLAY_ID_08   0x08

Definition at line 460 of file pmcraid.h.

#define HOSTRCB_OVERLAY_ID_09   0x09

Definition at line 461 of file pmcraid.h.

#define HOSTRCB_OVERLAY_ID_11   0x11

Definition at line 462 of file pmcraid.h.

#define HOSTRCB_OVERLAY_ID_12   0x12

Definition at line 463 of file pmcraid.h.

#define HOSTRCB_OVERLAY_ID_13   0x13

Definition at line 464 of file pmcraid.h.

#define HOSTRCB_OVERLAY_ID_14   0x14

Definition at line 465 of file pmcraid.h.

#define HOSTRCB_OVERLAY_ID_16   0x16

Definition at line 466 of file pmcraid.h.

#define HOSTRCB_OVERLAY_ID_17   0x17

Definition at line 467 of file pmcraid.h.

#define HOSTRCB_OVERLAY_ID_20   0x20

Definition at line 468 of file pmcraid.h.

#define HOSTRCB_OVERLAY_ID_FF   0xFF

Definition at line 469 of file pmcraid.h.

#define HOSTRCB_TYPE_CCN   0xE1

Definition at line 441 of file pmcraid.h.

#define HOSTRCB_TYPE_LDN   0xE2

Definition at line 442 of file pmcraid.h.

#define HRRQ_ENTRY_SIZE   sizeof(__le32)

Definition at line 84 of file pmcraid.h.

#define HRRQ_RESPONSE_BIT   0x02

Definition at line 286 of file pmcraid.h.

#define HRRQ_TOGGLE_BIT   0x01

Definition at line 285 of file pmcraid.h.

#define IMPORT_MODE_MANUAL   PMC_BIT8(0)

Definition at line 357 of file pmcraid.h.

#define INHIBIT_UL_CHECK   PMC_BIT8(2)

Definition at line 273 of file pmcraid.h.

#define INTRS_ALLOW_MSIX_VECTOR0   PMC_BIT32(31)

Definition at line 502 of file pmcraid.h.

#define INTRS_CRITICAL_OP_IN_PROGRESS   PMC_BIT32(6)

Definition at line 495 of file pmcraid.h.

#define INTRS_HRRQ_VALID   PMC_BIT32(30)

Definition at line 500 of file pmcraid.h.

#define INTRS_IO_DEBUG_ACK   PMC_BIT32(7)

Definition at line 496 of file pmcraid.h.

#define INTRS_IOA_PROCESSOR_ERROR   PMC_BIT32(29)

Definition at line 499 of file pmcraid.h.

#define INTRS_IOA_UNIT_CHECK   PMC_BIT32(4)

Definition at line 493 of file pmcraid.h.

#define INTRS_IOARCB_TRANSFER_FAILED   PMC_BIT32(3)

Definition at line 492 of file pmcraid.h.

#define INTRS_IOARRIN_LOST   PMC_BIT32(27)

Definition at line 497 of file pmcraid.h.

#define INTRS_NO_HRRQ_FOR_CMD_RESPONSE   PMC_BIT32(5)

Definition at line 494 of file pmcraid.h.

#define INTRS_OPERATIONAL_STATUS   PMC_BIT32(0)

Definition at line 501 of file pmcraid.h.

#define INTRS_SYSTEM_BUS_MMIO_ERROR   PMC_BIT32(28)

Definition at line 498 of file pmcraid.h.

#define INTRS_TRANSITION_TO_OPERATIONAL   PMC_BIT32(0)

Definition at line 491 of file pmcraid.h.

#define IOA_STATE_DEAD   0x2

Definition at line 787 of file pmcraid.h.

#define IOA_STATE_IN_BRINGDOWN   0x6

Definition at line 791 of file pmcraid.h.

#define IOA_STATE_IN_BRINGUP   0x7

Definition at line 792 of file pmcraid.h.

#define IOA_STATE_IN_HARD_RESET   0x4

Definition at line 789 of file pmcraid.h.

#define IOA_STATE_IN_RESET_ALERT   0x5

Definition at line 790 of file pmcraid.h.

#define IOA_STATE_IN_SOFT_RESET   0x3

Definition at line 788 of file pmcraid.h.

#define IOA_STATE_OPERATIONAL   0x0

Definition at line 785 of file pmcraid.h.

#define IOA_STATE_UNKNOWN   0x1

Definition at line 786 of file pmcraid.h.

#define IOADL_FLAGS_CHAINED   PMC_BIT8(0)

Definition at line 219 of file pmcraid.h.

#define IOADL_FLAGS_LAST_DESC   PMC_BIT8(1)

Definition at line 220 of file pmcraid.h.

#define IOADL_FLAGS_READ_LAST   PMC_BIT8(1)

Definition at line 221 of file pmcraid.h.

#define IOADL_FLAGS_WRITE_LAST   PMC_BIT8(1)

Definition at line 222 of file pmcraid.h.

#define IOASC_LOG_LEVEL_HARD   0x2 /* optional – low severity errors */

Definition at line 851 of file pmcraid.h.

#define IOASC_LOG_LEVEL_MUST   0x1 /* must log: all high-severity errors */

Definition at line 850 of file pmcraid.h.

#define IOASC_LOG_LEVEL_NONE   0x0 /* no logging */

Definition at line 849 of file pmcraid.h.

#define IS_SCSI_READ_WRITE (   opcode)
Value:
({ u8 __type = SCSI_CMD_TYPE(opcode); \
(__type == SCSI_READ_CMD || __type == SCSI_WRITE_CMD) ? 1 : 0;\
})

Definition at line 1018 of file pmcraid.h.

#define MICROCODE_UPDATE_REQUIRED   PMC_BIT32(0)

Definition at line 388 of file pmcraid.h.

#define MULTIPATH_RESOURCE   PMC_BIT32(0)

Definition at line 354 of file pmcraid.h.

#define NO_LINK_DESCS   PMC_BIT8(5)

Definition at line 276 of file pmcraid.h.

#define NOTIFICATION_TYPE_ENTRY_CHANGED   0x0

Definition at line 445 of file pmcraid.h.

#define NOTIFICATION_TYPE_ENTRY_DELETED   0x2

Definition at line 447 of file pmcraid.h.

#define NOTIFICATION_TYPE_ENTRY_NEW   0x1

Definition at line 446 of file pmcraid.h.

#define NOTIFICATION_TYPE_ENTRY_STATECHANGED   0x4

Definition at line 449 of file pmcraid.h.

#define NOTIFICATION_TYPE_ERROR_LOG   0x10

Definition at line 450 of file pmcraid.h.

#define NOTIFICATION_TYPE_INFORMATION_LOG   0x11

Definition at line 451 of file pmcraid.h.

#define NOTIFICATION_TYPE_STATE_CHANGE   0x3

Definition at line 448 of file pmcraid.h.

#define PCI_DEVICE_ID_PMC_MAXRAID   0x5220

Definition at line 58 of file pmcraid.h.

#define PCI_VENDOR_ID_PMC   0x11F8

Definition at line 57 of file pmcraid.h.

#define PMC_BIT16 (   n)    (1 << (15-n))

Definition at line 53 of file pmcraid.h.

#define PMC_BIT32 (   n)    (1 << (31-n))

Definition at line 54 of file pmcraid.h.

#define PMC_BIT8 (   n)    (1 << (7-n))

Definition at line 52 of file pmcraid.h.

#define PMC_DEVICE_EVENT_RESET_FAILED   0x11000002

Definition at line 652 of file pmcraid.h.

#define PMC_DEVICE_EVENT_RESET_START   0x11000000

Definition at line 650 of file pmcraid.h.

#define PMC_DEVICE_EVENT_RESET_SUCCESS   0x11000001

Definition at line 651 of file pmcraid.h.

#define PMC_DEVICE_EVENT_SHUTDOWN_FAILED   0x11000005

Definition at line 655 of file pmcraid.h.

#define PMC_DEVICE_EVENT_SHUTDOWN_START   0x11000003

Definition at line 653 of file pmcraid.h.

#define PMC_DEVICE_EVENT_SHUTDOWN_SUCCESS   0x11000004

Definition at line 654 of file pmcraid.h.

#define PMCRAID_ABORT_CMD   0xC7

Definition at line 136 of file pmcraid.h.

#define PMCRAID_ADD_CMD_PARAM_LEN   48

Definition at line 98 of file pmcraid.h.

#define PMCRAID_AEN_GROUP   0x3

Definition at line 419 of file pmcraid.h.

#define PMCRAID_AEN_HDR_SIZE   sizeof(struct pmcraid_aen_msg)

Definition at line 666 of file pmcraid.h.

#define PMCRAID_AENWAIT_TIMEOUT   5000

Definition at line 197 of file pmcraid.h.

#define PMCRAID_BIST_TIMEOUT   2000

Definition at line 196 of file pmcraid.h.

#define PMCRAID_CANCEL_ALL_REQUESTS   0xCE

Definition at line 141 of file pmcraid.h.

#define PMCRAID_CCN_EXT_SIZE   3944

Definition at line 427 of file pmcraid.h.

#define PMCRAID_CHECK_FOR_RESET_TIMEOUT   ((HZ / 10))

Definition at line 201 of file pmcraid.h.

#define PMCRAID_DEVFILE   "pmcsas"

Definition at line 43 of file pmcraid.h.

#define PMCRAID_DEVICE_ID_LEN   8

Definition at line 96 of file pmcraid.h.

#define PMCRAID_DRIVER_ILID   0xffffffff

Definition at line 317 of file pmcraid.h.

#define PMCRAID_DRIVER_IOCTL   'D'

Definition at line 1066 of file pmcraid.h.

#define PMCRAID_DRIVER_NAME   "PMC MaxRAID"

Definition at line 42 of file pmcraid.h.

#define PMCRAID_DRIVER_VERSION   "1.0.3"

Definition at line 44 of file pmcraid.h.

#define pmcraid_err (   ...)    printk(KERN_ERR "MaxRAID: "__VA_ARGS__)

Definition at line 998 of file pmcraid.h.

#define PMCRAID_ERROR_INTERRUPTS
Value:
INTRS_IOA_UNIT_CHECK | \
INTRS_NO_HRRQ_FOR_CMD_RESPONSE | \
INTRS_IOARRIN_LOST | \
INTRS_SYSTEM_BUS_MMIO_ERROR | \
INTRS_IOA_PROCESSOR_ERROR)

Definition at line 517 of file pmcraid.h.

#define PMCRAID_FW_VERSION_1   0x002

Definition at line 46 of file pmcraid.h.

#define PMCRAID_HCAM_CODE_CONFIG_CHANGE   0x01

Definition at line 146 of file pmcraid.h.

#define PMCRAID_HCAM_CODE_LOG_DATA   0x02

Definition at line 147 of file pmcraid.h.

#define PMCRAID_HOST_CONTROLLED_ASYNC   0xCF

Definition at line 145 of file pmcraid.h.

#define PMCRAID_HOSTRCB_LDNSIZE   4056

Definition at line 393 of file pmcraid.h.

#define PMCRAID_IDENTIFY_HRRQ   0xC4

Definition at line 133 of file pmcraid.h.

#define pmcraid_info (   ...)
Value:
if (pmcraid_debug_log) \
printk(KERN_INFO "MaxRAID: "__VA_ARGS__)

Definition at line 1001 of file pmcraid.h.

#define PMCRAID_INTERNAL_TIMEOUT   (60 * HZ)

Definition at line 203 of file pmcraid.h.

#define PMCRAID_INVALID_RES_HANDLE   0

Definition at line 264 of file pmcraid.h.

#define PMCRAID_IOA_BUS_ID   0xfe

Definition at line 105 of file pmcraid.h.

#define PMCRAID_IOA_LUN_ID   0xff

Definition at line 107 of file pmcraid.h.

#define PMCRAID_IOA_MAX_SECTORS   32767

Definition at line 115 of file pmcraid.h.

#define PMCRAID_IOA_RES_HANDLE   0xffffffff

Definition at line 263 of file pmcraid.h.

#define PMCRAID_IOA_SHUTDOWN   0xF7

Definition at line 150 of file pmcraid.h.

#define PMCRAID_IOA_TARGET_ID   0xff

Definition at line 106 of file pmcraid.h.

#define PMCRAID_IOADL_ALIGNMENT   16

Definition at line 86 of file pmcraid.h.

#define PMCRAID_IOADLS_EXTERNAL   37

Definition at line 76 of file pmcraid.h.

#define PMCRAID_IOADLS_INTERNAL   27

Definition at line 75 of file pmcraid.h.

#define PMCRAID_IOARCB_ALIGNMENT   32

Definition at line 85 of file pmcraid.h.

#define PMCRAID_IOASA_ALIGNMENT   4

Definition at line 87 of file pmcraid.h.

#define PMCRAID_IOASC_AC_TERMINATED_BY_HOST   0x0B5A0000

Definition at line 183 of file pmcraid.h.

#define PMCRAID_IOASC_GC_IOARCB_NOTFOUND   0x005A0000

Definition at line 173 of file pmcraid.h.

#define PMCRAID_IOASC_GOOD_COMPLETION   0x00000000

Definition at line 172 of file pmcraid.h.

#define PMCRAID_IOASC_HW_CANNOT_COMMUNICATE   0x04050000

Definition at line 178 of file pmcraid.h.

#define PMCRAID_IOASC_HW_DEVICE_BUS_STATUS_ERROR   0x04448500

Definition at line 180 of file pmcraid.h.

#define PMCRAID_IOASC_HW_DEVICE_TIMEOUT   0x04080100

Definition at line 179 of file pmcraid.h.

#define PMCRAID_IOASC_HW_IOA_RESET_REQUIRED   0x04448600

Definition at line 181 of file pmcraid.h.

#define PMCRAID_IOASC_IOA_WAS_RESET   0x10000001

Definition at line 189 of file pmcraid.h.

#define PMCRAID_IOASC_IR_INVALID_RESOURCE_HANDLE   0x05250000

Definition at line 182 of file pmcraid.h.

#define PMCRAID_IOASC_ME_READ_ERROR_NO_REALLOC   0x03110C00

Definition at line 177 of file pmcraid.h.

#define PMCRAID_IOASC_NR_INIT_CMD_REQUIRED   0x02040200

Definition at line 174 of file pmcraid.h.

#define PMCRAID_IOASC_NR_IOA_RESET_REQUIRED   0x02048000

Definition at line 175 of file pmcraid.h.

#define PMCRAID_IOASC_NR_SYNC_REQUIRED   0x023F0000

Definition at line 176 of file pmcraid.h.

#define PMCRAID_IOASC_PCI_ACCESS_ERROR   0x10000002

Definition at line 190 of file pmcraid.h.

#define PMCRAID_IOASC_SENSE_CODE (   ioasc)    (((ioasc) & 0x00ff0000) >> 16)

Definition at line 168 of file pmcraid.h.

#define PMCRAID_IOASC_SENSE_KEY (   ioasc)    ((ioasc) >> 24)

Definition at line 167 of file pmcraid.h.

#define PMCRAID_IOASC_SENSE_MASK   0xFFFFFF00

Definition at line 166 of file pmcraid.h.

#define PMCRAID_IOASC_SENSE_QUAL (   ioasc)    (((ioasc) & 0x0000ff00) >> 8)

Definition at line 169 of file pmcraid.h.

#define PMCRAID_IOASC_SENSE_STATUS (   ioasc)    ((ioasc) & 0x000000ff)

Definition at line 170 of file pmcraid.h.

#define PMCRAID_IOASC_TIME_STAMP_OUT_OF_SYNC   0x06908B00

Definition at line 185 of file pmcraid.h.

#define PMCRAID_IOASC_UA_BUS_WAS_RESET   0x06290000

Definition at line 184 of file pmcraid.h.

#define PMCRAID_IOASC_UA_BUS_WAS_RESET_BY_OTHER   0x06298000

Definition at line 186 of file pmcraid.h.

#define PMCRAID_IOCTL_DOWNLOAD_MICROCODE   FMW_IOCTL(2, sizeof(struct pmcraid_passthrough_ioctl_buffer))

Definition at line 1091 of file pmcraid.h.

#define PMCRAID_IOCTL_PASSTHROUGH_COMMAND   FMW_IOCTL(1, sizeof(struct pmcraid_passthrough_ioctl_buffer))

Definition at line 1088 of file pmcraid.h.

#define PMCRAID_IOCTL_RESET_ADAPTER   DRV_IOCTL(5, sizeof(struct pmcraid_ioctl_header))

Definition at line 1084 of file pmcraid.h.

#define PMCRAID_IOCTL_SIGNATURE   "PMCRAID"

Definition at line 1038 of file pmcraid.h.

#define PMCRAID_LUN_LEN   8

Definition at line 94 of file pmcraid.h.

#define PMCRAID_MAX_ADAPTERS   1024

Definition at line 49 of file pmcraid.h.

#define PMCRAID_MAX_BUS_TO_SCAN   1

Definition at line 100 of file pmcraid.h.

#define PMCRAID_MAX_CDB_LEN   16

Definition at line 95 of file pmcraid.h.

#define PMCRAID_MAX_CMD   1024

Definition at line 66 of file pmcraid.h.

#define PMCRAID_MAX_CMD_PER_LUN   254

Definition at line 117 of file pmcraid.h.

#define PMCRAID_MAX_HCAM_CMD   2

Definition at line 68 of file pmcraid.h.

#define PMCRAID_MAX_INTERNAL_CMD   2

Definition at line 69 of file pmcraid.h.

#define PMCRAID_MAX_IO_CMD   1020

Definition at line 67 of file pmcraid.h.

#define PMCRAID_MAX_IOADLS   PMCRAID_IOADLS_INTERNAL

Definition at line 77 of file pmcraid.h.

#define PMCRAID_MAX_NUM_LUNS_PER_TARGET   8

Definition at line 102 of file pmcraid.h.

#define PMCRAID_MAX_NUM_TARGETS_PER_BUS   256

Definition at line 101 of file pmcraid.h.

#define PMCRAID_MAX_RESOURCES   256

Definition at line 122 of file pmcraid.h.

#define PMCRAID_MAX_VSET_LUNS_PER_TARGET   8

Definition at line 113 of file pmcraid.h.

#define PMCRAID_MAX_VSET_TARGETS   0x7F

Definition at line 112 of file pmcraid.h.

#define PMCRAID_NUM_MSIX_VECTORS   16

Definition at line 88 of file pmcraid.h.

#define PMCRAID_PASSTHROUGH_IOCTL   'F'

Definition at line 1067 of file pmcraid.h.

#define PMCRAID_PCI_DEASSERT_TIMEOUT   2000

Definition at line 195 of file pmcraid.h.

#define PMCRAID_PCI_INTERRUPTS
Value:
INTRS_HRRQ_VALID | \
INTRS_TRANSITION_TO_OPERATIONAL |\
INTRS_ALLOW_MSIX_VECTOR0)

Definition at line 524 of file pmcraid.h.

#define PMCRAID_PHYS_BUS_ID   0x0

Definition at line 110 of file pmcraid.h.

#define PMCRAID_PRODUCT_ID_LEN   16

Definition at line 92 of file pmcraid.h.

#define PMCRAID_QUERY_CMD_STATUS   0xCB

Definition at line 135 of file pmcraid.h.

#define PMCRAID_QUERY_IOA_CONFIG   0xC5

Definition at line 134 of file pmcraid.h.

#define PMCRAID_QUERY_RESOURCE_STATE   0xC2

Definition at line 125 of file pmcraid.h.

#define PMCRAID_REQ_TM_STR_LEN   6

Definition at line 562 of file pmcraid.h.

#define PMCRAID_REQUEST_SENSE_TIMEOUT   (30 * HZ)

Definition at line 207 of file pmcraid.h.

#define PMCRAID_RESET_ATTEMPTS   3

Definition at line 739 of file pmcraid.h.

#define PMCRAID_RESET_BUS_TIMEOUT   (60 * HZ)

Definition at line 205 of file pmcraid.h.

#define PMCRAID_RESET_DEVICE   0xC3

Definition at line 126 of file pmcraid.h.

#define PMCRAID_RESET_HOST_TIMEOUT   (150 * HZ)

Definition at line 206 of file pmcraid.h.

#define PMCRAID_RESET_TIMEOUT   (2 * HZ)

Definition at line 200 of file pmcraid.h.

#define PMCRAID_SCSI_SERVICE_ACTION   0x0F

Definition at line 564 of file pmcraid.h.

#define PMCRAID_SCSI_SET_TIMESTAMP   0xA4

Definition at line 563 of file pmcraid.h.

#define PMCRAID_SENSE_DATA_LEN   256

Definition at line 97 of file pmcraid.h.

#define PMCRAID_SERIAL_NUM_LEN   8

Definition at line 93 of file pmcraid.h.

#define PMCRAID_SET_SUP_DEV_TIMEOUT   (2 * 60 * HZ)

Definition at line 208 of file pmcraid.h.

#define PMCRAID_SET_SUPPORTED_DEVICES   0xFB

Definition at line 159 of file pmcraid.h.

#define PMCRAID_SHUTDOWN_ABBREV   0x80

Definition at line 154 of file pmcraid.h.

#define PMCRAID_SHUTDOWN_NONE   0x100

Definition at line 153 of file pmcraid.h.

#define PMCRAID_SHUTDOWN_NORMAL   0x00

Definition at line 151 of file pmcraid.h.

#define PMCRAID_SHUTDOWN_PREPARE_FOR_NORMAL   0x40

Definition at line 152 of file pmcraid.h.

#define PMCRAID_SHUTDOWN_TIMEOUT   (150 * HZ)

Definition at line 204 of file pmcraid.h.

#define PMCRAID_SYNC_COMPLETE_AFTER_CANCEL   PMC_BIT8(0)

Definition at line 142 of file pmcraid.h.

#define PMCRAID_TIMESTAMP_LEN   12

Definition at line 561 of file pmcraid.h.

#define PMCRAID_TRANSOP_TIMEOUT   60000

Definition at line 198 of file pmcraid.h.

#define PMCRAID_VENDOR_ID_LEN   8

Definition at line 91 of file pmcraid.h.

#define PMCRAID_VIRTUAL_ENCL_BUS_ID   0x8

Definition at line 111 of file pmcraid.h.

#define PMCRAID_VSET_BUS_ID   0x1

Definition at line 108 of file pmcraid.h.

#define PMCRAID_VSET_IO_TIMEOUT   (60 * HZ)

Definition at line 202 of file pmcraid.h.

#define PMCRAID_VSET_LUN_ID   0x0

Definition at line 109 of file pmcraid.h.

#define PMCRAID_VSET_MAX_SECTORS   512

Definition at line 116 of file pmcraid.h.

#define PMCRAID_WR_BUF_DOWNLOAD_AND_SAVE   0x05

Definition at line 163 of file pmcraid.h.

#define REQ_TYPE_HCAM   0x02

Definition at line 269 of file pmcraid.h.

#define REQ_TYPE_IOACMD   0x01

Definition at line 268 of file pmcraid.h.

#define REQ_TYPE_SCSI   0x00

Definition at line 267 of file pmcraid.h.

#define RES_ADDRESS_INVALID   0xFFFFFFFF

Definition at line 365 of file pmcraid.h.

#define RES_ADDRESS_IOAFP   0xFEFFFFFF

Definition at line 364 of file pmcraid.h.

#define RES_BUS (   res_addr)    (le32_to_cpu(res_addr) & 0xFF)

Definition at line 368 of file pmcraid.h.

#define RES_CHANGE_ADD   0x1 /* add this to mid-layer */

Definition at line 821 of file pmcraid.h.

#define RES_CHANGE_DEL   0x2 /* remove this from mid-layer */

Definition at line 822 of file pmcraid.h.

#define RES_HANDLE_IOA   0xFFFFFFFF

Definition at line 360 of file pmcraid.h.

#define RES_HANDLE_NONE   0x00000000

Definition at line 361 of file pmcraid.h.

#define RES_IS_AFDASD (   res)    ((res).resource_type == RES_TYPE_AF_DASD)

Definition at line 348 of file pmcraid.h.

#define RES_IS_GSCSI (   res)    ((res).resource_type == RES_TYPE_GSCSI)

Definition at line 346 of file pmcraid.h.

#define RES_IS_IOA (   res)    ((res).resource_type == RES_TYPE_IOA_FP)

Definition at line 345 of file pmcraid.h.

#define RES_IS_VSET (   res)    ((res).resource_type == RES_TYPE_VSET)

Definition at line 347 of file pmcraid.h.

#define RES_LUN (   res_addr)    0x0

Definition at line 370 of file pmcraid.h.

#define RES_TARGET (   res_addr)    ((le32_to_cpu(res_addr) >> 16) & 0xFF)

Definition at line 369 of file pmcraid.h.

#define RES_TYPE_AF_DASD   0x00

Definition at line 340 of file pmcraid.h.

#define RES_TYPE_GSCSI   0x01

Definition at line 341 of file pmcraid.h.

#define RES_TYPE_IOA_FP   0xFF

Definition at line 343 of file pmcraid.h.

#define RES_TYPE_VENCLOSURE   0x8

Definition at line 351 of file pmcraid.h.

#define RES_TYPE_VSET   0x02

Definition at line 342 of file pmcraid.h.

#define RESET_DEVICE_BUS   0x10

Definition at line 131 of file pmcraid.h.

#define RESET_DEVICE_LUN   0x40

Definition at line 129 of file pmcraid.h.

#define RESET_DEVICE_TARGET   0x20

Definition at line 130 of file pmcraid.h.

#define SCSI_CMD_TYPE (   opcode)
Value:
({ u8 op = opcode; u8 __type = 0;\
if (op == READ_6 || op == READ_10 || op == READ_12 || op == READ_16)\
__type = SCSI_READ_CMD;\
else if (op == WRITE_6 || op == WRITE_10 || op == WRITE_12 || \
op == WRITE_16)\
__type = SCSI_WRITE_CMD;\
__type;\
})

Definition at line 1008 of file pmcraid.h.

#define SCSI_READ_CMD   0x1 /* any of SCSI READ commands */

Definition at line 1006 of file pmcraid.h.

#define SCSI_WRITE_CMD   0x2 /* any of SCSI WRITE commands */

Definition at line 1007 of file pmcraid.h.

#define SHUTDOWN_ABBREV   0x2

Definition at line 803 of file pmcraid.h.

#define SHUTDOWN_NONE   0x0

Definition at line 801 of file pmcraid.h.

#define SHUTDOWN_NORMAL   0x1

Definition at line 802 of file pmcraid.h.

#define SYNC_COMPLETE   PMC_BIT8(4)

Definition at line 275 of file pmcraid.h.

#define SYNC_OVERRIDE   PMC_BIT8(3)

Definition at line 274 of file pmcraid.h.

#define TASK_TAG_ORDERED   0x20

Definition at line 281 of file pmcraid.h.

#define TASK_TAG_QUEUE_HEAD   0x30

Definition at line 282 of file pmcraid.h.

#define TASK_TAG_SIMPLE   0x10

Definition at line 280 of file pmcraid.h.

#define TRANSFER_DIR_WRITE   PMC_BIT8(0)

Definition at line 272 of file pmcraid.h.

Function Documentation

Scatter-gather list for preada/pwritea calls.

< Client physical address of the buffer segment.

< Page table entry describing the caching and location override characteristics of the buffer segment. Some drivers ignore this element and will require that the NOCACHE flag be set on their requests.

< Length of the buffer segment.

Definition at line 1740 of file hypervisor.h.

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

union { ... }
__le16 add_cmd_param_length

Definition at line 271 of file pmcraid.h.

__le16 add_cmd_param_offset

Definition at line 270 of file pmcraid.h.

Definition at line 279 of file pmcraid.h.

Definition at line 217 of file pmcraid.h.

__le16 array_id

Definition at line 335 of file pmcraid.h.

__le16 auto_sense_length

Definition at line 332 of file pmcraid.h.

__le16 available_status_length

Definition at line 318 of file pmcraid.h.

__u8 bus_protocol

Definition at line 334 of file pmcraid.h.

Definition at line 278 of file pmcraid.h.

Definition at line 427 of file pmcraid.h.

Definition at line 428 of file pmcraid.h.

__le16 cmd_timeout

Definition at line 269 of file pmcraid.h.

__u8 common_flags0

Definition at line 336 of file pmcraid.h.

__u8 common_flags1

Definition at line 337 of file pmcraid.h.

Definition at line 410 of file pmcraid.h.

__le32 data_len

Definition at line 218 of file pmcraid.h.

__le32 data_transfer_length

Definition at line 266 of file pmcraid.h.

Definition at line 342 of file pmcraid.h.

Definition at line 392 of file pmcraid.h.

Definition at line 394 of file pmcraid.h.

__le16 error_data_length

Definition at line 333 of file pmcraid.h.

Definition at line 440 of file pmcraid.h.

__le32 failing_lba_hi

Definition at line 294 of file pmcraid.h.

__le32 failing_lba_lo

Definition at line 295 of file pmcraid.h.

__le32 fd_ioasc

Definition at line 321 of file pmcraid.h.

__le32 fd_ra

Definition at line 406 of file pmcraid.h.

__le32 fd_res_address

Definition at line 322 of file pmcraid.h.

__le32 fd_res_handle

Definition at line 323 of file pmcraid.h.

__le32 fd_rh

Definition at line 407 of file pmcraid.h.

__u8 flags

Definition at line 220 of file pmcraid.h.

Definition at line 426 of file pmcraid.h.

__u8 hrrq_id

Definition at line 277 of file pmcraid.h.

__le32 ilid

Definition at line 320 of file pmcraid.h.

Definition at line 539 of file pmcraid.h.

__le64 ioadl_bus_addr

Definition at line 264 of file pmcraid.h.

__le32 ioadl_length

Definition at line 265 of file pmcraid.h.

Definition at line 538 of file pmcraid.h.

__le64 ioarcb_bus_addr

Definition at line 261 of file pmcraid.h.

Definition at line 540 of file pmcraid.h.

__le64 ioasa_bus_addr

Definition at line 267 of file pmcraid.h.

__le16 ioasa_len

Definition at line 268 of file pmcraid.h.

__le32 ioasc

Definition at line 316 of file pmcraid.h.

Definition at line 1060 of file pmcraid.h.

Definition at line 343 of file pmcraid.h.

__u8 notification_lost

Definition at line 420 of file pmcraid.h.

__u8 notification_type

Definition at line 419 of file pmcraid.h.

__le16 num_entries

Definition at line 386 of file pmcraid.h.

__u8 op_code

Definition at line 418 of file pmcraid.h.

__u8 overlay_id

Definition at line 422 of file pmcraid.h.

__le32 prc

Definition at line 408 of file pmcraid.h.

u8 request_buffer[1]

Definition at line 1063 of file pmcraid.h.

__u8 request_flags0

Definition at line 275 of file pmcraid.h.

__u8 request_flags1

Definition at line 276 of file pmcraid.h.

Definition at line 274 of file pmcraid.h.

Definition at line 219 of file pmcraid.h.

__u8 reserved1[3]

Definition at line 272 of file pmcraid.h.

__u8 reserved2[11]

Definition at line 273 of file pmcraid.h.

__le32 residual_data_length

Definition at line 319 of file pmcraid.h.

__le32 resource_address

Definition at line 341 of file pmcraid.h.

__le32 resource_handle

Definition at line 262 of file pmcraid.h.

Definition at line 333 of file pmcraid.h.

__le32 response_handle

Definition at line 263 of file pmcraid.h.

__le16 returned_status_length

Definition at line 317 of file pmcraid.h.

Definition at line 334 of file pmcraid.h.

__u8 table_format

Definition at line 387 of file pmcraid.h.

__le32 timestamp1

Definition at line 425 of file pmcraid.h.

__le32 timestamp2

Definition at line 426 of file pmcraid.h.

union { ... } u
__u8 unique_flags0

Definition at line 338 of file pmcraid.h.

__u8 unique_flags1

Definition at line 339 of file pmcraid.h.

Definition at line 328 of file pmcraid.h.