Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bc4b024a authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Bjorn Helgaas
Browse files

PCI: Move pci_dma_* helpers to common code



For a long time all architectures implement the pci_dma_* functions using
the generic DMA API, and they all use the same header to do so.

Move this header, pci-dma-compat.h, to include/linux and include it from
the generic pci.h instead of having each arch duplicate this include.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
parent 611609bc
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -65,13 +65,6 @@ extern void pcibios_set_master(struct pci_dev *dev);
   decisions.  */
#define PCI_DMA_BUS_IS_PHYS  0

#ifdef CONFIG_PCI

/* implement the pci_ DMA API in terms of the generic device dma_ one */
#include <asm-generic/pci-dma-compat.h>

#endif

/* TODO: integrate with include/asm-generic/pci.h ? */
static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel)
{
+0 −1
Original line number Diff line number Diff line
@@ -2,7 +2,6 @@
#define ASMARM_PCI_H

#ifdef __KERNEL__
#include <asm-generic/pci-dma-compat.h>
#include <asm/mach/pci.h> /* for pci_sys_data */

extern unsigned long pcibios_min_io;
+0 −1
Original line number Diff line number Diff line
@@ -7,7 +7,6 @@
#include <linux/dma-mapping.h>

#include <asm/io.h>
#include <asm-generic/pci-dma-compat.h>

#define PCIBIOS_MIN_IO		0x1000
#define PCIBIOS_MIN_MEM		0
+0 −2
Original line number Diff line number Diff line
@@ -5,6 +5,4 @@

#define PCI_DMA_BUS_IS_PHYS	(1)

#include <asm-generic/pci-dma-compat.h>

#endif /* __ASM_AVR32_PCI_H__ */
+0 −1
Original line number Diff line number Diff line
@@ -4,7 +4,6 @@
#define _ASM_BFIN_PCI_H

#include <linux/scatterlist.h>
#include <asm-generic/pci-dma-compat.h>
#include <asm-generic/pci.h>

#define PCIBIOS_MIN_IO 0x00001000
Loading