diff options
| author | Jeff Garzik <jgarzik@pobox.com> | 2004-08-13 23:39:52 -0400 |
|---|---|---|
| committer | Jeff Garzik <jgarzik@pobox.com> | 2004-08-13 23:39:52 -0400 |
| commit | c79dd2877a045f479a9e9a4371ab966b6520801c (patch) | |
| tree | 91c516ed6f8825aa9397370d03f21d122c7bf3c8 /include/linux/libata.h | |
| parent | e4babc07a978f0384da961fc1fea72b518614dba (diff) | |
[libata] support commands SYNCHRONIZE CACHE, VERIFY, VERIFY(16)
Diffstat (limited to 'include/linux/libata.h')
| -rw-r--r-- | include/linux/libata.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h index 8443cce6971f..e702e96f7d98 100644 --- a/include/linux/libata.h +++ b/include/linux/libata.h @@ -607,4 +607,11 @@ static inline u8 ata_bmdma_status(struct ata_port *ap) return host_stat; } +static inline int ata_try_flush_cache(struct ata_device *dev) +{ + return ata_id_wcache_enabled(dev) || + ata_id_has_flush(dev) || + ata_id_has_flush_ext(dev); +} + #endif /* __LINUX_LIBATA_H__ */ |
