summaryrefslogtreecommitdiffstats
path: root/sys/dev/drm/drm.h
diff options
context:
space:
mode:
authoranholt <anholt@FreeBSD.org>2004-06-11 03:26:59 +0000
committeranholt <anholt@FreeBSD.org>2004-06-11 03:26:59 +0000
commitbe5dc242b6a2d2549e38e77baf82adb7b33b042b (patch)
treedc68be4b837d82c81a81bb2cec14ded275766e76 /sys/dev/drm/drm.h
parentda6e1707d47446b0f3de71fd5a924233a2168f65 (diff)
downloadFreeBSD-src-be5dc242b6a2d2549e38e77baf82adb7b33b042b.zip
FreeBSD-src-be5dc242b6a2d2549e38e77baf82adb7b33b042b.tar.gz
Merge from DRI CVS as of 2004-05-26. Most of the meat is new PCI IDs and a new
packet for Radeon.
Diffstat (limited to 'sys/dev/drm/drm.h')
-rw-r--r--sys/dev/drm/drm.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/dev/drm/drm.h b/sys/dev/drm/drm.h
index 9ef223d..36e86b3 100644
--- a/sys/dev/drm/drm.h
+++ b/sys/dev/drm/drm.h
@@ -137,6 +137,18 @@ typedef struct drm_tex_region {
unsigned int age;
} drm_tex_region_t;
+/**
+ * Hardware lock.
+ *
+ * The lock structure is a simple cache-line aligned integer. To avoid
+ * processor bus contention on a multiprocessor system, there should not be any
+ * other data stored in the same cache line.
+ */
+typedef struct drm_hw_lock {
+ __volatile__ unsigned int lock; /**< lock variable */
+ char padding[60]; /**< Pad to cache line */
+} drm_hw_lock_t;
+
/**
* DRM_IOCTL_VERSION ioctl argument type.
OpenPOWER on IntegriCloud