From 0b873e7c952eb85ba13f548ad9456834a758d36b Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Mon, 25 Feb 2013 17:07:35 +1100 Subject: add some callbacks and a var for upcoming vblank changes --- sys/dev/pci/drm/drmP.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sys/dev') diff --git a/sys/dev/pci/drm/drmP.h b/sys/dev/pci/drm/drmP.h index 58e51442267..a2b638059a7 100644 --- a/sys/dev/pci/drm/drmP.h +++ b/sys/dev/pci/drm/drmP.h @@ -562,6 +562,9 @@ struct drm_driver_info { u_int32_t (*get_vblank_counter)(struct drm_device *, int); int (*enable_vblank)(struct drm_device *, int); void (*disable_vblank)(struct drm_device *, int); + int (*get_scanout_position)(struct drm_device *, int, int *, int *); + int (*get_vblank_timestamp)(struct drm_device *, int, int *, + struct timeval *, unsigned);; /* * driver-specific constructor for gem objects to set up private data. @@ -668,6 +671,8 @@ struct drm_device { int vblank_disable_allowed; struct drm_vblank_info *vblank; /* One per ctrc */ int *vblank_inmodeset; + /**< size of vblank counter register */ + uint32_t max_vblank_count; struct mutex event_lock; int num_crtcs; -- cgit v1.2.3