aboutsummaryrefslogtreecommitdiff
path: root/src/drmmode_driver.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/drmmode_driver.h')
-rw-r--r--src/drmmode_driver.h33
1 files changed, 19 insertions, 14 deletions
diff --git a/src/drmmode_driver.h b/src/drmmode_driver.h
index e6c2761..f6b996b 100644
--- a/src/drmmode_driver.h
+++ b/src/drmmode_driver.h
@@ -32,21 +32,23 @@
struct drmmode_interface {
- /* Flags value to pass to DRM_IOCTL_MODE_CREATE_DUMB to allocate a scanout-capable
- * buffer. A buffer allocated with these flags must be able to be wrapped in a
- * DRM framebuffer (via DRM_IOCTL_MODE_ADDFB or DRM_IOCTL_MODE_ADDFB2).
+ /* Flags value to pass to DRM_IOCTL_MODE_CREATE_DUMB to allocate
+ * a scanout-capable buffer. A buffer allocated with these flags
+ * must be able to be wrapped in a DRM framebuffer (via
+ * DRM_IOCTL_MODE_ADDFB or DRM_IOCTL_MODE_ADDFB2).
*/
uint32_t dumb_scanout_flags;
/* Flags value to pass to DRM_IOCTL_MODE_CREATE_DUMB to allocate a
- * non-scanout-capable buffer. It is acceptable for the driver to create a
- * scanout-capable buffer when given this flag, this flag is used to give the
- * option of preserving scarce scanout-capable memory if applicable.
+ * non-scanout-capable buffer. It is acceptable for the driver to
+ * create a scanout-capable buffer when given this flag, this flag
+ * is used to give the option of preserving scarce scanout-capable
+ * memory if applicable.
*/
uint32_t dumb_no_scanout_flags;
- /* Boolean value indicating whether DRM page flip events should be requested and
- * waited for during DRM_IOCTL_MODE_PAGE_FLIP.
+ /* Boolean value indicating whether DRM page flip events should
+ * be requested and waited for during DRM_IOCTL_MODE_PAGE_FLIP.
*/
int use_page_flip_events;
@@ -56,13 +58,15 @@ struct drmmode_interface {
/* The cursor height */
int cursor_height;
- /* A padding column of pixels of this width is added to either side of the image */
+ /* A padding column of pixels of this width is added to either
+ * side of the image
+ */
int cursor_padding;
/* (Optional) Initialize the given plane for use as a hardware cursor.
*
- * This function should do any initialization necessary, for example setting the
- * z-order on the plane to appear above all other layers.
+ * This function should do any initialization necessary, for example
+ * setting the z-order on the plane to appear above all other layers.
*
* @param drm_fd The DRM device file
* @param plane_id The plane to initialize
@@ -72,14 +76,15 @@ struct drmmode_interface {
/* (Mandatory) Set the cursor image from an ARGB image
*
- * If the cursor image is ARGB this is a straight copy, otherwise it must perform
- * any necessary conversion from ARGB to the cursor format.
+ * If the cursor image is ARGB this is a straight copy, otherwise
+ * it must perform any necessary conversion from ARGB to the
+ * cursor format.
*
* @param crtc The CRTC in use
* @param [out] d Pointer to the destination cursor image
* @param [in] s Pointer to the source for the cursor image
*/
- void (*set_cursor_image)( xf86CrtcPtr crtc, uint32_t * d, CARD32 *s );
+ void (*set_cursor_image)(xf86CrtcPtr crtc, uint32_t *d, CARD32 *s);
};