27#define MEGAIOC_MAGIC 'm'
28#define MEGAIOCCMD _IOWR(MEGAIOC_MAGIC, 0, struct uioctl_t)
31#define MKADAP(adapno) (MEGAIOC_MAGIC << 8 | adapno)
32#define MEGAIOC_QNADAP 'm'
33#define MEGAIOC_QDRVRVER 'e'
34#define MEGAIOC_QADAPINFO 'g'
36#define MEGA_MBOXCMD_PASSTHRU 0x03
38#define MAX_REQ_SENSE_LEN 0x20
116#define MEGASAS_MAGIC 'M'
117#define MEGASAS_IOC_FIRMWARE _IOWR(MEGASAS_MAGIC, 1, struct megasas_iocpacket)
119#define MFI_CMD_PD_SCSI_IO 0x04
120#define MFI_CMD_DCMD 0x05
121#define MFI_FRAME_SGL64 0x02
122#define MFI_STAT_OK 0x00
123#define MFI_DCMD_PD_GET_LIST 0x02010000
127#define MFI_MBOX_SIZE 12
128#define MAX_IOCTL_SGE 16
129#define MFI_FRAME_DIR_NONE 0x0000
130#define MFI_FRAME_DIR_WRITE 0x0008
131#define MFI_FRAME_DIR_READ 0x0010
132#define MFI_FRAME_DIR_BOTH 0x0018
134#define MAX_SYS_PDS 240
char assert_sizeof_ptr_t[sizeof(ptr_t)==8 ? 1 :-1]
int megaraid_io_interface(int device, int target, struct scsi_cmnd_io *, int)
#define MAX_REQ_SENSE_LEN
union megasas_dcmd_frame::@38 mbox
struct megasas_pthru_frame pthru
struct megasas_header hdr
struct iovec sgl[MAX_IOCTL_SGE]
struct megasas_dcmd_frame dcmd
union megasas_iocpacket::@40 frame
struct megasas_pd_address addr[MAX_SYS_PDS]
u32 sense_buf_phys_addr_lo
u32 sense_buf_phys_addr_hi
struct megasas_sge64 sge64[1]
struct megasas_sge32 sge32[1]