From: akepner@sgi.com
To: linux-kernel@vger.kernel.org, linux-pci@atrey.karlin.mff.cuni.cz
Cc: gregkh@suse.de,
James Bottomley <James.Bottomley@HansenPartnership.com>,
Jesse Barnes <jbarnes@virtuousgeek.org>,
Jes Sorensen <jes@sgi.com>,
Randy Dunlap <randy.dunlap@oracle.com>,
David Miller <davem@davemloft.net>
Subject: [PATCH 1/3] pci: add pci_dma_flags_set_dmaflush() to pci interface
Date: Fri, 24 Aug 2007 11:05:59 -0700 [thread overview]
Message-ID: <20070824180559.GQ5592@sgi.com> (raw)
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
reply other threads:[~2007-08-24 18:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070824180559.GQ5592@sgi.com \
--to=akepner@sgi.com \
--cc=James.Bottomley@HansenPartnership.com \
--cc=davem@davemloft.net \
--cc=gregkh@suse.de \
--cc=jbarnes@virtuousgeek.org \
--cc=jes@sgi.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@atrey.karlin.mff.cuni.cz \
--cc=randy.dunlap@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox