Go to the documentation of this file.
45 #ifndef MPT2SAS_CTL_H_INCLUDED
46 #define MPT2SAS_CTL_H_INCLUDED
52 #define MPT2SAS_DEV_NAME "mpt2ctl"
53 #define MPT2_MAGIC_NUMBER 'L'
54 #define MPT2_IOCTL_DEFAULT_TIMEOUT (10)
59 #define MPT2IOCINFO _IOWR(MPT2_MAGIC_NUMBER, 17, \
60 struct mpt2_ioctl_iocinfo)
61 #define MPT2COMMAND _IOWR(MPT2_MAGIC_NUMBER, 20, \
62 struct mpt2_ioctl_command)
64 #define MPT2COMMAND32 _IOWR(MPT2_MAGIC_NUMBER, 20, \
65 struct mpt2_ioctl_command32)
67 #define MPT2EVENTQUERY _IOWR(MPT2_MAGIC_NUMBER, 21, \
68 struct mpt2_ioctl_eventquery)
69 #define MPT2EVENTENABLE _IOWR(MPT2_MAGIC_NUMBER, 22, \
70 struct mpt2_ioctl_eventenable)
71 #define MPT2EVENTREPORT _IOWR(MPT2_MAGIC_NUMBER, 23, \
72 struct mpt2_ioctl_eventreport)
73 #define MPT2HARDRESET _IOWR(MPT2_MAGIC_NUMBER, 24, \
74 struct mpt2_ioctl_diag_reset)
75 #define MPT2BTDHMAPPING _IOWR(MPT2_MAGIC_NUMBER, 31, \
76 struct mpt2_ioctl_btdh_mapping)
79 #define MPT2DIAGREGISTER _IOWR(MPT2_MAGIC_NUMBER, 26, \
80 struct mpt2_diag_register)
81 #define MPT2DIAGRELEASE _IOWR(MPT2_MAGIC_NUMBER, 27, \
82 struct mpt2_diag_release)
83 #define MPT2DIAGUNREGISTER _IOWR(MPT2_MAGIC_NUMBER, 28, \
84 struct mpt2_diag_unregister)
85 #define MPT2DIAGQUERY _IOWR(MPT2_MAGIC_NUMBER, 29, \
86 struct mpt2_diag_query)
87 #define MPT2DIAGREADBUFFER _IOWR(MPT2_MAGIC_NUMBER, 30, \
88 struct mpt2_diag_read_buffer)
131 #define MPT2_IOCTL_INTERFACE_SCSI (0x00)
132 #define MPT2_IOCTL_INTERFACE_FC (0x01)
133 #define MPT2_IOCTL_INTERFACE_FC_IP (0x02)
134 #define MPT2_IOCTL_INTERFACE_SAS (0x03)
135 #define MPT2_IOCTL_INTERFACE_SAS2 (0x04)
136 #define MPT2_IOCTL_INTERFACE_SAS2_SSS6200 (0x05)
137 #define MPT2_IOCTL_VERSION_LENGTH (32)
177 #define MPT2SAS_CTL_EVENT_LOG_SIZE (50)
203 #define MPT2_EVENT_DATA_SIZE (192)
259 struct mpt2_ioctl_command32 {
299 #define MPT2_DIAG_BUFFER_IS_REGISTERED (0x01)
300 #define MPT2_DIAG_BUFFER_IS_RELEASED (0x02)
301 #define MPT2_DIAG_BUFFER_IS_DIAG_RESET (0x04)
304 #define MPT2_APP_FLAGS_APP_OWNED (0x0001)
305 #define MPT2_APP_FLAGS_BUFFER_VALID (0x0002)
306 #define MPT2_APP_FLAGS_FW_BUFFER_ACCESS (0x0004)
309 #define MPT2_FLAGS_REREGISTER (0x0001)
311 #define MPT2_PRODUCT_SPECIFIC_DWORDS 23