]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/kernel-video.git/blobdiff - include/linux/gccore.h
Merge branch 'p-ti-android-3.8.y-video'
[android-sdk/kernel-video.git] / include / linux / gccore.h
diff --git a/include/linux/gccore.h b/include/linux/gccore.h
new file mode 100644 (file)
index 0000000..ae64f2f
--- /dev/null
@@ -0,0 +1,41 @@
+/*
+ * gccore.h
+ *
+ * Copyright (C) 2010-2011 Vivante Corporation.
+ *
+ * This package is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+ * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+ */
+
+#ifndef GCCORE_H
+#define GCCORE_H
+
+#include "sched.h"
+#include "gcioctl.h"
+
+
+/* Hw availability query */
+bool gc_is_hw_present(void);
+
+/* Capability query. */
+void gc_caps(struct gcicaps *gcicaps);
+
+/* Command buffer submission. */
+void gc_commit(struct gcicommit *gcicommit, bool fromuser);
+
+/* Client memory mapping. */
+void gc_map(struct gcimap *gcimap, bool fromuser);
+void gc_unmap(struct gcimap *gcimap, bool fromuser);
+
+/* Arm a callback. */
+void gc_callback(struct gcicallbackarm *gcicallbackarm, bool fromuser);
+
+/* Process cleanup. */
+void gc_release(void);
+
+#endif