Lines 7-12
Link Here
|
7 |
References: None. |
7 |
References: None. |
8 |
|
8 |
|
9 |
Author: Karl Lessard <klessard@matrox.com> |
9 |
Author: Karl Lessard <klessard@matrox.com> |
|
|
10 |
2.6.x Updates: Alexander Griesser <matrox@tuxx-home.at> |
10 |
|
11 |
|
11 |
Copyright (c) 2001, Matrox Graphics Inc. |
12 |
Copyright (c) 2001, Matrox Graphics Inc. |
12 |
All Rights Reserved. |
13 |
All Rights Reserved. |
Lines 95-116
Link Here
|
95 |
|
96 |
|
96 |
#endif |
97 |
#endif |
97 |
|
98 |
|
98 |
/* Special macros for linux kernel 2.6.10 and upwards */ |
99 |
/* Special macros for linux kernel 2.6.12 and upwards |
99 |
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,10)) |
100 |
* because agp_backend.h has been changed again to support |
|
|
101 |
* multiple agp_bridges, yeah */ |
102 |
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,12)) |
103 |
|
104 |
#define AGPGART_HAS_BRIDGES |
105 |
|
106 |
#define MTX_AGPGART_BACKEND_ACQUIRE(o) agp_backend_acquire(o) |
107 |
#define MTX_AGPGART_ALLOCATE_MEMORY(o,count,type) agp_allocate_memory(o,count,type) |
108 |
#define MTX_AGPGART_COPY_INFO(o,p) agp_copy_info(o,p) |
109 |
#define MTX_AGPGART_BACKEND_ENABLE(o,mode) agp_enable(o,mode) |
110 |
#define MTX_AGPGART_BACKEND_RELEASE(o) agp_backend_release(o) |
111 |
#define MTX_AGPGART_FREE_MEMORY(o) agp_free_memory(o) |
112 |
#define MTX_AGPGART_BIND_MEMORY(o,offset) agp_bind_memory(o,offset) |
113 |
#define MTX_AGPGART_UNBIND_MEMORY(o) agp_unbind_memory(o) |
114 |
#endif |
115 |
|
116 |
/* Special macros for linux kernel >= 2.6.10 to < 2.6.12 */ |
117 |
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,10) && LINUX_VERSION_CODE < KERNEL_VERSION(2,6,12)) |
100 |
|
118 |
|
101 |
#define MTX_AGPGART_BACKEND_ACQUIRE(o) agp_backend_acquire() |
119 |
#define MTX_AGPGART_BACKEND_ACQUIRE(o) agp_backend_acquire() |
|
|
120 |
#define MTX_AGPGART_ALLOCATE_MEMORY(o,count,type) agp_allocate_memory(count,type) |
121 |
#define MTX_AGPGART_COPY_INFO(o,p) agp_copy_info(p) |
102 |
#define MTX_AGPGART_BACKEND_ENABLE(o,mode) agp_enable(mode) |
122 |
#define MTX_AGPGART_BACKEND_ENABLE(o,mode) agp_enable(mode) |
103 |
#define MTX_AGPGART_BACKEND_RELEASE(o) agp_backend_release() |
123 |
#define MTX_AGPGART_BACKEND_RELEASE(o) agp_backend_release() |
104 |
#define MTX_AGPGART_COPY_INFO(o,p) agp_copy_info(p) |
|
|
105 |
#define MTX_AGPGART_ALLOCATE_MEMORY(o,count,type) agp_allocate_memory(count,type) |
106 |
#define MTX_AGPGART_FREE_MEMORY(o,p) agp_free_memory(p) |
124 |
#define MTX_AGPGART_FREE_MEMORY(o,p) agp_free_memory(p) |
107 |
#define MTX_AGPGART_BIND_MEMORY(o,p,offset) agp_bind_memory(p,offset) |
125 |
#define MTX_AGPGART_BIND_MEMORY(o,p,offset) agp_bind_memory(p,offset) |
108 |
#define MTX_AGPGART_UNBIND_MEMORY(o,p) agp_unbind_memory(p) |
126 |
#define MTX_AGPGART_UNBIND_MEMORY(o,p) agp_unbind_memory(p) |
|
|
127 |
#endif |
109 |
|
128 |
|
110 |
#else |
129 |
/* For kernels < 2.6.10 (including all 2.4 kernels) */ |
|
|
130 |
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,10)) |
111 |
|
131 |
|
112 |
#define AGPBACKEND |
132 |
#define AGPBACKEND |
113 |
|
133 |
|
114 |
#define MTX_AGPGART_BACKEND_ACQUIRE(o) (o)->acquire() |
134 |
#define MTX_AGPGART_BACKEND_ACQUIRE(o) (o)->acquire() |
115 |
#define MTX_AGPGART_BACKEND_ENABLE(o,mode) (o)->enable(mode) |
135 |
#define MTX_AGPGART_BACKEND_ENABLE(o,mode) (o)->enable(mode) |
116 |
#define MTX_AGPGART_BACKEND_RELEASE(o) (o) ->release() |
136 |
#define MTX_AGPGART_BACKEND_RELEASE(o) (o) ->release() |