public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] pci: add pci_dma_flags_set_dmaflush() to pci interface
@ 2007-08-24 18:05 akepner
  0 siblings, 0 replies; only message in thread
From: akepner @ 2007-08-24 18:05 UTC (permalink / raw)
  To: linux-kernel, linux-pci
  Cc: gregkh, James Bottomley, Jesse Barnes, Jes Sorensen, Randy Dunlap,
	David Miller


Introduce the pci_dma_flags_set_dmaflush() interface and give it 
a default no-op implementation.

Signed-off-by: Arthur Kepner <akepner@sgi.com>
--
 pci.h |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/include/linux/pci.h b/include/linux/pci.h
index e7d8d4e..cee5709 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -825,6 +825,13 @@ static inline void pci_resource_to_user(const struct pci_dev *dev, int bar,
 }
 #endif /* HAVE_ARCH_PCI_RESOURCE_TO_USER */
 
+#ifdef ARCH_CAN_REORDER_DMA
+extern int pci_dma_flags_set_dmaflush(int dir);
+#else /* ARCH_CAN_REORDER_DMA */
+static inline int pci_dma_flags_set_dmaflush(int dir) {
+	return (dir);
+}
+#endif /* ARCH_CAN_REORDER_DMA */
 
 /*
  *  The world is not perfect and supplies us with broken PCI devices.
-- 
Arthur


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2007-08-24 18:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-24 18:05 [PATCH 1/3] pci: add pci_dma_flags_set_dmaflush() to pci interface akepner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox