aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/ipr.h
diff options
context:
space:
mode:
authorWayne Boyer <wayneb@linux.vnet.ibm.com>2010-08-11 10:15:17 -0400
committerJames Bottomley <James.Bottomley@suse.de>2010-09-05 13:33:42 -0400
commit46d7456324766cd291d7ccd5b4927cbd3c28fb1b (patch)
treef77d0cd8507a560ad626328af75b9ecc3cf8de63 /drivers/scsi/ipr.h
parent6f7efaabefebfbc523ea9776e3663a2d81b86399 (diff)
[SCSI] ipr: fix resource address formatting and add attribute for device ID
This patch fixes a resource address formatting problem where the first byte was being zeroed out. Also, the device ID is now made available as a sysfs attribute. Signed-off-by: Wayne Boyer <wayneb@linux.vnet.ibm.com> Acked-by: Brian King <brking@linux.vnet.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/ipr.h')
-rw-r--r--drivers/scsi/ipr.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/scsi/ipr.h b/drivers/scsi/ipr.h
index 4d31625ab9cf..16bc77a2be36 100644
--- a/drivers/scsi/ipr.h
+++ b/drivers/scsi/ipr.h
@@ -26,6 +26,7 @@
26#ifndef _IPR_H 26#ifndef _IPR_H
27#define _IPR_H 27#define _IPR_H
28 28
29#include <asm/unaligned.h>
29#include <linux/types.h> 30#include <linux/types.h>
30#include <linux/completion.h> 31#include <linux/completion.h>
31#include <linux/libata.h> 32#include <linux/libata.h>
@@ -372,7 +373,7 @@ struct ipr_config_table_entry {
372 373
373 struct ipr_res_addr res_addr; 374 struct ipr_res_addr res_addr;
374 __be32 res_handle; 375 __be32 res_handle;
375 __be32 reserved4[2]; 376 __be32 lun_wwn[2];
376 struct ipr_std_inq_data std_inq_data; 377 struct ipr_std_inq_data std_inq_data;
377}__attribute__ ((packed, aligned (4))); 378}__attribute__ ((packed, aligned (4)));
378 379
@@ -1210,6 +1211,7 @@ struct ipr_resource_entry {
1210 1211
1211 __be32 res_handle; 1212 __be32 res_handle;
1212 __be64 dev_id; 1213 __be64 dev_id;
1214 __be64 lun_wwn;
1213 struct scsi_lun dev_lun; 1215 struct scsi_lun dev_lun;
1214 u8 res_path[8]; 1216 u8 res_path[8];
1215 1217