Go to the documentation of this file.
21 #ifndef __MTIP32XX_H__
22 #define __MTIP32XX_H__
31 #define PCI_SUBSYSTEM_DEVICEID 0x2E
34 #define PCIE_CONFIG_EXT_DEVICE_CONTROL_OFFSET 0x48
37 #define MTIP_SEC_ERASE_MODE 0x2
40 #define MTIP_MAX_RETRIES 2
43 #define MTIP_NCQ_COMMAND_TIMEOUT_MS 5000
44 #define MTIP_IOCTL_COMMAND_TIMEOUT_MS 5000
45 #define MTIP_INTERNAL_COMMAND_TIMEOUT_MS 5000
48 #define MTIP_TIMEOUT_CHECK_PERIOD 500
51 #define MTIP_FTL_REBUILD_OFFSET 142
52 #define MTIP_FTL_REBUILD_MAGIC 0xED51
53 #define MTIP_FTL_REBUILD_TIMEOUT_MS 2400000
56 #define MTIP_TAG_BIT(tag) (tag & 0x1F)
63 #define MTIP_TAG_INDEX(tag) (tag >> 5)
69 #define MTIP_MAX_SG 128
75 #define MTIP_MAX_SLOT_GROUPS 8
78 #define MTIP_TAG_INTERNAL 0
81 #define PCI_VENDOR_ID_MICRON 0x1344
82 #define P320H_DEVICE_ID 0x5150
83 #define P320M_DEVICE_ID 0x5151
84 #define P320S_DEVICE_ID 0x5152
85 #define P325M_DEVICE_ID 0x5153
86 #define P420H_DEVICE_ID 0x5160
87 #define P420M_DEVICE_ID 0x5161
88 #define P425M_DEVICE_ID 0x5163
91 #define MTIP_DRV_NAME "mtip32xx"
92 #define MTIP_DRV_VERSION "1.2.6os3"
95 #define MTIP_MAX_MINORS 16
98 #define MTIP_MAX_COMMAND_SLOTS (MTIP_MAX_SLOT_GROUPS * 32)
108 #define U32_PER_LONG (sizeof(long) / sizeof(u32))
109 #define SLOTBITS_IN_LONGS ((MTIP_MAX_SLOT_GROUPS + \
110 (U32_PER_LONG-1))/U32_PER_LONG)
116 #define dbg_printk(format, arg...) \
117 printk(pr_fmt(format), ##arg);
119 #define dbg_printk(format, arg...)
122 #define MTIP_DFS_MAX_BUF_SIZE 1024
124 #define __force_bit2int (unsigned int __force)