Merge upstream kernel changes into 'C/H/S support' branch of libata.
[GitHub/exynos8895/android_kernel_samsung_universal8895.git] / include / linux / ata.h
index d8981402cd5b986bb3a094790781da768b7fd278..6962e26fc6dfa5a6fa046c7a5dea8a6daf76815e 100644 (file)
@@ -226,6 +226,7 @@ struct ata_taskfile {
 };
 
 #define ata_id_is_ata(id)      (((id)[0] & (1 << 15)) == 0)
+#define ata_id_is_sata(id)     ((id)[93] == 0)
 #define ata_id_rahead_enabled(id) ((id)[85] & (1 << 6))
 #define ata_id_wcache_enabled(id) ((id)[85] & (1 << 5))
 #define ata_id_has_flush(id) ((id)[83] & (1 << 12))