Skip to content

Commit 17a99e5

Browse files
committed
tools headers UAPI: Update tools's copy of drm.h headers
Picking the changes from: 17ce9c6 ("drm: document DRM_IOCTL_MODE_RMFB") Doesn't result in any tooling changes: $ tools/perf/trace/beauty/drm_ioctl.sh > before $ cp include/uapi/drm/drm.h tools/include/uapi/drm/drm.h $ tools/perf/trace/beauty/drm_ioctl.sh > after $ diff -u before after Silencing these perf build warnings: Warning: Kernel ABI header at 'tools/include/uapi/drm/drm.h' differs from latest version at 'include/uapi/drm/drm.h' diff -u tools/include/uapi/drm/drm.h include/uapi/drm/drm.h Cc: Simon Ser <[email protected]> Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent 4dc24d7 commit 17a99e5

File tree

1 file changed

+12
-2
lines changed
  • tools/include/uapi/drm

1 file changed

+12
-2
lines changed

tools/include/uapi/drm/drm.h

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -635,8 +635,8 @@ struct drm_gem_open {
635635
/**
636636
* DRM_CAP_VBLANK_HIGH_CRTC
637637
*
638-
* If set to 1, the kernel supports specifying a CRTC index in the high bits of
639-
* &drm_wait_vblank_request.type.
638+
* If set to 1, the kernel supports specifying a :ref:`CRTC index<crtc_index>`
639+
* in the high bits of &drm_wait_vblank_request.type.
640640
*
641641
* Starting kernel version 2.6.39, this capability is always set to 1.
642642
*/
@@ -1050,6 +1050,16 @@ extern "C" {
10501050
#define DRM_IOCTL_MODE_GETPROPBLOB DRM_IOWR(0xAC, struct drm_mode_get_blob)
10511051
#define DRM_IOCTL_MODE_GETFB DRM_IOWR(0xAD, struct drm_mode_fb_cmd)
10521052
#define DRM_IOCTL_MODE_ADDFB DRM_IOWR(0xAE, struct drm_mode_fb_cmd)
1053+
/**
1054+
* DRM_IOCTL_MODE_RMFB - Remove a framebuffer.
1055+
*
1056+
* This removes a framebuffer previously added via ADDFB/ADDFB2. The IOCTL
1057+
* argument is a framebuffer object ID.
1058+
*
1059+
* Warning: removing a framebuffer currently in-use on an enabled plane will
1060+
* disable that plane. The CRTC the plane is linked to may also be disabled
1061+
* (depending on driver capabilities).
1062+
*/
10531063
#define DRM_IOCTL_MODE_RMFB DRM_IOWR(0xAF, unsigned int)
10541064
#define DRM_IOCTL_MODE_PAGE_FLIP DRM_IOWR(0xB0, struct drm_mode_crtc_page_flip)
10551065
#define DRM_IOCTL_MODE_DIRTYFB DRM_IOWR(0xB1, struct drm_mode_fb_dirty_cmd)

0 commit comments

Comments
 (0)