aboutsummaryrefslogtreecommitdiff
path: root/drivers/mfd/glamo/glamo-drm-private.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mfd/glamo/glamo-drm-private.h')
-rw-r--r--drivers/mfd/glamo/glamo-drm-private.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/mfd/glamo/glamo-drm-private.h b/drivers/mfd/glamo/glamo-drm-private.h
index 59fbc2488c5..9442532dafe 100644
--- a/drivers/mfd/glamo/glamo-drm-private.h
+++ b/drivers/mfd/glamo/glamo-drm-private.h
@@ -29,6 +29,8 @@
#include <linux/module.h>
#include <linux/platform_device.h>
+#include <linux/spinlock.h>
+#include <linux/semaphore.h>
#include "glamo-core.h"
@@ -56,6 +58,12 @@ struct glamodrm_handle {
/* Memory management */
struct drm_mm *mmgr;
+
+ /* semaphore against concurrent ioctl */
+ struct semaphore add_to_ring;
+
+ spinlock_t new_ring_write_lock;
+ size_t new_ring_write;
};
/* Private data. This is where we keep our memory management bits */