Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs
3w-xxxx.h File Reference
#include <linux/types.h>

Go to the source code of this file.

Data Structures

struct  TAG_TW_SG_Entry
 
struct  TW_Command
 
struct  TAG_TW_Ioctl
 
struct  TAG_TW_New_Ioctl
 
struct  TW_Param
 
union  TAG_TW_Response_Queue
 
struct  TAG_TW_Passthru
 
struct  TAG_TW_Device_Extension
 

Macros

#define TW_CONTROL_CLEAR_HOST_INTERRUPT   0x00080000
 
#define TW_CONTROL_CLEAR_ATTENTION_INTERRUPT   0x00040000
 
#define TW_CONTROL_MASK_COMMAND_INTERRUPT   0x00020000
 
#define TW_CONTROL_MASK_RESPONSE_INTERRUPT   0x00010000
 
#define TW_CONTROL_UNMASK_COMMAND_INTERRUPT   0x00008000
 
#define TW_CONTROL_UNMASK_RESPONSE_INTERRUPT   0x00004000
 
#define TW_CONTROL_CLEAR_ERROR_STATUS   0x00000200
 
#define TW_CONTROL_ISSUE_SOFT_RESET   0x00000100
 
#define TW_CONTROL_ENABLE_INTERRUPTS   0x00000080
 
#define TW_CONTROL_DISABLE_INTERRUPTS   0x00000040
 
#define TW_CONTROL_ISSUE_HOST_INTERRUPT   0x00000020
 
#define TW_CONTROL_CLEAR_PARITY_ERROR   0x00800000
 
#define TW_CONTROL_CLEAR_QUEUE_ERROR   0x00400000
 
#define TW_CONTROL_CLEAR_PCI_ABORT   0x00100000
 
#define TW_CONTROL_CLEAR_SBUF_WRITE_ERROR   0x00000008
 
#define TW_STATUS_MAJOR_VERSION_MASK   0xF0000000
 
#define TW_STATUS_MINOR_VERSION_MASK   0x0F000000
 
#define TW_STATUS_PCI_PARITY_ERROR   0x00800000
 
#define TW_STATUS_QUEUE_ERROR   0x00400000
 
#define TW_STATUS_MICROCONTROLLER_ERROR   0x00200000
 
#define TW_STATUS_PCI_ABORT   0x00100000
 
#define TW_STATUS_HOST_INTERRUPT   0x00080000
 
#define TW_STATUS_ATTENTION_INTERRUPT   0x00040000
 
#define TW_STATUS_COMMAND_INTERRUPT   0x00020000
 
#define TW_STATUS_RESPONSE_INTERRUPT   0x00010000
 
#define TW_STATUS_COMMAND_QUEUE_FULL   0x00008000
 
#define TW_STATUS_RESPONSE_QUEUE_EMPTY   0x00004000
 
#define TW_STATUS_MICROCONTROLLER_READY   0x00002000
 
#define TW_STATUS_COMMAND_QUEUE_EMPTY   0x00001000
 
#define TW_STATUS_ALL_INTERRUPTS   0x000F0000
 
#define TW_STATUS_CLEARABLE_BITS   0x00D00000
 
#define TW_STATUS_EXPECTED_BITS   0x00002000
 
#define TW_STATUS_UNEXPECTED_BITS   0x00F00008
 
#define TW_STATUS_SBUF_WRITE_ERROR   0x00000008
 
#define TW_STATUS_VALID_INTERRUPT   0x00DF0008
 
#define TW_RESPONSE_ID_MASK   0x00000FF0
 
#define TW_IO_ADDRESS_RANGE   0x10
 
#define TW_DEVICE_NAME   "3ware Storage Controller"
 
#define TW_VENDOR_ID   (0x13C1) /* 3ware */
 
#define TW_DEVICE_ID   (0x1000) /* Storage Controller */
 
#define TW_DEVICE_ID2   (0x1001) /* 7000 series controller */
 
#define TW_NUMDEVICES   2
 
#define TW_PCI_CLEAR_PARITY_ERRORS   0xc100
 
#define TW_PCI_CLEAR_PCI_ABORT   0x2000
 
#define TW_OP_NOP   0x0
 
#define TW_OP_INIT_CONNECTION   0x1
 
#define TW_OP_READ   0x2
 
#define TW_OP_WRITE   0x3
 
#define TW_OP_VERIFY   0x4
 
#define TW_OP_GET_PARAM   0x12
 
#define TW_OP_SET_PARAM   0x13
 
#define TW_OP_SECTOR_INFO   0x1a
 
#define TW_OP_AEN_LISTEN   0x1c
 
#define TW_OP_FLUSH_CACHE   0x0e
 
#define TW_CMD_PACKET   0x1d
 
#define TW_CMD_PACKET_WITH_DATA   0x1f
 
#define TW_AEN_QUEUE_EMPTY   0x0000
 
#define TW_AEN_SOFT_RESET   0x0001
 
#define TW_AEN_DEGRADED_MIRROR   0x0002
 
#define TW_AEN_CONTROLLER_ERROR   0x0003
 
#define TW_AEN_REBUILD_FAIL   0x0004
 
#define TW_AEN_REBUILD_DONE   0x0005
 
#define TW_AEN_QUEUE_FULL   0x00ff
 
#define TW_AEN_TABLE_UNDEFINED   0x15
 
#define TW_AEN_APORT_TIMEOUT   0x0009
 
#define TW_AEN_DRIVE_ERROR   0x000A
 
#define TW_AEN_SMART_FAIL   0x000F
 
#define TW_AEN_SBUF_FAIL   0x0024
 
#define TW_PHASE_INITIAL   0
 
#define TW_PHASE_SINGLE   1
 
#define TW_PHASE_SGLIST   2
 
#define TW_ALIGNMENT_6000   64 /* 64 bytes */
 
#define TW_ALIGNMENT_7000   4 /* 4 bytes */
 
#define TW_MAX_UNITS   16
 
#define TW_COMMAND_ALIGNMENT_MASK   0x1ff
 
#define TW_INIT_MESSAGE_CREDITS   0x100
 
#define TW_INIT_COMMAND_PACKET_SIZE   0x3
 
#define TW_POLL_MAX_RETRIES   20000
 
#define TW_MAX_SGL_LENGTH   62
 
#define TW_ATA_PASS_SGL_MAX   60
 
#define TW_Q_LENGTH   256
 
#define TW_Q_START   0
 
#define TW_MAX_SLOT   32
 
#define TW_MAX_PCI_BUSES   255
 
#define TW_MAX_RESET_TRIES   3
 
#define TW_UNIT_INFORMATION_TABLE_BASE   0x300
 
#define TW_MAX_CMDS_PER_LUN
 
#define TW_BLOCK_SIZE   0x200 /* 512-byte blocks */
 
#define TW_IOCTL   0x80
 
#define TW_UNIT_ONLINE   1
 
#define TW_IN_INTR   1
 
#define TW_IN_RESET   2
 
#define TW_IN_CHRDEV_IOCTL   3
 
#define TW_MAX_SECTORS   256
 
#define TW_MAX_IOCTL_SECTORS   512
 
#define TW_AEN_WAIT_TIME   1000
 
#define TW_IOCTL_WAIT_TIME   (1 * HZ) /* 1 second */
 
#define TW_ISR_DONT_COMPLETE   2
 
#define TW_ISR_DONT_RESULT   3
 
#define TW_IOCTL_TIMEOUT   25 /* 25 seconds */
 
#define TW_IOCTL_CHRDEV_TIMEOUT   60 /* 60 seconds */
 
#define TW_IOCTL_CHRDEV_FREE   -1
 
#define TW_DMA_MASK   DMA_BIT_MASK(32)
 
#define TW_MAX_CDB_LEN   16
 
#define TW_OPSGL_IN(x, y)   ((x << 5) | (y & 0x1f))
 
#define TW_SGL_OUT(x)   ((x >> 5) & 0x7)
 
#define TW_RESID_OUT(x)   ((x >> 4) & 0xff)
 
#define TW_UNITHOST_IN(x, y)   ((x << 4) | ( y & 0xf))
 
#define TW_UNIT_OUT(x)   (x & 0xf)
 
#define TW_CONTROL_REG_ADDR(x)   (x->base_addr)
 
#define TW_STATUS_REG_ADDR(x)   (x->base_addr + 0x4)
 
#define TW_COMMAND_QUEUE_REG_ADDR(x)   (x->base_addr + 0x8)
 
#define TW_RESPONSE_QUEUE_REG_ADDR(x)   (x->base_addr + 0xC)
 
#define TW_CLEAR_ALL_INTERRUPTS(x)   (outl(TW_STATUS_VALID_INTERRUPT, TW_CONTROL_REG_ADDR(x)))
 
#define TW_CLEAR_ATTENTION_INTERRUPT(x)   (outl(TW_CONTROL_CLEAR_ATTENTION_INTERRUPT, TW_CONTROL_REG_ADDR(x)))
 
#define TW_CLEAR_HOST_INTERRUPT(x)   (outl(TW_CONTROL_CLEAR_HOST_INTERRUPT, TW_CONTROL_REG_ADDR(x)))
 
#define TW_DISABLE_INTERRUPTS(x)   (outl(TW_CONTROL_DISABLE_INTERRUPTS, TW_CONTROL_REG_ADDR(x)))
 
#define TW_ENABLE_AND_CLEAR_INTERRUPTS(x)   (outl(TW_CONTROL_CLEAR_ATTENTION_INTERRUPT | TW_CONTROL_UNMASK_RESPONSE_INTERRUPT | TW_CONTROL_ENABLE_INTERRUPTS, TW_CONTROL_REG_ADDR(x)))
 
#define TW_MASK_COMMAND_INTERRUPT(x)   (outl(TW_CONTROL_MASK_COMMAND_INTERRUPT, TW_CONTROL_REG_ADDR(x)))
 
#define TW_UNMASK_COMMAND_INTERRUPT(x)   (outl(TW_CONTROL_UNMASK_COMMAND_INTERRUPT, TW_CONTROL_REG_ADDR(x)))
 
#define TW_SOFT_RESET(x)
 
#define TW_STATUS_ERRORS(x)
 
#define dprintk(msg...)   do { } while(0)
 
#define TW_S_INITIAL   0x1 /* Initial state */
 
#define TW_S_STARTED   0x2 /* Id in use */
 
#define TW_S_POSTED   0x4 /* Posted to the controller */
 
#define TW_S_PENDING   0x8 /* Waiting to be posted in isr */
 
#define TW_S_COMPLETED   0x10 /* Completed by isr */
 
#define TW_S_FINISHED   0x20 /* I/O completely done */
 
#define TW_START_MASK   (TW_S_STARTED | TW_S_POSTED | TW_S_PENDING | TW_S_COMPLETED)
 

Typedefs

typedef struct TAG_TW_SG_Entry TW_SG_Entry
 
typedef unsigned char TW_Sector [512]
 
typedef struct TW_Command TW_Command
 
typedef struct TAG_TW_Ioctl TW_Ioctl
 
typedef struct TAG_TW_New_Ioctl TW_New_Ioctl
 
typedef struct TW_ParamPTW_Param
 
typedef union TAG_TW_Response_Queue TW_Response_Queue
 
typedef int TW_Cmd_State
 
typedef struct TAG_TW_Passthru TW_Passthru
 
typedef struct
TAG_TW_Device_Extension 
TW_Device_Extension
 

Macro Definition Documentation

#define dprintk (   msg...)    do { } while(0)

Definition at line 280 of file 3w-xxxx.h.

#define TW_AEN_APORT_TIMEOUT   0x0009

Definition at line 193 of file 3w-xxxx.h.

#define TW_AEN_CONTROLLER_ERROR   0x0003

Definition at line 188 of file 3w-xxxx.h.

#define TW_AEN_DEGRADED_MIRROR   0x0002

Definition at line 187 of file 3w-xxxx.h.

#define TW_AEN_DRIVE_ERROR   0x000A

Definition at line 194 of file 3w-xxxx.h.

#define TW_AEN_QUEUE_EMPTY   0x0000

Definition at line 185 of file 3w-xxxx.h.

#define TW_AEN_QUEUE_FULL   0x00ff

Definition at line 191 of file 3w-xxxx.h.

#define TW_AEN_REBUILD_DONE   0x0005

Definition at line 190 of file 3w-xxxx.h.

#define TW_AEN_REBUILD_FAIL   0x0004

Definition at line 189 of file 3w-xxxx.h.

#define TW_AEN_SBUF_FAIL   0x0024

Definition at line 196 of file 3w-xxxx.h.

#define TW_AEN_SMART_FAIL   0x000F

Definition at line 195 of file 3w-xxxx.h.

#define TW_AEN_SOFT_RESET   0x0001

Definition at line 186 of file 3w-xxxx.h.

#define TW_AEN_TABLE_UNDEFINED   0x15

Definition at line 192 of file 3w-xxxx.h.

#define TW_AEN_WAIT_TIME   1000

Definition at line 228 of file 3w-xxxx.h.

#define TW_ALIGNMENT_6000   64 /* 64 bytes */

Definition at line 204 of file 3w-xxxx.h.

#define TW_ALIGNMENT_7000   4 /* 4 bytes */

Definition at line 205 of file 3w-xxxx.h.

#define TW_ATA_PASS_SGL_MAX   60

Definition at line 212 of file 3w-xxxx.h.

#define TW_BLOCK_SIZE   0x200 /* 512-byte blocks */

Definition at line 220 of file 3w-xxxx.h.

#define TW_CLEAR_ALL_INTERRUPTS (   x)    (outl(TW_STATUS_VALID_INTERRUPT, TW_CONTROL_REG_ADDR(x)))

Definition at line 256 of file 3w-xxxx.h.

#define TW_CLEAR_ATTENTION_INTERRUPT (   x)    (outl(TW_CONTROL_CLEAR_ATTENTION_INTERRUPT, TW_CONTROL_REG_ADDR(x)))

Definition at line 257 of file 3w-xxxx.h.

#define TW_CLEAR_HOST_INTERRUPT (   x)    (outl(TW_CONTROL_CLEAR_HOST_INTERRUPT, TW_CONTROL_REG_ADDR(x)))

Definition at line 258 of file 3w-xxxx.h.

#define TW_CMD_PACKET   0x1d

Definition at line 181 of file 3w-xxxx.h.

#define TW_CMD_PACKET_WITH_DATA   0x1f

Definition at line 182 of file 3w-xxxx.h.

#define TW_COMMAND_ALIGNMENT_MASK   0x1ff

Definition at line 207 of file 3w-xxxx.h.

#define TW_COMMAND_QUEUE_REG_ADDR (   x)    (x->base_addr + 0x8)

Definition at line 254 of file 3w-xxxx.h.

#define TW_CONTROL_CLEAR_ATTENTION_INTERRUPT   0x00040000

Definition at line 120 of file 3w-xxxx.h.

#define TW_CONTROL_CLEAR_ERROR_STATUS   0x00000200

Definition at line 125 of file 3w-xxxx.h.

#define TW_CONTROL_CLEAR_HOST_INTERRUPT   0x00080000

Definition at line 119 of file 3w-xxxx.h.

#define TW_CONTROL_CLEAR_PARITY_ERROR   0x00800000

Definition at line 130 of file 3w-xxxx.h.

#define TW_CONTROL_CLEAR_PCI_ABORT   0x00100000

Definition at line 132 of file 3w-xxxx.h.

#define TW_CONTROL_CLEAR_QUEUE_ERROR   0x00400000

Definition at line 131 of file 3w-xxxx.h.

#define TW_CONTROL_CLEAR_SBUF_WRITE_ERROR   0x00000008

Definition at line 133 of file 3w-xxxx.h.

#define TW_CONTROL_DISABLE_INTERRUPTS   0x00000040

Definition at line 128 of file 3w-xxxx.h.

#define TW_CONTROL_ENABLE_INTERRUPTS   0x00000080

Definition at line 127 of file 3w-xxxx.h.

#define TW_CONTROL_ISSUE_HOST_INTERRUPT   0x00000020

Definition at line 129 of file 3w-xxxx.h.

#define TW_CONTROL_ISSUE_SOFT_RESET   0x00000100

Definition at line 126 of file 3w-xxxx.h.

#define TW_CONTROL_MASK_COMMAND_INTERRUPT   0x00020000

Definition at line 121 of file 3w-xxxx.h.

#define TW_CONTROL_MASK_RESPONSE_INTERRUPT   0x00010000

Definition at line 122 of file 3w-xxxx.h.

#define TW_CONTROL_REG_ADDR (   x)    (x->base_addr)

Definition at line 252 of file 3w-xxxx.h.

#define TW_CONTROL_UNMASK_COMMAND_INTERRUPT   0x00008000

Definition at line 123 of file 3w-xxxx.h.

#define TW_CONTROL_UNMASK_RESPONSE_INTERRUPT   0x00004000

Definition at line 124 of file 3w-xxxx.h.

#define TW_DEVICE_ID   (0x1000) /* Storage Controller */

Definition at line 164 of file 3w-xxxx.h.

#define TW_DEVICE_ID2   (0x1001) /* 7000 series controller */

Definition at line 165 of file 3w-xxxx.h.

#define TW_DEVICE_NAME   "3ware Storage Controller"

Definition at line 162 of file 3w-xxxx.h.

#define TW_DISABLE_INTERRUPTS (   x)    (outl(TW_CONTROL_DISABLE_INTERRUPTS, TW_CONTROL_REG_ADDR(x)))

Definition at line 259 of file 3w-xxxx.h.

#define TW_DMA_MASK   DMA_BIT_MASK(32)

Definition at line 235 of file 3w-xxxx.h.

Definition at line 260 of file 3w-xxxx.h.

#define TW_IN_CHRDEV_IOCTL   3

Definition at line 225 of file 3w-xxxx.h.

#define TW_IN_INTR   1

Definition at line 223 of file 3w-xxxx.h.

#define TW_IN_RESET   2

Definition at line 224 of file 3w-xxxx.h.

#define TW_INIT_COMMAND_PACKET_SIZE   0x3

Definition at line 209 of file 3w-xxxx.h.

#define TW_INIT_MESSAGE_CREDITS   0x100

Definition at line 208 of file 3w-xxxx.h.

#define TW_IO_ADDRESS_RANGE   0x10

Definition at line 161 of file 3w-xxxx.h.

#define TW_IOCTL   0x80

Definition at line 221 of file 3w-xxxx.h.

#define TW_IOCTL_CHRDEV_FREE   -1

Definition at line 234 of file 3w-xxxx.h.

#define TW_IOCTL_CHRDEV_TIMEOUT   60 /* 60 seconds */

Definition at line 233 of file 3w-xxxx.h.

#define TW_IOCTL_TIMEOUT   25 /* 25 seconds */

Definition at line 232 of file 3w-xxxx.h.

#define TW_IOCTL_WAIT_TIME   (1 * HZ) /* 1 second */

Definition at line 229 of file 3w-xxxx.h.

#define TW_ISR_DONT_COMPLETE   2

Definition at line 230 of file 3w-xxxx.h.

#define TW_ISR_DONT_RESULT   3

Definition at line 231 of file 3w-xxxx.h.

#define TW_MASK_COMMAND_INTERRUPT (   x)    (outl(TW_CONTROL_MASK_COMMAND_INTERRUPT, TW_CONTROL_REG_ADDR(x)))

Definition at line 261 of file 3w-xxxx.h.

#define TW_MAX_CDB_LEN   16

Definition at line 236 of file 3w-xxxx.h.

#define TW_MAX_CMDS_PER_LUN
Value:
254 /* 254 for io, 1 for
chrdev ioctl, one for
internal aen post */

Definition at line 219 of file 3w-xxxx.h.

#define TW_MAX_IOCTL_SECTORS   512

Definition at line 227 of file 3w-xxxx.h.

#define TW_MAX_PCI_BUSES   255

Definition at line 216 of file 3w-xxxx.h.

#define TW_MAX_RESET_TRIES   3

Definition at line 217 of file 3w-xxxx.h.

#define TW_MAX_SECTORS   256

Definition at line 226 of file 3w-xxxx.h.

#define TW_MAX_SGL_LENGTH   62

Definition at line 211 of file 3w-xxxx.h.

#define TW_MAX_SLOT   32

Definition at line 215 of file 3w-xxxx.h.

#define TW_MAX_UNITS   16

Definition at line 206 of file 3w-xxxx.h.

#define TW_NUMDEVICES   2

Definition at line 166 of file 3w-xxxx.h.

#define TW_OP_AEN_LISTEN   0x1c

Definition at line 179 of file 3w-xxxx.h.

#define TW_OP_FLUSH_CACHE   0x0e

Definition at line 180 of file 3w-xxxx.h.

#define TW_OP_GET_PARAM   0x12

Definition at line 176 of file 3w-xxxx.h.

#define TW_OP_INIT_CONNECTION   0x1

Definition at line 172 of file 3w-xxxx.h.

#define TW_OP_NOP   0x0

Definition at line 171 of file 3w-xxxx.h.

#define TW_OP_READ   0x2

Definition at line 173 of file 3w-xxxx.h.

#define TW_OP_SECTOR_INFO   0x1a

Definition at line 178 of file 3w-xxxx.h.

#define TW_OP_SET_PARAM   0x13

Definition at line 177 of file 3w-xxxx.h.

#define TW_OP_VERIFY   0x4

Definition at line 175 of file 3w-xxxx.h.

#define TW_OP_WRITE   0x3

Definition at line 174 of file 3w-xxxx.h.

#define TW_OPSGL_IN (   x,
  y 
)    ((x << 5) | (y & 0x1f))

Definition at line 241 of file 3w-xxxx.h.

#define TW_PCI_CLEAR_PARITY_ERRORS   0xc100

Definition at line 167 of file 3w-xxxx.h.

#define TW_PCI_CLEAR_PCI_ABORT   0x2000

Definition at line 168 of file 3w-xxxx.h.

#define TW_PHASE_INITIAL   0

Definition at line 199 of file 3w-xxxx.h.

#define TW_PHASE_SGLIST   2

Definition at line 201 of file 3w-xxxx.h.

#define TW_PHASE_SINGLE   1

Definition at line 200 of file 3w-xxxx.h.

#define TW_POLL_MAX_RETRIES   20000

Definition at line 210 of file 3w-xxxx.h.

#define TW_Q_LENGTH   256

Definition at line 213 of file 3w-xxxx.h.

#define TW_Q_START   0

Definition at line 214 of file 3w-xxxx.h.

#define TW_RESID_OUT (   x)    ((x >> 4) & 0xff)

Definition at line 245 of file 3w-xxxx.h.

#define TW_RESPONSE_ID_MASK   0x00000FF0

Definition at line 158 of file 3w-xxxx.h.

#define TW_RESPONSE_QUEUE_REG_ADDR (   x)    (x->base_addr + 0xC)

Definition at line 255 of file 3w-xxxx.h.

#define TW_S_COMPLETED   0x10 /* Completed by isr */

Definition at line 368 of file 3w-xxxx.h.

#define TW_S_FINISHED   0x20 /* I/O completely done */

Definition at line 369 of file 3w-xxxx.h.

#define TW_S_INITIAL   0x1 /* Initial state */

Definition at line 364 of file 3w-xxxx.h.

#define TW_S_PENDING   0x8 /* Waiting to be posted in isr */

Definition at line 367 of file 3w-xxxx.h.

#define TW_S_POSTED   0x4 /* Posted to the controller */

Definition at line 366 of file 3w-xxxx.h.

#define TW_S_STARTED   0x2 /* Id in use */

Definition at line 365 of file 3w-xxxx.h.

#define TW_SGL_OUT (   x)    ((x >> 5) & 0x7)

Definition at line 242 of file 3w-xxxx.h.

#define TW_SOFT_RESET (   x)
#define TW_START_MASK   (TW_S_STARTED | TW_S_POSTED | TW_S_PENDING | TW_S_COMPLETED)

Definition at line 370 of file 3w-xxxx.h.

#define TW_STATUS_ALL_INTERRUPTS   0x000F0000

Definition at line 150 of file 3w-xxxx.h.

#define TW_STATUS_ATTENTION_INTERRUPT   0x00040000

Definition at line 143 of file 3w-xxxx.h.

#define TW_STATUS_CLEARABLE_BITS   0x00D00000

Definition at line 151 of file 3w-xxxx.h.

#define TW_STATUS_COMMAND_INTERRUPT   0x00020000

Definition at line 144 of file 3w-xxxx.h.

#define TW_STATUS_COMMAND_QUEUE_EMPTY   0x00001000

Definition at line 149 of file 3w-xxxx.h.

#define TW_STATUS_COMMAND_QUEUE_FULL   0x00008000

Definition at line 146 of file 3w-xxxx.h.

#define TW_STATUS_ERRORS (   x)
#define TW_STATUS_EXPECTED_BITS   0x00002000

Definition at line 152 of file 3w-xxxx.h.

#define TW_STATUS_HOST_INTERRUPT   0x00080000

Definition at line 142 of file 3w-xxxx.h.

#define TW_STATUS_MAJOR_VERSION_MASK   0xF0000000

Definition at line 136 of file 3w-xxxx.h.

#define TW_STATUS_MICROCONTROLLER_ERROR   0x00200000

Definition at line 140 of file 3w-xxxx.h.

#define TW_STATUS_MICROCONTROLLER_READY   0x00002000

Definition at line 148 of file 3w-xxxx.h.

#define TW_STATUS_MINOR_VERSION_MASK   0x0F000000

Definition at line 137 of file 3w-xxxx.h.

#define TW_STATUS_PCI_ABORT   0x00100000

Definition at line 141 of file 3w-xxxx.h.

#define TW_STATUS_PCI_PARITY_ERROR   0x00800000

Definition at line 138 of file 3w-xxxx.h.

#define TW_STATUS_QUEUE_ERROR   0x00400000

Definition at line 139 of file 3w-xxxx.h.

#define TW_STATUS_REG_ADDR (   x)    (x->base_addr + 0x4)

Definition at line 253 of file 3w-xxxx.h.

#define TW_STATUS_RESPONSE_INTERRUPT   0x00010000

Definition at line 145 of file 3w-xxxx.h.

#define TW_STATUS_RESPONSE_QUEUE_EMPTY   0x00004000

Definition at line 147 of file 3w-xxxx.h.

#define TW_STATUS_SBUF_WRITE_ERROR   0x00000008

Definition at line 154 of file 3w-xxxx.h.

#define TW_STATUS_UNEXPECTED_BITS   0x00F00008

Definition at line 153 of file 3w-xxxx.h.

#define TW_STATUS_VALID_INTERRUPT   0x00DF0008

Definition at line 155 of file 3w-xxxx.h.

#define TW_UNIT_INFORMATION_TABLE_BASE   0x300

Definition at line 218 of file 3w-xxxx.h.

#define TW_UNIT_ONLINE   1

Definition at line 222 of file 3w-xxxx.h.

#define TW_UNIT_OUT (   x)    (x & 0xf)

Definition at line 249 of file 3w-xxxx.h.

#define TW_UNITHOST_IN (   x,
  y 
)    ((x << 4) | ( y & 0xf))

Definition at line 248 of file 3w-xxxx.h.

#define TW_UNMASK_COMMAND_INTERRUPT (   x)    (outl(TW_CONTROL_UNMASK_COMMAND_INTERRUPT, TW_CONTROL_REG_ADDR(x)))

Definition at line 262 of file 3w-xxxx.h.

#define TW_VENDOR_ID   (0x13C1) /* 3ware */

Definition at line 163 of file 3w-xxxx.h.

Typedef Documentation

typedef int TW_Cmd_State

Definition at line 362 of file 3w-xxxx.h.

typedef unsigned char TW_Sector[512]

Definition at line 291 of file 3w-xxxx.h.