summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2007-07-18 14:22:40 -0700
committerEric Anholt <eric@anholt.net>2007-07-18 14:22:49 -0700
commit33a50412c21229610dbb75dee83f145e2f1ec128 (patch)
tree6650884616ddde0ddf3fb64b91a26048e81a23b9 /linux-core
parent3f04fe7890fe7728e7df37a6b65ad328a46699bf (diff)
Add dry-coded DRM drawable private information storage for FreeBSD.
With this, all modules build again.
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/drmP.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/linux-core/drmP.h b/linux-core/drmP.h
index 2bbc6200..3b2176c9 100644
--- a/linux-core/drmP.h
+++ b/linux-core/drmP.h
@@ -1264,5 +1264,19 @@ static inline void drm_ctl_free(void *pt, size_t size, int area)
/*@}*/
+/** Type for the OS's non-sleepable mutex lock */
+#define DRM_SPINTYPE spinlock_t
+/**
+ * Initialize the lock for use. name is an optional string describing the
+ * lock
+ */
+#define DRM_SPININIT(l,name) spin_lock_init(l);
+#define DRM_SPINUNINIT(l)
+#define DRM_SPINLOCK(l) spin_lock(l);
+#define DRM_SPINUNLOCK(u) spin_unlock(l);
+#define DRM_SPINLOCK_IRQSAVE(l, flags) spin_lock_irqflags(l, _flags);
+#define DRM_SPINUNLOCK_IRQRESTORE(u, flags) spin_unlock_irqrestore(l, _flags);
+#define DRM_SPINLOCK_ASSERT(l) do {} while (0)
+
#endif /* __KERNEL__ */
#endif