lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Fri, 24 Aug 2007 11:05:59 -0700
From:	akepner@....com
To:	linux-kernel@...r.kernel.org, linux-pci@...ey.karlin.mff.cuni.cz
Cc:	gregkh@...e.de,
	James Bottomley <James.Bottomley@...senPartnership.com>,
	Jesse Barnes <jbarnes@...tuousgeek.org>,
	Jes Sorensen <jes@....com>,
	Randy Dunlap <randy.dunlap@...cle.com>,
	David Miller <davem@...emloft.net>
Subject: [PATCH 1/3] pci: add pci_dma_flags_set_dmaflush() to pci interface


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

Signed-off-by: Arthur Kepner <akepner@....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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ