diff options
author | Christof Schmitt <christof.schmitt@de.ibm.com> | 2009-11-24 10:54:12 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2009-12-04 13:02:14 -0500 |
commit | 800c0cad962dcf630cabf3efdc5983619e73d4c9 (patch) | |
tree | 4d593b6ec683b524bb2e503483696218aa1eb167 /drivers/s390/scsi/zfcp_fsf.h | |
parent | bd0072ecc449fb2ea8f6a2c9f6ff308f3ae0b078 (diff) |
[SCSI] zfcp: Remove ZFCP_DID_MASK
Instead of assigning 4 bytes with the highest byte masked out, use a 3
byte array with the ntoh24 and h24ton helper functions, thus
eliminating the need for the ZFCP_DID_MASK.
Reviewed-by: Swen Schillig <swen@vnet.ibm.com>
Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/s390/scsi/zfcp_fsf.h')
-rw-r--r-- | drivers/s390/scsi/zfcp_fsf.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/drivers/s390/scsi/zfcp_fsf.h b/drivers/s390/scsi/zfcp_fsf.h index 402e0235a357..206b7eaff5a0 100644 --- a/drivers/s390/scsi/zfcp_fsf.h +++ b/drivers/s390/scsi/zfcp_fsf.h | |||
@@ -11,6 +11,7 @@ | |||
11 | 11 | ||
12 | #include <linux/pfn.h> | 12 | #include <linux/pfn.h> |
13 | #include <linux/scatterlist.h> | 13 | #include <linux/scatterlist.h> |
14 | #include <scsi/libfc.h> | ||
14 | 15 | ||
15 | #define FSF_QTCB_CURRENT_VERSION 0x00000001 | 16 | #define FSF_QTCB_CURRENT_VERSION 0x00000001 |
16 | 17 | ||
@@ -228,7 +229,8 @@ struct fsf_status_read_buffer { | |||
228 | u32 length; | 229 | u32 length; |
229 | u32 res1; | 230 | u32 res1; |
230 | struct fsf_queue_designator queue_designator; | 231 | struct fsf_queue_designator queue_designator; |
231 | u32 d_id; | 232 | u8 res2; |
233 | u8 d_id[3]; | ||
232 | u32 class; | 234 | u32 class; |
233 | u64 fcp_lun; | 235 | u64 fcp_lun; |
234 | u8 res3[24]; | 236 | u8 res3[24]; |
@@ -327,8 +329,8 @@ struct fsf_qtcb_bottom_io { | |||
327 | 329 | ||
328 | struct fsf_qtcb_bottom_support { | 330 | struct fsf_qtcb_bottom_support { |
329 | u32 operation_subtype; | 331 | u32 operation_subtype; |
330 | u8 res1[12]; | 332 | u8 res1[13]; |
331 | u32 d_id; | 333 | u8 d_id[3]; |
332 | u32 option; | 334 | u32 option; |
333 | u64 fcp_lun; | 335 | u64 fcp_lun; |
334 | u64 res2; | 336 | u64 res2; |
@@ -357,11 +359,12 @@ struct fsf_qtcb_bottom_config { | |||
357 | u32 fc_topology; | 359 | u32 fc_topology; |
358 | u32 fc_link_speed; | 360 | u32 fc_link_speed; |
359 | u32 adapter_type; | 361 | u32 adapter_type; |
360 | u32 peer_d_id; | 362 | u8 res0; |
363 | u8 peer_d_id[3]; | ||
361 | u8 res1[2]; | 364 | u8 res1[2]; |
362 | u16 timer_interval; | 365 | u16 timer_interval; |
363 | u8 res2[8]; | 366 | u8 res2[9]; |
364 | u32 s_id; | 367 | u8 s_id[3]; |
365 | u8 nport_serv_param[128]; | 368 | u8 nport_serv_param[128]; |
366 | u8 res3[8]; | 369 | u8 res3[8]; |
367 | u32 adapter_ports; | 370 | u32 adapter_ports; |