summaryrefslogtreecommitdiff
path: root/linux-core/drm_compat.h
diff options
context:
space:
mode:
authorMichel Dänzer <michel@tungstengraphics.com>2007-09-07 20:17:49 +0200
committerMichel Dänzer <michel@tungstengraphics.com>2007-09-07 20:17:49 +0200
commitb257bbe48a0851d27150d21cd124af2dc3e53385 (patch)
treec230ae915264a7249a23c0f858265cfe12622554 /linux-core/drm_compat.h
parentcbf7c5cace00d23f6b694977aa058026b9d39e9f (diff)
parent06bb07259531d10df2c1979919af899e3812057b (diff)
Merge remote branch 'upstream/master' into i915-zone-renderingi915-zone-rendering
Conflicts: linux-core/drm_bo.c linux-core/drm_objects.h linux-core/i915_buffer.c shared-core/i915_dma.c shared-core/i915_drm.h shared-core/i915_drv.h shared-core/i915_irq.c
Diffstat (limited to 'linux-core/drm_compat.h')
-rw-r--r--linux-core/drm_compat.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/linux-core/drm_compat.h b/linux-core/drm_compat.h
index bc5fadc5..0b00ba47 100644
--- a/linux-core/drm_compat.h
+++ b/linux-core/drm_compat.h
@@ -305,4 +305,15 @@ extern int drm_bo_remap_bound(struct drm_buffer_object *bo);
extern int drm_bo_map_bound(struct vm_area_struct *vma);
#endif
+
+/* fixme when functions are upstreamed - upstreamed for 2.6.23 */
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23))
+#define DRM_IDR_COMPAT_FN
+#endif
+#ifdef DRM_IDR_COMPAT_FN
+int idr_for_each(struct idr *idp,
+ int (*fn)(int id, void *p, void *data), void *data);
+void idr_remove_all(struct idr *idp);
+#endif
+
#endif