summaryrefslogtreecommitdiff
path: root/linux-core/drmP.h
diff options
context:
space:
mode:
authorJeff Hartmann <jhartmann@valinux.com>2001-08-13 23:23:47 +0000
committerJeff Hartmann <jhartmann@valinux.com>2001-08-13 23:23:47 +0000
commitaa09e3611490d6a2f12f211c3c834f1237126313 (patch)
tree0938669d60d1697e119ed218f276aaa38830e29e /linux-core/drmP.h
parent2d4b2cf6f69de2ceaf0c2b00ccbb24aad412b202 (diff)
Sync with Linus 2.4.9-pre2 + make all nopage routines more alike
Diffstat (limited to 'linux-core/drmP.h')
-rw-r--r--linux-core/drmP.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/linux-core/drmP.h b/linux-core/drmP.h
index 8e2ecd16..f0a7ebf4 100644
--- a/linux-core/drmP.h
+++ b/linux-core/drmP.h
@@ -76,6 +76,11 @@
#include <asm/pgalloc.h>
#include "drm.h"
+/* page_to_bus for earlier kernels, not optimal in all cases */
+#ifndef page_to_bus
+#define page_to_bus(page) (virt_to_bus(page_address(page)))
+#endif
+
/* DRM template customization defaults
*/
#ifndef __HAVE_AGP