summaryrefslogtreecommitdiff
path: root/linux/drm_os_linux.h
diff options
context:
space:
mode:
authorLeif Delgass <ldelgass@users.sourceforge.net>2003-04-28 17:49:26 +0000
committerLeif Delgass <ldelgass@users.sourceforge.net>2003-04-28 17:49:26 +0000
commit5f1e2399eb5b76537c91fc9aba2569f2c289a284 (patch)
treeb29b92262fdaf66b7827ced91c769e01aea6a92a /linux/drm_os_linux.h
parenta57d3204613922ee07e56209169e4b4ce1f17754 (diff)
Restore Eric Anholt's DRM_*MEMORYBARRIER changes from rev 1.11
Diffstat (limited to 'linux/drm_os_linux.h')
-rw-r--r--linux/drm_os_linux.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/linux/drm_os_linux.h b/linux/drm_os_linux.h
index e0ab6a786..e804399a3 100644
--- a/linux/drm_os_linux.h
+++ b/linux/drm_os_linux.h
@@ -12,8 +12,9 @@
#define DRM_READ32(map, offset) readl(((unsigned long)(map)->handle) + (offset))
#define DRM_WRITE8(map, offset, val) writeb(val, ((unsigned long)(map)->handle) + (offset))
#define DRM_WRITE32(map, offset, val) writel(val, ((unsigned long)(map)->handle) + (offset))
-#define DRM_READMEMORYBARRIER(v) rmb()
-#define DRM_WRITEMEMORYBARRIER(v) wmb()
+#define DRM_READMEMORYBARRIER() rmb()
+#define DRM_WRITEMEMORYBARRIER() wmb()
+#define DRM_MEMORYBARRIER() mb()
#define DRM_DEVICE drm_file_t *priv = filp->private_data; \
drm_device_t *dev = priv->dev