From 97961e2c65773328fe9c2e1d66e4a0b8a253d54d Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 26 Sep 2002 07:45:07 +0000 Subject: BSD vblank framework. --- bsd/drm.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'bsd/drm.h') diff --git a/bsd/drm.h b/bsd/drm.h index 376568e0..f45f088e 100644 --- a/bsd/drm.h +++ b/bsd/drm.h @@ -345,6 +345,18 @@ typedef struct drm_irq_busid { int funcnum; } drm_irq_busid_t; +typedef enum { + _DRM_VBLANK_ABSOLUTE = 0x0, /* Wait for specific vblank sequence number */ + _DRM_VBLANK_RELATIVE = 0x1 /* Wait for given number of vblanks */ +} drm_vblank_seq_type_t; + +typedef struct drm_radeon_vbl_wait { + drm_vblank_seq_type_t type; + unsigned int sequence; + long tval_sec; + long tval_usec; +} drm_wait_vblank_t; + typedef struct drm_agp_mode { unsigned long mode; } drm_agp_mode_t; @@ -439,6 +451,8 @@ typedef struct drm_scatter_gather { #define DRM_IOCTL_SG_ALLOC DRM_IOW( 0x38, drm_scatter_gather_t) #define DRM_IOCTL_SG_FREE DRM_IOW( 0x39, drm_scatter_gather_t) +#define DRM_IOCTL_WAIT_VBLANK DRM_IOWR(0x3a, drm_wait_vblank_t) + /* Device specfic ioctls should only be in their respective headers * The device specific ioctl range is 0x40 to 0x79. */ #define DRM_COMMAND_BASE 0x40 -- cgit v1.2.3