diff options
author | Artur Wojcik <artur.wojcik@intel.com> | 2011-05-04 03:58:16 -0400 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2011-07-03 07:04:46 -0400 |
commit | cc3dbd0a9178865d4444f8e28b51715808e9ac85 (patch) | |
tree | 4f8da28b4740e0ddaeb3163a3d317f36bc49571c /drivers/scsi/isci/host.h | |
parent | d06b487b78f28a02efdcdcc9ec295bf230b9d0e8 (diff) |
isci: unify isci_host data structures
Make it explicit that isci_host and scic_sds_controller are one in the same
object.
Signed-off-by: Artur Wojcik <artur.wojcik@intel.com>
[removed ->ihost back pointer]
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/scsi/isci/host.h')
-rw-r--r-- | drivers/scsi/isci/host.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/drivers/scsi/isci/host.h b/drivers/scsi/isci/host.h index 8dc8d1c46986..00e4854e20d9 100644 --- a/drivers/scsi/isci/host.h +++ b/drivers/scsi/isci/host.h | |||
@@ -58,7 +58,7 @@ | |||
58 | #define _SCI_HOST_H_ | 58 | #define _SCI_HOST_H_ |
59 | 59 | ||
60 | #include "phy.h" | 60 | #include "phy.h" |
61 | /*#include "task.h"*/ | 61 | #include "scic_sds_controller.h" |
62 | #include "timers.h" | 62 | #include "timers.h" |
63 | #include "remote_device.h" | 63 | #include "remote_device.h" |
64 | 64 | ||
@@ -75,7 +75,7 @@ | |||
75 | #define SCIC_CONTROLLER_STOP_TIMEOUT 5000 | 75 | #define SCIC_CONTROLLER_STOP_TIMEOUT 5000 |
76 | 76 | ||
77 | struct isci_host { | 77 | struct isci_host { |
78 | struct scic_sds_controller *core_controller; | 78 | struct scic_sds_controller sci; |
79 | union scic_oem_parameters oem_parameters; | 79 | union scic_oem_parameters oem_parameters; |
80 | 80 | ||
81 | int id; /* unique within a given pci device */ | 81 | int id; /* unique within a given pci device */ |
@@ -219,6 +219,14 @@ static inline struct isci_host *dev_to_ihost(struct domain_device *dev) | |||
219 | return dev->port->ha->lldd_ha; | 219 | return dev->port->ha->lldd_ha; |
220 | } | 220 | } |
221 | 221 | ||
222 | static inline struct isci_host *scic_to_ihost(struct scic_sds_controller *scic) | ||
223 | { | ||
224 | /* XXX delete after merging scic_sds_contoller and isci_host */ | ||
225 | struct isci_host *ihost = container_of(scic, typeof(*ihost), sci); | ||
226 | |||
227 | return ihost; | ||
228 | } | ||
229 | |||
222 | /** | 230 | /** |
223 | * isci_host_scan_finished() - | 231 | * isci_host_scan_finished() - |
224 | * | 232 | * |