rk: restore file mode
[firefly-linux-kernel-4.4.55.git] / drivers / staging / android / ion / ion.h
index dcd2a0cdb192ed51f63c27da409bd8bfa7a2d026..a9ed374c641187f9a2bb0e97ae11514cbb423bdf 100644 (file)
@@ -201,4 +201,23 @@ int ion_share_dma_buf_fd(struct ion_client *client, struct ion_handle *handle);
  */
 struct ion_handle *ion_import_dma_buf(struct ion_client *client, int fd);
 
+/**
+ * ion_handle_get() - ref ion buffer.
+ */
+void ion_handle_get(struct ion_handle *handle);
+/**
+ * ion_handle_put() - unref ion buffer.
+ */
+int ion_handle_put(struct ion_handle *handle);
+
+#ifdef CONFIG_ARCH_ROCKCHIP
+struct device;
+
+int ion_map_iommu(struct device *iommu_dev, struct ion_client *client,
+                 struct ion_handle *handle, unsigned long *iova,
+                 unsigned long *size);
+
+void ion_unmap_iommu(struct device *iommu_dev, struct ion_client *client,
+                    struct ion_handle *handle);
+#endif
 #endif /* _LINUX_ION_H */