pci: add pci_dma_flags_set_dmaflush() to pci interface
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 <[email protected]>
--
pci.h | 7 +++++++ 1 file changed, 7 insertions(+)
include/linux/pci.h +7 -0
@@ -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.
Signature · 1 line
Arthur