diff options
author | Jonathan Gray <jsg@jsg.id.au> | 2013-02-25 17:07:35 +1100 |
---|---|---|
committer | Jonathan Gray <jsg@jsg.id.au> | 2013-02-25 17:07:35 +1100 |
commit | 0b873e7c952eb85ba13f548ad9456834a758d36b (patch) | |
tree | c5c7258c9f2ac159dcbbef719c56a0dcfda0be3b /sys/dev | |
parent | 9fba7f70c49cc42cd26cdd68d9287ebd1de9e2b5 (diff) |
add some callbacks and a var for upcoming vblank changes
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/drm/drmP.h | 5 |
1 files changed, 5 insertions, 0 deletions
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; |