summaryrefslogtreecommitdiff
path: root/linux/drmP.h
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drmP.h')
-rw-r--r--linux/drmP.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/linux/drmP.h b/linux/drmP.h
index 8e2ecd16..f0a7ebf4 100644
--- a/linux/drmP.h
+++ b/linux/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