intel: Add new userptr ioctl
[platform/upstream/libdrm.git] / intel / intel_bufmgr_priv.h
index 87e91e7..2592d42 100644 (file)
@@ -177,8 +177,8 @@ struct _drm_intel_bufmgr {
         * ring buffer
         */
        int (*bo_mrb_exec) (drm_intel_bo *bo, int used,
-                       drm_clip_rect_t *cliprects, int num_cliprects,
-                       int DR4, int ring_flag);
+                           drm_clip_rect_t *cliprects, int num_cliprects,
+                           int DR4, unsigned flags);
 
        /**
         * Pin a buffer to the aperture and fix the offset until unpinned
@@ -280,6 +280,11 @@ struct _drm_intel_bufmgr {
        int debug;
 };
 
+struct _drm_intel_context {
+       unsigned int ctx_id;
+       struct _drm_intel_bufmgr *bufmgr;
+};
+
 #define ALIGN(value, alignment)        ((value + alignment - 1) & ~(alignment - 1))
 #define ROUND_UP_TO(x, y)      (((x) + (y) - 1) / (y) * (y))
 #define ROUND_UP_TO_MB(x)      ROUND_UP_TO((x), 1024*1024)