From aa09e3611490d6a2f12f211c3c834f1237126313 Mon Sep 17 00:00:00 2001 From: Jeff Hartmann Date: Mon, 13 Aug 2001 23:23:47 +0000 Subject: Sync with Linus 2.4.9-pre2 + make all nopage routines more alike --- linux-core/drmP.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'linux-core/drmP.h') 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 #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 -- cgit v1.2.3