@@ -104,6 +104,22 @@ struct fence_cb {
fence_func_t func;
};
+typedef void (*collection_put_func_t)(void *data);
+
+/**
+ * struct fence_collection - aggregate fences together
+ * @num_fences: number of fence in the collection.
+ * @user_data: user data.
+ * @func: user callback to put user data.
+ * @fences: array of @num_fences fences.
+ */
+struct fence_collection {
+ int num_fences;
+ void *user_data;
+ collection_put_func_t func;
+ struct fence *fences[];
+};
+
/**
* struct fence_ops - operations implemented for fence
* @get_driver_name: returns the driver name.