~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to drivers/scsi/hpsa_cmd.h

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
101
101
#define CFGTBL_ChangeReq        0x00000001l
102
102
#define CFGTBL_AccCmds          0x00000001l
103
103
#define DOORBELL_CTLR_RESET     0x00000004l
 
104
#define DOORBELL_CTLR_RESET2    0x00000020l
104
105
 
105
106
#define CFGTBL_Trans_Simple     0x00000002l
106
107
#define CFGTBL_Trans_Performant 0x00000004l
 
108
#define CFGTBL_Trans_use_short_tags 0x20000000l
107
109
 
108
110
#define CFGTBL_BusType_Ultra2   0x00000001l
109
111
#define CFGTBL_BusType_Ultra3   0x00000002l
255
257
#define CMD_IOCTL_PEND  0x01
256
258
#define CMD_SCSI        0x03
257
259
 
258
 
/* This structure needs to be divisible by 32 for new
259
 
 * indexing method and performant mode.
260
 
 */
261
 
#define PAD32 32
262
 
#define PAD64DIFF 0
263
 
#define USEEXTRA ((sizeof(void *) - 4)/4)
264
 
#define PADSIZE (PAD32 + PAD64DIFF * USEEXTRA)
265
 
 
266
260
#define DIRECT_LOOKUP_SHIFT 5
267
261
#define DIRECT_LOOKUP_BIT 0x10
 
262
#define DIRECT_LOOKUP_MASK (~((1 << DIRECT_LOOKUP_SHIFT) - 1))
268
263
 
269
264
#define HPSA_ERROR_BIT          0x02
270
265
struct ctlr_info; /* defined in hpsa.h */
291
286
        struct ctlr_info           *h;
292
287
        int                        cmd_type;
293
288
        long                       cmdindex;
294
 
        struct hlist_node list;
 
289
        struct list_head list;
295
290
        struct request *rq;
296
291
        struct completion *waiting;
297
292
        void   *scsi_cmd;
343
338
        u8              reserved[0x78 - 0x58];
344
339
        u32             misc_fw_support; /* offset 0x78 */
345
340
#define                 MISC_FW_DOORBELL_RESET (0x02)
 
341
#define                 MISC_FW_DOORBELL_RESET2 (0x010)
 
342
        u8              driver_version[32];
346
343
};
347
344
 
348
345
#define NUM_BLOCKFETCH_ENTRIES 8