OSDN Git Service

Export drmDevicesEqual
[android-x86/external-libdrm.git] / exynos / exynos_fimg2d.h
index 9db0c88..a825c68 100644 (file)
@@ -13,9 +13,6 @@
 #ifndef _FIMG2D_H_
 #define _FIMG2D_H_
 
-#define G2D_MAX_CMD_NR         64
-#define G2D_MAX_GEM_CMD_NR     64
-#define G2D_MAX_CMD_LIST_NR    64
 #define G2D_PLANE_MAX_NR       2
 
 enum e_g2d_color_mode {
@@ -289,19 +286,11 @@ struct g2d_image {
        void                            *mapped_ptr[G2D_PLANE_MAX_NR];
 };
 
-struct g2d_context {
-       int                             fd;
-       unsigned int                    major;
-       unsigned int                    minor;
-       struct drm_exynos_g2d_cmd       cmd[G2D_MAX_CMD_NR];
-       struct drm_exynos_g2d_cmd       cmd_buf[G2D_MAX_GEM_CMD_NR];
-       unsigned int                    cmd_nr;
-       unsigned int                    cmd_buf_nr;
-       unsigned int                    cmdlist_nr;
-};
+struct g2d_context;
 
 struct g2d_context *g2d_init(int fd);
 void g2d_fini(struct g2d_context *ctx);
+void g2d_config_event(struct g2d_context *ctx, void *userdata);
 int g2d_exec(struct g2d_context *ctx);
 int g2d_solid_fill(struct g2d_context *ctx, struct g2d_image *img,
                        unsigned int x, unsigned int y, unsigned int w,
@@ -310,6 +299,9 @@ int g2d_copy(struct g2d_context *ctx, struct g2d_image *src,
                struct g2d_image *dst, unsigned int src_x,
                unsigned int src_y, unsigned int dst_x, unsigned int dst_y,
                unsigned int w, unsigned int h);
+int g2d_move(struct g2d_context *ctx, struct g2d_image *img,
+               unsigned int src_x, unsigned int src_y, unsigned int dst_x,
+               unsigned dst_y, unsigned int w, unsigned int h);
 int g2d_copy_with_scale(struct g2d_context *ctx, struct g2d_image *src,
                                struct g2d_image *dst, unsigned int src_x,
                                unsigned int src_y, unsigned int src_w,