diff options
author | <jgarzik@pretzel.yyz.us> | 2005-05-17 11:30:39 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-05-17 11:30:39 -0400 |
commit | f3ac91cf521be4637236d2dcb7ad4aa91f8865f0 (patch) | |
tree | bd6a8c952ca83863e731e93d332a9cdc2a21563e /include | |
parent | 104e50108c862b13da26850d4b469cc13418b66b (diff) | |
parent | cdcca89e1a90fa9112260bd6384f20fcc4280e21 (diff) |
Merge of rsync://rsync.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev.git
Diffstat (limited to 'include')
-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 505160ab472..1f7e2039a04 100644 --- a/include/linux/libata.h +++ b/include/linux/libata.h @@ -584,6 +584,13 @@ static inline void scr_write(struct ata_port *ap, unsigned int reg, u32 val) ap->ops->scr_write(ap, reg, val); } +static inline void scr_write_flush(struct ata_port *ap, unsigned int reg, + u32 val) +{ + ap->ops->scr_write(ap, reg, val); + (void) ap->ops->scr_read(ap, reg); +} + static inline unsigned int sata_dev_present(struct ata_port *ap) { return ((scr_read(ap, SCR_STATUS) & 0xf) == 0x3) ? 1 : 0; |