Merge branch 'modesetting-dirty-libdrm'
[platform/upstream/libdrm.git] / include / drm / drm.h
index 9460e2e..4822159 100644 (file)
@@ -46,6 +46,8 @@ typedef unsigned int drm_handle_t;
 
 #include <sys/ioccom.h>
 #include <sys/types.h>
+typedef int8_t   __s8;
+typedef uint8_t  __u8;
 typedef int16_t  __s16;
 typedef uint16_t __u16;
 typedef int32_t  __s32;
@@ -694,6 +696,10 @@ struct drm_gem_open {
 #define DRM_IOCTL_MODE_GETFB           DRM_IOWR(0xAD, struct drm_mode_fb_cmd)
 #define DRM_IOCTL_MODE_ADDFB           DRM_IOWR(0xAE, struct drm_mode_fb_cmd)
 #define DRM_IOCTL_MODE_RMFB            DRM_IOWR(0xAF, unsigned int)
+#define DRM_IOCTL_MODE_PAGE_FLIP       DRM_IOWR(0xB0, struct drm_mode_crtc_page_flip)
+#define DRM_IOCTL_MODE_DIRTYFB         DRM_IOWR(0xB1, struct drm_mode_fb_dirty_cmd)
+
+/*@}*/
 
 /**
  * Device specific ioctls should only be in their respective headers
@@ -724,6 +730,7 @@ struct drm_event {
 };
 
 #define DRM_EVENT_VBLANK 0x01
+#define DRM_EVENT_FLIP_COMPLETE 0x02
 
 struct drm_event_vblank {
        struct drm_event base;