diff options
author | Alan Hourihane <alanh@fairlite.demon.co.uk> | 2000-09-24 09:34:10 +0000 |
---|---|---|
committer | Alan Hourihane <alanh@fairlite.demon.co.uk> | 2000-09-24 09:34:10 +0000 |
commit | c7558d8fa4df805b7f7ff3d631432eadac9b8a1c (patch) | |
tree | 3275f130db9176a55470713b02c13fb1feb7fbdb /linux/drmP.h | |
parent | b1aa228f7d7390f8b9a361f862d724b908d5a71f (diff) |
commit xfree86 4.0.1d-pre update
Diffstat (limited to 'linux/drmP.h')
-rw-r--r-- | linux/drmP.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/linux/drmP.h b/linux/drmP.h index 2bfd4bef..bfd124dd 100644 --- a/linux/drmP.h +++ b/linux/drmP.h @@ -28,6 +28,7 @@ * Rickard E. (Rik) Faith <faith@valinux.com> * */ +/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/drmP.h,v 1.9 2000/08/28 02:43:14 tsi Exp $ */ #ifndef _DRM_P_H_ #define _DRM_P_H_ @@ -152,6 +153,11 @@ typedef struct wait_queue *wait_queue_head_t; #define module_exit(x) void cleanup_module(void) { x(); } #endif + /* virt_to_page added in 2.4.0-test6 */ +#if LINUX_VERSION_CODE < 0x020400 +#define virt_to_page(kaddr) (mem_map + MAP_NR(kaddr)) +#endif + /* Generic cmpxchg added in 2.3.x */ #ifndef __HAVE_ARCH_CMPXCHG /* Include this here so that driver can be |