Lines Matching +full:0 +full:x0402
55 #define TWL_STATUS 0x0 /* Status */
56 #define TWL_HIBDB 0x20 /* Inbound doorbell */
57 #define TWL_HISTAT 0x30 /* Host interrupt status */
58 #define TWL_HIMASK 0x34 /* Host interrupt mask */
59 #define TWL_HOBDB 0x9C /* Outbound doorbell */
60 #define TWL_HOBDBC 0xA0 /* Outbound doorbell clear */
61 #define TWL_SCRPD3 0xBC /* Scratchpad */
62 #define TWL_HIBQPL 0xC0 /* Host inbound Q low */
63 #define TWL_HIBQPH 0xC4 /* Host inbound Q high */
64 #define TWL_HOBQPL 0xC8 /* Host outbound Q low */
65 #define TWL_HOBQPH 0xCC /* Host outbound Q high */
66 #define TWL_HISTATUS_VALID_INTERRUPT 0xC
67 #define TWL_HISTATUS_ATTENTION_INTERRUPT 0x4
68 #define TWL_HISTATUS_RESPONSE_INTERRUPT 0x8
69 #define TWL_STATUS_OVERRUN_SUBMIT 0x2000
70 #define TWL_ISSUE_SOFT_RESET 0x100
71 #define TWL_CONTROLLER_READY 0x2000
72 #define TWL_DOORBELL_CONTROLLER_ERROR 0x200000
73 #define TWL_DOORBELL_ATTENTION_INTERRUPT 0x40000
74 #define TWL_PULL_MODE 0x1
77 #define TW_OP_INIT_CONNECTION 0x1
78 #define TW_OP_GET_PARAM 0x12
79 #define TW_OP_SET_PARAM 0x13
80 #define TW_OP_EXECUTE_SCSI 0x10
83 #define TW_AEN_QUEUE_EMPTY 0x0000
84 #define TW_AEN_SOFT_RESET 0x0001
85 #define TW_AEN_SYNC_TIME_WITH_HOST 0x031
86 #define TW_AEN_SEVERITY_ERROR 0x1
87 #define TW_AEN_SEVERITY_DEBUG 0x4
88 #define TW_AEN_NOT_RETRIEVED 0x1
91 #define TW_S_INITIAL 0x1 /* Initial state */
92 #define TW_S_STARTED 0x2 /* Id in use */
93 #define TW_S_POSTED 0x4 /* Posted to the controller */
94 #define TW_S_COMPLETED 0x8 /* Completed by isr */
95 #define TW_S_FINISHED 0x10 /* I/O completely done */
100 #define TW_CURRENT_DRIVER_BUILD 0
101 #define TW_CURRENT_DRIVER_BRANCH 0
106 #define TW_INIT_MESSAGE_CREDITS 0x100
107 #define TW_INIT_COMMAND_PACKET_SIZE 0x3
108 #define TW_INIT_COMMAND_PACKET_SIZE_EXTENDED 0x6
109 #define TW_EXTENDED_INIT_CONNECT 0x2
111 #define TW_BASE_FW_BRANCH 0
114 #define TW_Q_START 0
127 #define TW_VERSION_TABLE 0x0402
128 #define TW_TIMEKEEP_TABLE 0x040A
129 #define TW_INFORMATION_TABLE 0x0403
139 #define TW_IOCTL_FIRMWARE_PASS_THROUGH 0x108 // Used by smartmontools
142 #define TW_ERROR_LOGICAL_UNIT_NOT_SUPPORTED 0x10a
143 #define TW_ERROR_INVALID_FIELD_IN_CDB 0x10d
144 #define TW_ERROR_UNIT_OFFLINE 0x128
149 #define PCI_DEVICE_ID_3WARE_9750 0x1010
155 #define TW_OPRES_IN(x,y) ((x << 5) | (y & 0x1f))
156 #define TW_OP_OUT(x) (x & 0x1f)
159 #define TW_OPSGL_IN(x,y) ((x << 5) | (y & 0x1f))
160 #define TW_SGL_OUT(x) ((x >> 5) & 0x7)
163 #define TW_SEV_OUT(x) (x & 0x7)
166 #define TW_RESID_OUT(x) ((x >> 16) & 0xffff)
167 #define TW_NOTMFA_OUT(x) (x & 0x1)
171 (((lun << 12) & 0xf000) | (request_id & 0xfff))
172 #define TW_LUN_OUT(lun) ((lun >> 12) & 0xf)
198 (writel(~0, TWL_HIMASK_REG_ADDR(tw_dev)))
202 (writel(~0, TWL_HOBDBC_REG_ADDR(tw_dev)))
209 printk(KERN_WARNING "3w-sas: scsi%d: ERROR: (0x%02X:0x%04X): %s.\n",h->host_no,a,b,c); \
211 printk(KERN_WARNING "3w-sas: ERROR: (0x%02X:0x%04X): %s.\n",a,b,c); \