diff options
author | Dan Williams <dan.j.williams@intel.com> | 2011-04-21 21:14:45 -0400 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2011-07-03 07:00:38 -0400 |
commit | 57f20f4ed6fb702339be2ef4dea9d15e6a7d0d07 (patch) | |
tree | d31db747f233d5ea790e82b64e233ee762cf2cdf /drivers/scsi/isci/remote_device.h | |
parent | 9614395ea2eed076fa8341df422582b0017d330c (diff) |
isci: unify remote_device data structures
Make it explicit that isci_remote_device and scic_sds_remote_device are
one in the same object.
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/scsi/isci/remote_device.h')
-rw-r--r-- | drivers/scsi/isci/remote_device.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/scsi/isci/remote_device.h b/drivers/scsi/isci/remote_device.h index 9925316ac55a..aeda39568a1c 100644 --- a/drivers/scsi/isci/remote_device.h +++ b/drivers/scsi/isci/remote_device.h | |||
@@ -55,9 +55,9 @@ | |||
55 | 55 | ||
56 | #if !defined(_ISCI_REMOTE_DEVICE_H_) | 56 | #if !defined(_ISCI_REMOTE_DEVICE_H_) |
57 | #define _ISCI_REMOTE_DEVICE_H_ | 57 | #define _ISCI_REMOTE_DEVICE_H_ |
58 | #include "scic_sds_remote_device.h" | ||
58 | 59 | ||
59 | struct isci_host; | 60 | struct isci_host; |
60 | struct scic_sds_remote_device; | ||
61 | 61 | ||
62 | struct isci_remote_device { | 62 | struct isci_remote_device { |
63 | enum isci_status status; | 63 | enum isci_status status; |
@@ -70,14 +70,9 @@ struct isci_remote_device { | |||
70 | struct list_head node; | 70 | struct list_head node; |
71 | struct list_head reqs_in_process; | 71 | struct list_head reqs_in_process; |
72 | spinlock_t state_lock; | 72 | spinlock_t state_lock; |
73 | struct scic_sds_remote_device sci; | ||
73 | }; | 74 | }; |
74 | 75 | ||
75 | static inline struct scic_sds_remote_device *to_sci_dev(struct isci_remote_device *idev) | ||
76 | { | ||
77 | /* core data is an opaque buffer at the end of the idev */ | ||
78 | return (struct scic_sds_remote_device *) &idev[1]; | ||
79 | } | ||
80 | |||
81 | #define ISCI_REMOTE_DEVICE_START_TIMEOUT 5000 | 76 | #define ISCI_REMOTE_DEVICE_START_TIMEOUT 5000 |
82 | 77 | ||
83 | void isci_remote_device_start_complete(struct isci_host *ihost, | 78 | void isci_remote_device_start_complete(struct isci_host *ihost, |