]> err.no Git - linux-2.6/blobdiff - include/scsi/sas_ata.h
Kconfig: HSO driver bugfixes and updates
[linux-2.6] / include / scsi / sas_ata.h
index 72a1904169a5cacfe691878cf1bd5e2e6901cb9a..c583193ae929333a440ff7ae69efb74082a974dc 100644 (file)
@@ -28,6 +28,8 @@
 #include <linux/libata.h>
 #include <scsi/libsas.h>
 
+#ifdef CONFIG_SCSI_SAS_ATA
+
 static inline int dev_is_sata(struct domain_device *dev)
 {
        return (dev->rphy->identify.target_port_protocols & SAS_PROTOCOL_SATA);
@@ -36,4 +38,23 @@ static inline int dev_is_sata(struct domain_device *dev)
 int sas_ata_init_host_and_port(struct domain_device *found_dev,
                               struct scsi_target *starget);
 
+void sas_ata_task_abort(struct sas_task *task);
+
+#else
+
+
+static inline int dev_is_sata(struct domain_device *dev)
+{
+       return 0;
+}
+static inline int sas_ata_init_host_and_port(struct domain_device *found_dev,
+                              struct scsi_target *starget)
+{
+       return 0;
+}
+static inline void sas_ata_task_abort(struct sas_task *task)
+{
+}
+#endif
+
 #endif /* _SAS_ATA_H_ */