From 373d67702c1fd6c6258ce03d3fb4fc167ff947cb Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Thu, 10 Jun 2004 12:48:35 +0000 Subject: A few changes for recent redhat. --- linux/drm_memory.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'linux/drm_memory.h') diff --git a/linux/drm_memory.h b/linux/drm_memory.h index 98ea89d8..c6ea1fcc 100644 --- a/linux/drm_memory.h +++ b/linux/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). -- cgit v1.2.3