From c6750c23857b3aafad8b6c40beb711b3ef89a2de Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fran=C3=A7ois=20Tigeot?= Date: Sun, 24 Jan 2016 10:10:06 +0100 Subject: [PATCH] kernel/linux: Add ioremap_nocache() --- sys/dev/drm/include/asm/io.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/sys/dev/drm/include/asm/io.h b/sys/dev/drm/include/asm/io.h index f4845a614d..1c5237cbaf 100644 --- a/sys/dev/drm/include/asm/io.h +++ b/sys/dev/drm/include/asm/io.h @@ -53,8 +53,8 @@ #include -/* ioremap: map bus memory into CPU space */ -static inline void __iomem *ioremap(resource_size_t offset, unsigned long size) +/* ioremap function family: map bus addresses into CPU space */ +static inline void __iomem *ioremap_nocache(resource_size_t offset, unsigned long size) { return pmap_mapdev_uncacheable(offset, size); } @@ -64,6 +64,11 @@ static inline void __iomem *ioremap_wc(resource_size_t phys_addr, unsigned long return pmap_mapdev_attr(phys_addr, size, VM_MEMATTR_WRITE_COMBINING); } +static inline void __iomem *ioremap(resource_size_t offset, unsigned long size) +{ + return ioremap_nocache(offset, size); +} + static inline void iounmap(void __iomem *ptr, unsigned long size) { pmap_unmapdev((vm_offset_t) ptr, size); -- 2.11.4.GIT