Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

generic: add ioremap_wc() interface wrapper

x86 has ioremap_wc for wc remap. Also introduce a generic ioremap_wc
aliased to ioremap_uc so that drivers can use this interface transparently.

Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

authored by

venkatesh.pallipadi@intel.com and committed by
Ingo Molnar
1526a756 1f56cf1c

+4
+4
include/asm-generic/iomap.h
··· 60 60 extern void __iomem *ioport_map(unsigned long port, unsigned int nr); 61 61 extern void ioport_unmap(void __iomem *); 62 62 63 + #ifndef ARCH_HAS_IOREMAP_WC 64 + #define ioremap_wc ioremap_nocache 65 + #endif 66 + 63 67 /* Create a virtual mapping cookie for a PCI BAR (memory or IO) */ 64 68 struct pci_dev; 65 69 extern void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long max);