summaryrefslogtreecommitdiff
path: root/linux-core/drm_memory.h
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2004-06-10 12:48:35 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2004-06-10 12:48:35 +0000
commit373d67702c1fd6c6258ce03d3fb4fc167ff947cb (patch)
tree71912e3d12b0cdd0644ad1aecef5a7237a470ec1 /linux-core/drm_memory.h
parent0faa00ae648647b93202b1726864787e383a2ede (diff)
A few changes for recent redhat.
Diffstat (limited to 'linux-core/drm_memory.h')
-rw-r--r--linux-core/drm_memory.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/linux-core/drm_memory.h b/linux-core/drm_memory.h
index 98ea89d8..c6ea1fcc 100644
--- a/linux-core/drm_memory.h
+++ b/linux-core/drm_memory.h
@@ -61,10 +61,16 @@
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
+#ifndef pte_offset_kernel
# define pte_offset_kernel(dir, address) pte_offset(dir, address)
+#endif
+#ifndef pte_pfn
# define pte_pfn(pte) (pte_page(pte) - mem_map)
+#endif
+#ifndef pfn_to_page
# define pfn_to_page(pfn) (mem_map + (pfn))
#endif
+#endif
/*
* Find the drm_map that covers the range [offset, offset+size).