Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
hpsa.h File Reference
#include <scsi/scsicam.h>

Go to the source code of this file.

Data Structures

struct  access_method
 
struct  hpsa_scsi_dev_t
 
struct  reply_pool
 
struct  ctlr_info
 
struct  board_type
 

Macros

#define IO_OK   0
 
#define IO_ERROR   1
 
#define RAID_CTLR_LUNID   "\0\0\0\0\0\0\0\0"
 
#define PERF_MODE_INT   0
 
#define DOORBELL_INT   1
 
#define SIMPLE_MODE_INT   2
 
#define MEMQ_MODE_INT   3
 
#define HPSATMF_BITS_SUPPORTED   (1 << 0)
 
#define HPSATMF_PHYS_LUN_RESET   (1 << 1)
 
#define HPSATMF_PHYS_NEX_RESET   (1 << 2)
 
#define HPSATMF_PHYS_TASK_ABORT   (1 << 3)
 
#define HPSATMF_PHYS_TSET_ABORT   (1 << 4)
 
#define HPSATMF_PHYS_CLEAR_ACA   (1 << 5)
 
#define HPSATMF_PHYS_CLEAR_TSET   (1 << 6)
 
#define HPSATMF_PHYS_QRY_TASK   (1 << 7)
 
#define HPSATMF_PHYS_QRY_TSET   (1 << 8)
 
#define HPSATMF_PHYS_QRY_ASYNC   (1 << 9)
 
#define HPSATMF_MASK_SUPPORTED   (1 << 16)
 
#define HPSATMF_LOG_LUN_RESET   (1 << 17)
 
#define HPSATMF_LOG_NEX_RESET   (1 << 18)
 
#define HPSATMF_LOG_TASK_ABORT   (1 << 19)
 
#define HPSATMF_LOG_TSET_ABORT   (1 << 20)
 
#define HPSATMF_LOG_CLEAR_ACA   (1 << 21)
 
#define HPSATMF_LOG_CLEAR_TSET   (1 << 22)
 
#define HPSATMF_LOG_QRY_TASK   (1 << 23)
 
#define HPSATMF_LOG_QRY_TSET   (1 << 24)
 
#define HPSATMF_LOG_QRY_ASYNC   (1 << 25)
 
#define HPSA_ABORT_MSG   0
 
#define HPSA_DEVICE_RESET_MSG   1
 
#define HPSA_RESET_TYPE_CONTROLLER   0x00
 
#define HPSA_RESET_TYPE_BUS   0x01
 
#define HPSA_RESET_TYPE_TARGET   0x03
 
#define HPSA_RESET_TYPE_LUN   0x04
 
#define HPSA_MSG_SEND_RETRY_LIMIT   10
 
#define HPSA_MSG_SEND_RETRY_INTERVAL_MSECS   (10000)
 
#define HPSA_MAX_POLL_TIME_SECS   (20)
 
#define HPSA_TUR_RETRY_LIMIT   (20)
 
#define HPSA_MAX_WAIT_INTERVAL_SECS   (30)
 
#define HPSA_BOARD_READY_WAIT_SECS   (120)
 
#define HPSA_BOARD_NOT_READY_WAIT_SECS   (100)
 
#define HPSA_BOARD_READY_POLL_INTERVAL_MSECS   (100)
 
#define HPSA_BOARD_READY_POLL_INTERVAL   ((HPSA_BOARD_READY_POLL_INTERVAL_MSECS * HZ) / 1000)
 
#define HPSA_BOARD_READY_ITERATIONS
 
#define HPSA_BOARD_NOT_READY_ITERATIONS
 
#define HPSA_POST_RESET_PAUSE_MSECS   (3000)
 
#define HPSA_POST_RESET_NOOP_RETRIES   (12)
 
#define SA5_DOORBELL   0x20
 
#define SA5_REQUEST_PORT_OFFSET   0x40
 
#define SA5_REPLY_INTR_MASK_OFFSET   0x34
 
#define SA5_REPLY_PORT_OFFSET   0x44
 
#define SA5_INTR_STATUS   0x30
 
#define SA5_SCRATCHPAD_OFFSET   0xB0
 
#define SA5_CTCFG_OFFSET   0xB4
 
#define SA5_CTMEM_OFFSET   0xB8
 
#define SA5_INTR_OFF   0x08
 
#define SA5B_INTR_OFF   0x04
 
#define SA5_INTR_PENDING   0x08
 
#define SA5B_INTR_PENDING   0x04
 
#define FIFO_EMPTY   0xffffffff
 
#define HPSA_FIRMWARE_READY   0xffff0000 /* value in scratchpad register */
 
#define HPSA_ERROR_BIT   0x02
 
#define SA5_PERF_INTR_PENDING   0x04
 
#define SA5_PERF_INTR_OFF   0x05
 
#define SA5_OUTDB_STATUS_PERF_BIT   0x01
 
#define SA5_OUTDB_CLEAR_PERF_BIT   0x01
 
#define SA5_OUTDB_CLEAR   0xA0
 
#define SA5_OUTDB_CLEAR_PERF_BIT   0x01
 
#define SA5_OUTDB_STATUS   0x9C
 
#define HPSA_INTR_ON   1
 
#define HPSA_INTR_OFF   0
 

Macro Definition Documentation

#define DOORBELL_INT   1

Definition at line 75 of file hpsa.h.

#define FIFO_EMPTY   0xffffffff

Definition at line 223 of file hpsa.h.

#define HPSA_ABORT_MSG   0

Definition at line 160 of file hpsa.h.

#define HPSA_BOARD_NOT_READY_ITERATIONS
Value:

Definition at line 199 of file hpsa.h.

#define HPSA_BOARD_NOT_READY_WAIT_SECS   (100)

Definition at line 192 of file hpsa.h.

#define HPSA_BOARD_READY_ITERATIONS
Value:

Definition at line 196 of file hpsa.h.

#define HPSA_BOARD_READY_POLL_INTERVAL   ((HPSA_BOARD_READY_POLL_INTERVAL_MSECS * HZ) / 1000)

Definition at line 194 of file hpsa.h.

#define HPSA_BOARD_READY_POLL_INTERVAL_MSECS   (100)

Definition at line 193 of file hpsa.h.

#define HPSA_BOARD_READY_WAIT_SECS   (120)

Definition at line 191 of file hpsa.h.

#define HPSA_DEVICE_RESET_MSG   1

Definition at line 161 of file hpsa.h.

#define HPSA_ERROR_BIT   0x02

Definition at line 226 of file hpsa.h.

#define HPSA_FIRMWARE_READY   0xffff0000 /* value in scratchpad register */

Definition at line 224 of file hpsa.h.

#define HPSA_INTR_OFF   0

Definition at line 239 of file hpsa.h.

#define HPSA_INTR_ON   1

Definition at line 238 of file hpsa.h.

#define HPSA_MAX_POLL_TIME_SECS   (20)

Definition at line 172 of file hpsa.h.

#define HPSA_MAX_WAIT_INTERVAL_SECS   (30)

Definition at line 182 of file hpsa.h.

#define HPSA_MSG_SEND_RETRY_INTERVAL_MSECS   (10000)

Definition at line 167 of file hpsa.h.

#define HPSA_MSG_SEND_RETRY_LIMIT   10

Definition at line 166 of file hpsa.h.

#define HPSA_POST_RESET_NOOP_RETRIES   (12)

Definition at line 203 of file hpsa.h.

#define HPSA_POST_RESET_PAUSE_MSECS   (3000)

Definition at line 202 of file hpsa.h.

#define HPSA_RESET_TYPE_BUS   0x01

Definition at line 163 of file hpsa.h.

#define HPSA_RESET_TYPE_CONTROLLER   0x00

Definition at line 162 of file hpsa.h.

#define HPSA_RESET_TYPE_LUN   0x04

Definition at line 165 of file hpsa.h.

#define HPSA_RESET_TYPE_TARGET   0x03

Definition at line 164 of file hpsa.h.

#define HPSA_TUR_RETRY_LIMIT   (20)

Definition at line 181 of file hpsa.h.

#define HPSATMF_BITS_SUPPORTED   (1 << 0)

Definition at line 139 of file hpsa.h.

#define HPSATMF_LOG_CLEAR_ACA   (1 << 21)

Definition at line 154 of file hpsa.h.

#define HPSATMF_LOG_CLEAR_TSET   (1 << 22)

Definition at line 155 of file hpsa.h.

#define HPSATMF_LOG_LUN_RESET   (1 << 17)

Definition at line 150 of file hpsa.h.

#define HPSATMF_LOG_NEX_RESET   (1 << 18)

Definition at line 151 of file hpsa.h.

#define HPSATMF_LOG_QRY_ASYNC   (1 << 25)

Definition at line 158 of file hpsa.h.

#define HPSATMF_LOG_QRY_TASK   (1 << 23)

Definition at line 156 of file hpsa.h.

#define HPSATMF_LOG_QRY_TSET   (1 << 24)

Definition at line 157 of file hpsa.h.

#define HPSATMF_LOG_TASK_ABORT   (1 << 19)

Definition at line 152 of file hpsa.h.

#define HPSATMF_LOG_TSET_ABORT   (1 << 20)

Definition at line 153 of file hpsa.h.

#define HPSATMF_MASK_SUPPORTED   (1 << 16)

Definition at line 149 of file hpsa.h.

#define HPSATMF_PHYS_CLEAR_ACA   (1 << 5)

Definition at line 144 of file hpsa.h.

#define HPSATMF_PHYS_CLEAR_TSET   (1 << 6)

Definition at line 145 of file hpsa.h.

#define HPSATMF_PHYS_LUN_RESET   (1 << 1)

Definition at line 140 of file hpsa.h.

#define HPSATMF_PHYS_NEX_RESET   (1 << 2)

Definition at line 141 of file hpsa.h.

#define HPSATMF_PHYS_QRY_ASYNC   (1 << 9)

Definition at line 148 of file hpsa.h.

#define HPSATMF_PHYS_QRY_TASK   (1 << 7)

Definition at line 146 of file hpsa.h.

#define HPSATMF_PHYS_QRY_TSET   (1 << 8)

Definition at line 147 of file hpsa.h.

#define HPSATMF_PHYS_TASK_ABORT   (1 << 3)

Definition at line 142 of file hpsa.h.

#define HPSATMF_PHYS_TSET_ABORT   (1 << 4)

Definition at line 143 of file hpsa.h.

#define IO_ERROR   1

Definition at line 27 of file hpsa.h.

#define IO_OK   0

Definition at line 26 of file hpsa.h.

#define MEMQ_MODE_INT   3

Definition at line 77 of file hpsa.h.

#define PERF_MODE_INT   0

Definition at line 74 of file hpsa.h.

#define RAID_CTLR_LUNID   "\0\0\0\0\0\0\0\0"

Definition at line 44 of file hpsa.h.

#define SA5_CTCFG_OFFSET   0xB4

Definition at line 216 of file hpsa.h.

#define SA5_CTMEM_OFFSET   0xB8

Definition at line 217 of file hpsa.h.

#define SA5_DOORBELL   0x20

Definition at line 209 of file hpsa.h.

#define SA5_INTR_OFF   0x08

Definition at line 219 of file hpsa.h.

#define SA5_INTR_PENDING   0x08

Definition at line 221 of file hpsa.h.

#define SA5_INTR_STATUS   0x30

Definition at line 213 of file hpsa.h.

#define SA5_OUTDB_CLEAR   0xA0

Definition at line 233 of file hpsa.h.

#define SA5_OUTDB_CLEAR_PERF_BIT   0x01

Definition at line 234 of file hpsa.h.

#define SA5_OUTDB_CLEAR_PERF_BIT   0x01

Definition at line 234 of file hpsa.h.

#define SA5_OUTDB_STATUS   0x9C

Definition at line 235 of file hpsa.h.

#define SA5_OUTDB_STATUS_PERF_BIT   0x01

Definition at line 231 of file hpsa.h.

#define SA5_PERF_INTR_OFF   0x05

Definition at line 230 of file hpsa.h.

#define SA5_PERF_INTR_PENDING   0x04

Definition at line 229 of file hpsa.h.

#define SA5_REPLY_INTR_MASK_OFFSET   0x34

Definition at line 211 of file hpsa.h.

#define SA5_REPLY_PORT_OFFSET   0x44

Definition at line 212 of file hpsa.h.

#define SA5_REQUEST_PORT_OFFSET   0x40

Definition at line 210 of file hpsa.h.

#define SA5_SCRATCHPAD_OFFSET   0xB0

Definition at line 214 of file hpsa.h.

#define SA5B_INTR_OFF   0x04

Definition at line 220 of file hpsa.h.

#define SA5B_INTR_PENDING   0x04

Definition at line 222 of file hpsa.h.

#define SIMPLE_MODE_INT   2

Definition at line 76 of file hpsa.h.