summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorTony Luck <tony.luck@intel.com>2005-05-18 16:28:52 -0700
committerTony Luck <tony.luck@intel.com>2005-05-18 16:28:52 -0700
commit3d620cd75588a37c7f5547e26e2a28b046c280f0 (patch)
treeb109b7f11744fd0d63a274a1eebed474fa9aedd7 /include
parenta1ecf7f6e65637ba4470405ad39794710dbf85d4 (diff)
parent301216244b1e39c4346e56d38b079ca53d528580 (diff)
downloadop-kernel-dev-3d620cd75588a37c7f5547e26e2a28b046c280f0.zip
op-kernel-dev-3d620cd75588a37c7f5547e26e2a28b046c280f0.tar.gz
Sync with Linus - rsync://rsync.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
Diffstat (limited to 'include')
-rw-r--r--include/linux/libata.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h
index 505160a..1f7e203 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;
OpenPOWER on IntegriCloud