diff options
Diffstat (limited to 'shared/drm.h')
| -rw-r--r-- | shared/drm.h | 12 | 
1 files changed, 12 insertions, 0 deletions
| diff --git a/shared/drm.h b/shared/drm.h index 6f575d52..ceba2424 100644 --- a/shared/drm.h +++ b/shared/drm.h @@ -135,6 +135,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. | 
