diff options
Diffstat (limited to 'include/scsi/scsi.h')
-rw-r--r-- | include/scsi/scsi.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/scsi/scsi.h b/include/scsi/scsi.h index 702fcfeb37f1..82251575a9b4 100644 --- a/include/scsi/scsi.h +++ b/include/scsi/scsi.h | |||
@@ -11,6 +11,25 @@ | |||
11 | #include <linux/types.h> | 11 | #include <linux/types.h> |
12 | 12 | ||
13 | /* | 13 | /* |
14 | * The maximum number of SG segments that we will put inside a | ||
15 | * scatterlist (unless chaining is used). Should ideally fit inside a | ||
16 | * single page, to avoid a higher order allocation. We could define this | ||
17 | * to SG_MAX_SINGLE_ALLOC to pack correctly at the highest order. The | ||
18 | * minimum value is 32 | ||
19 | */ | ||
20 | #define SCSI_MAX_SG_SEGMENTS 128 | ||
21 | |||
22 | /* | ||
23 | * Like SCSI_MAX_SG_SEGMENTS, but for archs that have sg chaining. This limit | ||
24 | * is totally arbitrary, a setting of 2048 will get you at least 8mb ios. | ||
25 | */ | ||
26 | #ifdef ARCH_HAS_SG_CHAIN | ||
27 | #define SCSI_MAX_SG_CHAIN_SEGMENTS 2048 | ||
28 | #else | ||
29 | #define SCSI_MAX_SG_CHAIN_SEGMENTS SCSI_MAX_SG_SEGMENTS | ||
30 | #endif | ||
31 | |||
32 | /* | ||
14 | * SCSI command lengths | 33 | * SCSI command lengths |
15 | */ | 34 | */ |
16 | 35 | ||
@@ -83,6 +102,7 @@ extern const unsigned char scsi_command_size[8]; | |||
83 | #define READ_TOC 0x43 | 102 | #define READ_TOC 0x43 |
84 | #define LOG_SELECT 0x4c | 103 | #define LOG_SELECT 0x4c |
85 | #define LOG_SENSE 0x4d | 104 | #define LOG_SENSE 0x4d |
105 | #define XDWRITEREAD_10 0x53 | ||
86 | #define MODE_SELECT_10 0x55 | 106 | #define MODE_SELECT_10 0x55 |
87 | #define RESERVE_10 0x56 | 107 | #define RESERVE_10 0x56 |
88 | #define RELEASE_10 0x57 | 108 | #define RELEASE_10 0x57 |