From c7558d8fa4df805b7f7ff3d631432eadac9b8a1c Mon Sep 17 00:00:00 2001 From: Alan Hourihane Date: Sun, 24 Sep 2000 09:34:10 +0000 Subject: commit xfree86 4.0.1d-pre update --- linux/drmP.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'linux/drmP.h') 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 * */ +/* $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_ @@ -150,6 +151,11 @@ typedef struct wait_queue *wait_queue_head_t; #endif #ifndef module_exit #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 */ -- cgit v1.2.3