diff options
Diffstat (limited to 'linux-core/drm_compat.h')
-rw-r--r-- | linux-core/drm_compat.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/linux-core/drm_compat.h b/linux-core/drm_compat.h index f1efc1fe..88c5bb1d 100644 --- a/linux-core/drm_compat.h +++ b/linux-core/drm_compat.h @@ -391,10 +391,22 @@ extern struct page *drm_vm_sg_nopage(struct vm_area_struct *vma, #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,26) #define drm_on_each_cpu(handler, data, wait) \ - on_each_cpu(handler, data, wait) + on_each_cpu(handler, data, wait) #else #define drm_on_each_cpu(handler, data, wait) \ - on_each_cpu(handler, data, wait, 1) + on_each_cpu(handler, data, wait, 1) +#endif + +#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26)) +#define drm_core_ioremap_wc drm_core_ioremap +#endif + +#ifndef OS_HAS_GEM +#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,27)) +#define OS_HAS_GEM 1 +#else +#define OS_HAS_GEM 0 +#endif #endif #endif |