Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs
cciss.h File Reference
#include <linux/genhd.h>
#include <linux/mutex.h>
#include "cciss_cmd.h"

Go to the source code of this file.

Data Structures

struct  access_method
 
struct  _drive_info_struct
 
struct  ctlr_info
 
struct  board_type
 

Macros

#define NWD_SHIFT   4
 
#define MAX_PART   (1 << NWD_SHIFT)
 
#define IO_OK   0
 
#define IO_ERROR   1
 
#define IO_NEEDS_RETRY   3
 
#define VENDOR_LEN   8
 
#define MODEL_LEN   16
 
#define REV_LEN   4
 
#define PERF_MODE_INT   0
 
#define DOORBELL_INT   1
 
#define SIMPLE_MODE_INT   2
 
#define MEMQ_MODE_INT   3
 
#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 CCISS_FIRMWARE_READY   0xffff0000 /* value in scratchpad register */
 
#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 CISS_ERROR_BIT   0x02
 
#define CCISS_INTR_ON   1
 
#define CCISS_INTR_OFF   0
 
#define CCISS_BOARD_READY_WAIT_SECS   (120)
 
#define CCISS_BOARD_NOT_READY_WAIT_SECS   (100)
 
#define CCISS_BOARD_READY_POLL_INTERVAL_MSECS   (100)
 
#define CCISS_BOARD_READY_ITERATIONS
 
#define CCISS_BOARD_NOT_READY_ITERATIONS
 
#define CCISS_POST_RESET_PAUSE_MSECS   (3000)
 
#define CCISS_POST_RESET_NOOP_INTERVAL_MSECS   (4000)
 
#define CCISS_POST_RESET_NOOP_RETRIES   (12)
 
#define CCISS_POST_RESET_NOOP_TIMEOUT_MSECS   (10000)
 

Typedefs

typedef struct ctlr_info ctlr_info_t
 
typedef struct _drive_info_struct drive_info_struct
 

Macro Definition Documentation

#define CCISS_BOARD_NOT_READY_ITERATIONS
Value:

Definition at line 209 of file cciss.h.

#define CCISS_BOARD_NOT_READY_WAIT_SECS   (100)

Definition at line 204 of file cciss.h.

#define CCISS_BOARD_READY_ITERATIONS
Value:

Definition at line 206 of file cciss.h.

#define CCISS_BOARD_READY_POLL_INTERVAL_MSECS   (100)

Definition at line 205 of file cciss.h.

#define CCISS_BOARD_READY_WAIT_SECS   (120)

Definition at line 203 of file cciss.h.

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

Definition at line 179 of file cciss.h.

#define CCISS_INTR_OFF   0

Definition at line 193 of file cciss.h.

#define CCISS_INTR_ON   1

Definition at line 192 of file cciss.h.

#define CCISS_POST_RESET_NOOP_INTERVAL_MSECS   (4000)

Definition at line 213 of file cciss.h.

#define CCISS_POST_RESET_NOOP_RETRIES   (12)

Definition at line 214 of file cciss.h.

#define CCISS_POST_RESET_NOOP_TIMEOUT_MSECS   (10000)

Definition at line 215 of file cciss.h.

#define CCISS_POST_RESET_PAUSE_MSECS   (3000)

Definition at line 212 of file cciss.h.

#define CISS_ERROR_BIT   0x02

Definition at line 190 of file cciss.h.

#define DOORBELL_INT   1

Definition at line 89 of file cciss.h.

#define FIFO_EMPTY   0xffffffff

Definition at line 178 of file cciss.h.

#define IO_ERROR   1

Definition at line 14 of file cciss.h.

#define IO_NEEDS_RETRY   3

Definition at line 15 of file cciss.h.

#define IO_OK   0

Definition at line 13 of file cciss.h.

#define MAX_PART   (1 << NWD_SHIFT)

Definition at line 11 of file cciss.h.

#define MEMQ_MODE_INT   3

Definition at line 91 of file cciss.h.

#define MODEL_LEN   16

Definition at line 18 of file cciss.h.

#define NWD_SHIFT   4

Definition at line 10 of file cciss.h.

#define PERF_MODE_INT   0

Definition at line 88 of file cciss.h.

#define REV_LEN   4

Definition at line 19 of file cciss.h.

#define SA5_CTCFG_OFFSET   0xB4

Definition at line 171 of file cciss.h.

#define SA5_CTMEM_OFFSET   0xB8

Definition at line 172 of file cciss.h.

#define SA5_DOORBELL   0x20

Definition at line 164 of file cciss.h.

#define SA5_INTR_OFF   0x08

Definition at line 174 of file cciss.h.

#define SA5_INTR_PENDING   0x08

Definition at line 176 of file cciss.h.

#define SA5_INTR_STATUS   0x30

Definition at line 168 of file cciss.h.

#define SA5_OUTDB_CLEAR   0xA0

Definition at line 185 of file cciss.h.

#define SA5_OUTDB_CLEAR_PERF_BIT   0x01

Definition at line 186 of file cciss.h.

#define SA5_OUTDB_CLEAR_PERF_BIT   0x01

Definition at line 186 of file cciss.h.

#define SA5_OUTDB_STATUS   0x9C

Definition at line 187 of file cciss.h.

#define SA5_OUTDB_STATUS_PERF_BIT   0x01

Definition at line 183 of file cciss.h.

#define SA5_PERF_INTR_OFF   0x05

Definition at line 182 of file cciss.h.

#define SA5_PERF_INTR_PENDING   0x04

Definition at line 181 of file cciss.h.

#define SA5_REPLY_INTR_MASK_OFFSET   0x34

Definition at line 166 of file cciss.h.

#define SA5_REPLY_PORT_OFFSET   0x44

Definition at line 167 of file cciss.h.

#define SA5_REQUEST_PORT_OFFSET   0x40

Definition at line 165 of file cciss.h.

#define SA5_SCRATCHPAD_OFFSET   0xB0

Definition at line 169 of file cciss.h.

#define SA5B_INTR_OFF   0x04

Definition at line 175 of file cciss.h.

#define SA5B_INTR_PENDING   0x04

Definition at line 177 of file cciss.h.

#define SIMPLE_MODE_INT   2

Definition at line 90 of file cciss.h.

#define VENDOR_LEN   8

Definition at line 17 of file cciss.h.

Typedef Documentation

Definition at line 22 of file cciss.h.