aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/scsi/zfcp_fsf.h
diff options
context:
space:
mode:
authorSwen Schillig <swen@vnet.ibm.com>2008-07-02 04:56:39 -0400
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-07-12 09:22:35 -0400
commitc41f8cbddd4e0e72951e0575165dea8ea26f1c4b (patch)
tree67eaa89161e594ff2b45dbc9c1bdaee7176b2a32 /drivers/s390/scsi/zfcp_fsf.h
parent60221920706a01bef89af2577f9a90a8eeb4e662 (diff)
[SCSI] zfcp: zfcp_fsf cleanup.
Code cleanup for the zfcp_fsf.c file. Signed-off-by: Swen Schillig <swen@vnet.ibm.com> Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/s390/scsi/zfcp_fsf.h')
-rw-r--r--drivers/s390/scsi/zfcp_fsf.h31
1 files changed, 18 insertions, 13 deletions
diff --git a/drivers/s390/scsi/zfcp_fsf.h b/drivers/s390/scsi/zfcp_fsf.h
index 6ce2f1e4b00e..bf94b4da0763 100644
--- a/drivers/s390/scsi/zfcp_fsf.h
+++ b/drivers/s390/scsi/zfcp_fsf.h
@@ -287,6 +287,18 @@ struct fsf_bit_error_payload {
287 u32 current_transmit_b2b_credit; 287 u32 current_transmit_b2b_credit;
288} __attribute__ ((packed)); 288} __attribute__ ((packed));
289 289
290struct fsf_link_down_info {
291 u32 error_code;
292 u32 res1;
293 u8 res2[2];
294 u8 primary_status;
295 u8 ioerr_code;
296 u8 action_code;
297 u8 reason_code;
298 u8 explanation_code;
299 u8 vendor_specific_code;
300} __attribute__ ((packed));
301
290struct fsf_status_read_buffer { 302struct fsf_status_read_buffer {
291 u32 status_type; 303 u32 status_type;
292 u32 status_subtype; 304 u32 status_subtype;
@@ -297,7 +309,12 @@ struct fsf_status_read_buffer {
297 u32 class; 309 u32 class;
298 u64 fcp_lun; 310 u64 fcp_lun;
299 u8 res3[24]; 311 u8 res3[24];
300 u8 payload[FSF_STATUS_READ_PAYLOAD_SIZE]; 312 union {
313 u8 data[FSF_STATUS_READ_PAYLOAD_SIZE];
314 u32 word[FSF_STATUS_READ_PAYLOAD_SIZE/sizeof(u32)];
315 struct fsf_link_down_info link_down_info;
316 struct fsf_bit_error_payload bit_error;
317 } payload;
301} __attribute__ ((packed)); 318} __attribute__ ((packed));
302 319
303struct fsf_qual_version_error { 320struct fsf_qual_version_error {
@@ -310,18 +327,6 @@ struct fsf_qual_sequence_error {
310 u32 res1[3]; 327 u32 res1[3];
311} __attribute__ ((packed)); 328} __attribute__ ((packed));
312 329
313struct fsf_link_down_info {
314 u32 error_code;
315 u32 res1;
316 u8 res2[2];
317 u8 primary_status;
318 u8 ioerr_code;
319 u8 action_code;
320 u8 reason_code;
321 u8 explanation_code;
322 u8 vendor_specific_code;
323} __attribute__ ((packed));
324
325struct fsf_qual_latency_info { 330struct fsf_qual_latency_info {
326 u32 channel_lat; 331 u32 channel_lat;
327 u32 fabric_lat; 332 u32 fabric_lat;