summaryrefslogtreecommitdiff
path: root/linux-core/drm_memory.h
diff options
context:
space:
mode:
Diffstat (limited to 'linux-core/drm_memory.h')
-rw-r--r--linux-core/drm_memory.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/linux-core/drm_memory.h b/linux-core/drm_memory.h
index 3a31e74b..e3ac883d 100644
--- a/linux-core/drm_memory.h
+++ b/linux-core/drm_memory.h
@@ -160,9 +160,9 @@ static inline unsigned long drm_follow_page(void *vaddr)
{
return 0;
}
-
#endif
+#ifndef DEBUG_MEMORY
static inline void *drm_ioremap(unsigned long offset, unsigned long size,
drm_device_t * dev)
{
@@ -218,3 +218,11 @@ static inline void drm_ioremapfree(void *pt, unsigned long size,
#endif
iounmap(pt);
}
+#else
+extern void *drm_ioremap(unsigned long offset, unsigned long size,
+ drm_device_t * dev);
+extern void *drm_ioremap_nocache(unsigned long offset,
+ unsigned long size, drm_device_t * dev);
+extern void drm_ioremapfree(void *pt, unsigned long size,
+ drm_device_t * dev);
+#endif