aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm/drmP.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/drm/drmP.h')
-rw-r--r--include/drm/drmP.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h
index 8ba35c622e22..e928625a9da0 100644
--- a/include/drm/drmP.h
+++ b/include/drm/drmP.h
@@ -143,6 +143,7 @@ void drm_err(const char *format, ...);
143#define DRIVER_MODESET 0x2000 143#define DRIVER_MODESET 0x2000
144#define DRIVER_PRIME 0x4000 144#define DRIVER_PRIME 0x4000
145#define DRIVER_RENDER 0x8000 145#define DRIVER_RENDER 0x8000
146#define DRIVER_ATOMIC 0x10000
146 147
147/***********************************************************************/ 148/***********************************************************************/
148/** \name Macros to make printk easier */ 149/** \name Macros to make printk easier */
@@ -283,6 +284,8 @@ struct drm_file {
283 * in the plane list 284 * in the plane list
284 */ 285 */
285 unsigned universal_planes:1; 286 unsigned universal_planes:1;
287 /* true if client understands atomic properties */
288 unsigned atomic:1;
286 289
287 struct pid *pid; 290 struct pid *pid;
288 kuid_t uid; 291 kuid_t uid;
@@ -744,8 +747,6 @@ struct drm_device {
744 747
745 /** \name Context support */ 748 /** \name Context support */
746 /*@{ */ 749 /*@{ */
747 bool irq_enabled; /**< True if irq handler is enabled */
748 int irq;
749 750
750 __volatile__ long context_flag; /**< Context swapping flag */ 751 __volatile__ long context_flag; /**< Context swapping flag */
751 int last_context; /**< Last current context */ 752 int last_context; /**< Last current context */
@@ -753,6 +754,8 @@ struct drm_device {
753 754
754 /** \name VBLANK IRQ support */ 755 /** \name VBLANK IRQ support */
755 /*@{ */ 756 /*@{ */
757 bool irq_enabled;
758 int irq;
756 759
757 /* 760 /*
758 * At load time, disabling the vblank interrupt won't be allowed since 761 * At load time, disabling the vblank interrupt won't be allowed since
@@ -901,11 +904,15 @@ extern int drm_vblank_init(struct drm_device *dev, int num_crtcs);
901extern int drm_wait_vblank(struct drm_device *dev, void *data, 904extern int drm_wait_vblank(struct drm_device *dev, void *data,
902 struct drm_file *filp); 905 struct drm_file *filp);
903extern u32 drm_vblank_count(struct drm_device *dev, int crtc); 906extern u32 drm_vblank_count(struct drm_device *dev, int crtc);
907extern u32 drm_crtc_vblank_count(struct drm_crtc *crtc);
904extern u32 drm_vblank_count_and_time(struct drm_device *dev, int crtc, 908extern u32 drm_vblank_count_and_time(struct drm_device *dev, int crtc,
905 struct timeval *vblanktime); 909 struct timeval *vblanktime);
906extern void drm_send_vblank_event(struct drm_device *dev, int crtc, 910extern void drm_send_vblank_event(struct drm_device *dev, int crtc,
907 struct drm_pending_vblank_event *e); 911 struct drm_pending_vblank_event *e);
912extern void drm_crtc_send_vblank_event(struct drm_crtc *crtc,
913 struct drm_pending_vblank_event *e);
908extern bool drm_handle_vblank(struct drm_device *dev, int crtc); 914extern bool drm_handle_vblank(struct drm_device *dev, int crtc);
915extern bool drm_crtc_handle_vblank(struct drm_crtc *crtc);
909extern int drm_vblank_get(struct drm_device *dev, int crtc); 916extern int drm_vblank_get(struct drm_device *dev, int crtc);
910extern void drm_vblank_put(struct drm_device *dev, int crtc); 917extern void drm_vblank_put(struct drm_device *dev, int crtc);
911extern int drm_crtc_vblank_get(struct drm_crtc *crtc); 918extern int drm_crtc_vblank_get(struct drm_crtc *crtc);
@@ -950,6 +957,7 @@ extern void drm_master_put(struct drm_master **master);
950extern void drm_put_dev(struct drm_device *dev); 957extern void drm_put_dev(struct drm_device *dev);
951extern void drm_unplug_dev(struct drm_device *dev); 958extern void drm_unplug_dev(struct drm_device *dev);
952extern unsigned int drm_debug; 959extern unsigned int drm_debug;
960extern bool drm_atomic;
953 961
954 /* Debugfs support */ 962 /* Debugfs support */
955#if defined(CONFIG_DEBUG_FS) 963#if defined(CONFIG_DEBUG_FS)