diff options
author | Rik Faith <faith@alephnull.com> | 2000-08-08 16:04:21 +0000 |
---|---|---|
committer | Rik Faith <faith@alephnull.com> | 2000-08-08 16:04:21 +0000 |
commit | 8b9363d1b1f7bc40fb68261f7659dea5124f2821 (patch) | |
tree | 5292870b287ab2ad5ca0ea71487115b158c6d507 /linux/drmP.h | |
parent | 9199075a6a975ebcc44aff53fe0f77080c01a30b (diff) |
Sync with Linux 2.4.0-test6-pre8ati-4-0-2-branch
Diffstat (limited to 'linux/drmP.h')
-rw-r--r-- | linux/drmP.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/linux/drmP.h b/linux/drmP.h index 516e9b22..4f85d07c 100644 --- a/linux/drmP.h +++ b/linux/drmP.h @@ -139,6 +139,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 */ +#ifndef virt_to_page +#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 |