~ubuntu-branches/ubuntu/trusty/linux-linaro-omap/trusty

« back to all changes in this revision

Viewing changes to drivers/scsi/ipr.h

  • Committer: Package Import Robot
  • Author(s): John Rigby, John Rigby
  • Date: 2011-09-26 10:44:23 UTC
  • Revision ID: package-import@ubuntu.com-20110926104423-57i0gl3v99b3lkfg
Tags: 3.0.0-1007.9
[ John Rigby ]

Enable crypto modules and remove crypto-modules from
exclude-module files
LP: #826021

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
/*
39
39
 * Literals
40
40
 */
41
 
#define IPR_DRIVER_VERSION "2.5.1"
42
 
#define IPR_DRIVER_DATE "(August 10, 2010)"
 
41
#define IPR_DRIVER_VERSION "2.5.2"
 
42
#define IPR_DRIVER_DATE "(April 27, 2011)"
43
43
 
44
44
/*
45
45
 * IPR_MAX_CMD_PER_LUN: This defines the maximum number of outstanding
217
217
#define IPR_CHECK_FOR_RESET_TIMEOUT             (HZ / 10)
218
218
#define IPR_WAIT_FOR_BIST_TIMEOUT               (2 * HZ)
219
219
#define IPR_PCI_RESET_TIMEOUT                   (HZ / 2)
220
 
#define IPR_DUMP_TIMEOUT                        (15 * HZ)
 
220
#define IPR_SIS32_DUMP_TIMEOUT                  (15 * HZ)
 
221
#define IPR_SIS64_DUMP_TIMEOUT                  (40 * HZ)
221
222
#define IPR_DUMP_DELAY_SECONDS                  4
222
223
#define IPR_DUMP_DELAY_TIMEOUT                  (IPR_DUMP_DELAY_SECONDS * HZ)
223
224
 
285
286
/*
286
287
 * Dump literals
287
288
 */
288
 
#define IPR_MAX_IOA_DUMP_SIZE                           (4 * 1024 * 1024)
289
 
#define IPR_NUM_SDT_ENTRIES                             511
290
 
#define IPR_MAX_NUM_DUMP_PAGES  ((IPR_MAX_IOA_DUMP_SIZE / PAGE_SIZE) + 1)
 
289
#define IPR_FMT2_MAX_IOA_DUMP_SIZE                      (4 * 1024 * 1024)
 
290
#define IPR_FMT3_MAX_IOA_DUMP_SIZE                      (32 * 1024 * 1024)
 
291
#define IPR_FMT2_NUM_SDT_ENTRIES                        511
 
292
#define IPR_FMT3_NUM_SDT_ENTRIES                        0xFFF
 
293
#define IPR_FMT2_MAX_NUM_DUMP_PAGES     ((IPR_FMT2_MAX_IOA_DUMP_SIZE / PAGE_SIZE) + 1)
 
294
#define IPR_FMT3_MAX_NUM_DUMP_PAGES     ((IPR_FMT3_MAX_IOA_DUMP_SIZE / PAGE_SIZE) + 1)
291
295
 
292
296
/*
293
297
 * Misc literals
474
478
 
475
479
        u8 flags_lo;
476
480
#define IPR_FLAGS_LO_ALIGNED_BFR                0x20
477
 
#define IPR_FLAGS_LO_DELAY_AFTER_RST    0x10
 
481
#define IPR_FLAGS_LO_DELAY_AFTER_RST            0x10
478
482
#define IPR_FLAGS_LO_UNTAGGED_TASK              0x00
479
483
#define IPR_FLAGS_LO_SIMPLE_TASK                0x02
480
484
#define IPR_FLAGS_LO_ORDERED_TASK               0x04
1164
1168
 
1165
1169
struct ipr_sdt {
1166
1170
        struct ipr_sdt_header hdr;
1167
 
        struct ipr_sdt_entry entry[IPR_NUM_SDT_ENTRIES];
 
1171
        struct ipr_sdt_entry entry[IPR_FMT3_NUM_SDT_ENTRIES];
1168
1172
}__attribute__((packed, aligned (4)));
1169
1173
 
1170
1174
struct ipr_uc_sdt {
1608
1612
struct ipr_ioa_dump {
1609
1613
        struct ipr_dump_entry_header hdr;
1610
1614
        struct ipr_sdt sdt;
1611
 
        __be32 *ioa_data[IPR_MAX_NUM_DUMP_PAGES];
 
1615
        __be32 **ioa_data;
1612
1616
        u32 reserved;
1613
1617
        u32 next_page_index;
1614
1618
        u32 page_offset;