]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/kernel-video.git/commitdiff
gc320: Add header for dsscomp and optional bltsville data from Android HWC
authorTony Lofthouse <a0741364@ti.com>
Tue, 2 Apr 2013 15:09:06 +0000 (10:09 -0500)
committerPraneeth Bajjuri <praneeth@ti.com>
Fri, 12 Jul 2013 22:45:14 +0000 (17:45 -0500)
In order to support the OMAP4470 GC320 blit IP from HWC, we will
optionally add blit data to the payload of information passed from
HWC to the SGX display driver (OMAPLFB).

Change-Id: I016660ee1f266c1456540b8b60115cf4c8bc49a6
Signed-off-by: Arthur Philpott <arthur.philpott@ti.com>
include/video/omap_hwc.h [new file with mode: 0644]

diff --git a/include/video/omap_hwc.h b/include/video/omap_hwc.h
new file mode 100644 (file)
index 0000000..0fb31f1
--- /dev/null
@@ -0,0 +1,46 @@
+/*
+ *
+ * Copyright (C) 2012 Texas Instruments
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the
+ * Free Software Foundation; either version 2 of the License, or (at your
+ * option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+ */
+
+#ifndef _LINUX_OMAP_HWC_H
+#define _LINUX_OMAP_HWC_H
+
+struct rgz_blt_entry {
+       struct bvbltparams bp;
+       struct bvsurfgeom dstgeom;
+       struct bvsurfgeom src1geom;
+       struct bvbuffdesc src1desc;
+       struct bvsurfgeom src2geom;
+       struct bvbuffdesc src2desc;
+};
+
+struct omap_hwc_blit_data {
+       /* if rgz_items is 0 there is nothing to blit */
+       __u16 rgz_items;
+       struct rgz_blt_entry rgz_blts[0];
+};
+
+/*
+ * This structure is passed down from the Android HWC HAL
+ */
+struct omap_hwc_data {
+       struct dsscomp_setup_dispc_data dsscomp_data;
+       struct omap_hwc_blit_data blit_data;
+};
+
+#endif