Refactor out shim code
[chai.git] / shim.h
diff --git a/shim.h b/shim.h
index bc366384082e3574ed8d1fca3a9f86f24ef4320b..ab02d411d2ffbcf2d8096b809445756ba683710a 100644 (file)
--- a/shim.h
+++ b/shim.h
@@ -26,3 +26,12 @@ typedef uint64_t u64;
 
 /* Include the shim directly. */
 #include "midgard/mali_kbase_uku.h"
+
+/* Include definitions for thin chai wrappers */
+
+int open_kernel_module();
+uint64_t alloc_gpu_pages(int fd, int pages, int e_flags);
+void free_gpu(int fd, uint64_t addr);
+void sync_gpu(int fd, uint8_t* cpu, uint64_t gpu, int pages);
+void submit_job(int fd, struct base_jd_atom_v2 *atoms, size_t count);
+uint8_t* mmap_gpu(int fd, uint64_t addr, int page_count);