diff options
Diffstat (limited to 'include/scsi/iscsi_proto.h')
-rw-r--r-- | include/scsi/iscsi_proto.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/include/scsi/iscsi_proto.h b/include/scsi/iscsi_proto.h index 8d1e4e8026fe..318a909e7ae1 100644 --- a/include/scsi/iscsi_proto.h +++ b/include/scsi/iscsi_proto.h | |||
@@ -21,13 +21,15 @@ | |||
21 | #ifndef ISCSI_PROTO_H | 21 | #ifndef ISCSI_PROTO_H |
22 | #define ISCSI_PROTO_H | 22 | #define ISCSI_PROTO_H |
23 | 23 | ||
24 | #include <linux/types.h> | ||
25 | |||
24 | #define ISCSI_DRAFT20_VERSION 0x00 | 26 | #define ISCSI_DRAFT20_VERSION 0x00 |
25 | 27 | ||
26 | /* default iSCSI listen port for incoming connections */ | 28 | /* default iSCSI listen port for incoming connections */ |
27 | #define ISCSI_LISTEN_PORT 3260 | 29 | #define ISCSI_LISTEN_PORT 3260 |
28 | 30 | ||
29 | /* Padding word length */ | 31 | /* Padding word length */ |
30 | #define PAD_WORD_LEN 4 | 32 | #define ISCSI_PAD_LEN 4 |
31 | 33 | ||
32 | /* | 34 | /* |
33 | * useful common(control and data pathes) macro | 35 | * useful common(control and data pathes) macro |
@@ -147,6 +149,14 @@ struct iscsi_rlength_ahdr { | |||
147 | __be32 read_length; | 149 | __be32 read_length; |
148 | }; | 150 | }; |
149 | 151 | ||
152 | /* Extended CDB AHS */ | ||
153 | struct iscsi_ecdb_ahdr { | ||
154 | __be16 ahslength; /* CDB length - 15, including reserved byte */ | ||
155 | uint8_t ahstype; | ||
156 | uint8_t reserved; | ||
157 | uint8_t ecdb[260 - 16]; /* 4-byte aligned extended CDB spillover */ | ||
158 | }; | ||
159 | |||
150 | /* SCSI Response Header */ | 160 | /* SCSI Response Header */ |
151 | struct iscsi_cmd_rsp { | 161 | struct iscsi_cmd_rsp { |
152 | uint8_t opcode; | 162 | uint8_t opcode; |
@@ -600,6 +610,8 @@ struct iscsi_reject { | |||
600 | #define ISCSI_MIN_MAX_BURST_LEN 512 | 610 | #define ISCSI_MIN_MAX_BURST_LEN 512 |
601 | #define ISCSI_MAX_MAX_BURST_LEN 16777215 | 611 | #define ISCSI_MAX_MAX_BURST_LEN 16777215 |
602 | 612 | ||
613 | #define ISCSI_DEF_TIME2WAIT 2 | ||
614 | |||
603 | /************************* RFC 3720 End *****************************/ | 615 | /************************* RFC 3720 End *****************************/ |
604 | 616 | ||
605 | #endif /* ISCSI_PROTO_H */ | 617 | #endif /* ISCSI_PROTO_H */ |