diff options
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 | * |