diff options
Diffstat (limited to 'include/scsi/sas_ata.h')
-rw-r--r-- | include/scsi/sas_ata.h | 44 |
1 files changed, 26 insertions, 18 deletions
diff --git a/include/scsi/sas_ata.h b/include/scsi/sas_ata.h index 9c159f74c6d0..cdccd2eb7b6c 100644 --- a/include/scsi/sas_ata.h +++ b/include/scsi/sas_ata.h | |||
@@ -32,19 +32,19 @@ | |||
32 | 32 | ||
33 | static inline int dev_is_sata(struct domain_device *dev) | 33 | static inline int dev_is_sata(struct domain_device *dev) |
34 | { | 34 | { |
35 | return (dev->rphy->identify.target_port_protocols & SAS_PROTOCOL_SATA); | 35 | return dev->dev_type == SATA_DEV || dev->dev_type == SATA_PM || |
36 | dev->dev_type == SATA_PM_PORT || dev->dev_type == SATA_PENDING; | ||
36 | } | 37 | } |
37 | 38 | ||
38 | int sas_ata_init_host_and_port(struct domain_device *found_dev, | 39 | int sas_get_ata_info(struct domain_device *dev, struct ex_phy *phy); |
39 | struct scsi_target *starget); | 40 | int sas_ata_init_host_and_port(struct domain_device *found_dev); |
40 | |||
41 | void sas_ata_task_abort(struct sas_task *task); | 41 | void sas_ata_task_abort(struct sas_task *task); |
42 | void sas_ata_strategy_handler(struct Scsi_Host *shost); | 42 | void sas_ata_strategy_handler(struct Scsi_Host *shost); |
43 | int sas_ata_timed_out(struct scsi_cmnd *cmd, struct sas_task *task, | 43 | void sas_ata_eh(struct Scsi_Host *shost, struct list_head *work_q, |
44 | enum blk_eh_timer_return *rtn); | 44 | struct list_head *done_q); |
45 | int sas_ata_eh(struct Scsi_Host *shost, struct list_head *work_q, | 45 | void sas_ata_schedule_reset(struct domain_device *dev); |
46 | struct list_head *done_q); | 46 | void sas_ata_wait_eh(struct domain_device *dev); |
47 | 47 | void sas_probe_sata(struct asd_sas_port *port); | |
48 | #else | 48 | #else |
49 | 49 | ||
50 | 50 | ||
@@ -52,8 +52,7 @@ static inline int dev_is_sata(struct domain_device *dev) | |||
52 | { | 52 | { |
53 | return 0; | 53 | return 0; |
54 | } | 54 | } |
55 | static inline int sas_ata_init_host_and_port(struct domain_device *found_dev, | 55 | static inline int sas_ata_init_host_and_port(struct domain_device *found_dev) |
56 | struct scsi_target *starget) | ||
57 | { | 56 | { |
58 | return 0; | 57 | return 0; |
59 | } | 58 | } |
@@ -65,18 +64,27 @@ static inline void sas_ata_strategy_handler(struct Scsi_Host *shost) | |||
65 | { | 64 | { |
66 | } | 65 | } |
67 | 66 | ||
68 | static inline int sas_ata_timed_out(struct scsi_cmnd *cmd, | 67 | static inline void sas_ata_eh(struct Scsi_Host *shost, struct list_head *work_q, |
69 | struct sas_task *task, | 68 | struct list_head *done_q) |
70 | enum blk_eh_timer_return *rtn) | ||
71 | { | 69 | { |
72 | return 0; | ||
73 | } | 70 | } |
74 | static inline int sas_ata_eh(struct Scsi_Host *shost, struct list_head *work_q, | 71 | |
75 | struct list_head *done_q) | 72 | static inline void sas_ata_schedule_reset(struct domain_device *dev) |
73 | { | ||
74 | } | ||
75 | |||
76 | static inline void sas_ata_wait_eh(struct domain_device *dev) | ||
77 | { | ||
78 | } | ||
79 | |||
80 | static inline void sas_probe_sata(struct asd_sas_port *port) | ||
76 | { | 81 | { |
77 | return 0; | ||
78 | } | 82 | } |
79 | 83 | ||
84 | static inline int sas_get_ata_info(struct domain_device *dev, struct ex_phy *phy) | ||
85 | { | ||
86 | return 0; | ||
87 | } | ||
80 | #endif | 88 | #endif |
81 | 89 | ||
82 | #endif /* _SAS_ATA_H_ */ | 90 | #endif /* _SAS_ATA_H_ */ |