drm-misc-next for v5.12: Core Changes: - Lots of drm documentation updates by Simor Ser. - Require that each crtc has a unique primary plane. - Add fixme that fbdev_generic_setup is confusing. Driver Changes: - Update addresses for TI display drivers maintainers. - Make DRM_VIRTIO_GPU select VIRTIO. - Small fixes to qxl, virtio, hisilicon, tve200, panel/s6e63m0.
Showing the changes to include/uapi (1 of 15 files). Show all
Unified · Split
| @@ -1,11 +1,10 @@ | ||
| 1 | −/** | |
| 2 | − * \file drm.h | |
| 1 | +/* | |
| 3 | 2 | * Header for the Direct Rendering Manager |
| 4 | 3 | * |
| 5 | − * \author Rickard E. (Rik) Faith <faith@valinux.com> | |
| 4 | + * Author: Rickard E. (Rik) Faith <faith@valinux.com> | |
| 6 | 5 | * |
| 7 | − * \par Acknowledgments: | |
| 8 | − * Dec 1999, Richard Henderson <rth@twiddle.net>, move to generic \c cmpxchg. | |
| 6 | + * Acknowledgments: | |
| 7 | + * Dec 1999, Richard Henderson <rth@twiddle.net>, move to generic cmpxchg. | |
| 9 | 8 | */ |
| 10 | 9 | |
| 11 | 10 | /* |
| @@ -85,7 +84,7 @@ typedef unsigned int drm_context_t; · 73 unmodified lines | ||
| 85 | 84 | typedef unsigned int drm_drawable_t; |
| 86 | 85 | typedef unsigned int drm_magic_t; |
| 87 | 86 | |
| 88 | −/** | |
| 87 | +/* | |
| 89 | 88 | * Cliprect. |
| 90 | 89 | * |
| 91 | 90 | * \warning: If you change this structure, make sure you change |
| @@ -101,7 +100,7 @@ struct drm_clip_rect { · 9 unmodified lines | ||
| 101 | 100 | unsigned short y2; |
| 102 | 101 | }; |
| 103 | 102 | |
| 104 | −/** | |
| 103 | +/* | |
| 105 | 104 | * Drawable information. |
| 106 | 105 | */ |
| 107 | 106 | struct drm_drawable_info { |
| @@ -109,7 +108,7 @@ struct drm_drawable_info { · 1 unmodified line | ||
| 109 | 108 | struct drm_clip_rect *rects; |
| 110 | 109 | }; |
| 111 | 110 | |
| 112 | −/** | |
| 111 | +/* | |
| 113 | 112 | * Texture region, |
| 114 | 113 | */ |
| 115 | 114 | struct drm_tex_region { |
| @@ -120,7 +119,7 @@ struct drm_tex_region { · 4 unmodified lines | ||
| 120 | 119 | unsigned int age; |
| 121 | 120 | }; |
| 122 | 121 | |
| 123 | −/** | |
| 122 | +/* | |
| 124 | 123 | * Hardware lock. |
| 125 | 124 | * |
| 126 | 125 | * The lock structure is a simple cache-line aligned integer. To avoid |
| @@ -132,7 +131,7 @@ struct drm_hw_lock { · 5 unmodified lines | ||
| 132 | 131 | char padding[60]; /**< Pad to cache line */ |
| 133 | 132 | }; |
| 134 | 133 | |
| 135 | −/** | |
| 134 | +/* | |
| 136 | 135 | * DRM_IOCTL_VERSION ioctl argument type. |
| 137 | 136 | * |
| 138 | 137 | * \sa drmGetVersion(). |
| @@ -149,7 +148,7 @@ struct drm_version { · 10 unmodified lines | ||
| 149 | 148 | char __user *desc; /**< User-space buffer to hold desc */ |
| 150 | 149 | }; |
| 151 | 150 | |
| 152 | −/** | |
| 151 | +/* | |
| 153 | 152 | * DRM_IOCTL_GET_UNIQUE ioctl argument type. |
| 154 | 153 | * |
| 155 | 154 | * \sa drmGetBusid() and drmSetBusId(). |
| @@ -168,7 +167,7 @@ struct drm_block { · 12 unmodified lines | ||
| 168 | 167 | int unused; |
| 169 | 168 | }; |
| 170 | 169 | |
| 171 | −/** | |
| 170 | +/* | |
| 172 | 171 | * DRM_IOCTL_CONTROL ioctl argument type. |
| 173 | 172 | * |
| 174 | 173 | * \sa drmCtlInstHandler() and drmCtlUninstHandler(). |
| @@ -183,7 +182,7 @@ struct drm_control { · 8 unmodified lines | ||
| 183 | 182 | int irq; |
| 184 | 183 | }; |
| 185 | 184 | |
| 186 | −/** | |
| 185 | +/* | |
| 187 | 186 | * Type of memory to map. |
| 188 | 187 | */ |
| 189 | 188 | enum drm_map_type { |
| @@ -195,7 +194,7 @@ enum drm_map_type { · 5 unmodified lines | ||
| 195 | 194 | _DRM_CONSISTENT = 5 /**< Consistent memory for PCI DMA */ |
| 196 | 195 | }; |
| 197 | 196 | |
| 198 | −/** | |
| 197 | +/* | |
| 199 | 198 | * Memory mapping flags. |
| 200 | 199 | */ |
| 201 | 200 | enum drm_map_flags { |
| @@ -214,7 +213,7 @@ struct drm_ctx_priv_map { · 12 unmodified lines | ||
| 214 | 213 | void *handle; /**< Handle of map */ |
| 215 | 214 | }; |
| 216 | 215 | |
| 217 | −/** | |
| 216 | +/* | |
| 218 | 217 | * DRM_IOCTL_GET_MAP, DRM_IOCTL_ADD_MAP and DRM_IOCTL_RM_MAP ioctls |
| 219 | 218 | * argument type. |
| 220 | 219 | * |
| @@ -231,7 +230,7 @@ struct drm_map { · 10 unmodified lines | ||
| 231 | 230 | /* Private data */ |
| 232 | 231 | }; |
| 233 | 232 | |
| 234 | −/** | |
| 233 | +/* | |
| 235 | 234 | * DRM_IOCTL_GET_CLIENT ioctl argument type. |
| 236 | 235 | */ |
| 237 | 236 | struct drm_client { |
| @@ -263,7 +262,7 @@ enum drm_stat_type { · 25 unmodified lines | ||
| 263 | 262 | /* Add to the *END* of the list */ |
| 264 | 263 | }; |
| 265 | 264 | |
| 266 | −/** | |
| 265 | +/* | |
| 267 | 266 | * DRM_IOCTL_GET_STATS ioctl argument type. |
| 268 | 267 | */ |
| 269 | 268 | struct drm_stats { |
| @@ -274,7 +273,7 @@ struct drm_stats { · 4 unmodified lines | ||
| 274 | 273 | } data[15]; |
| 275 | 274 | }; |
| 276 | 275 | |
| 277 | −/** | |
| 276 | +/* | |
| 278 | 277 | * Hardware locking flags. |
| 279 | 278 | */ |
| 280 | 279 | enum drm_lock_flags { |
| @@ -289,7 +288,7 @@ enum drm_lock_flags { · 8 unmodified lines | ||
| 289 | 288 | _DRM_HALT_CUR_QUEUES = 0x20 /**< Halt all current queues */ |
| 290 | 289 | }; |
| 291 | 290 | |
| 292 | −/** | |
| 291 | +/* | |
| 293 | 292 | * DRM_IOCTL_LOCK, DRM_IOCTL_UNLOCK and DRM_IOCTL_FINISH ioctl argument type. |
| 294 | 293 | * |
| 295 | 294 | * \sa drmGetLock() and drmUnlock(). |
| @@ -299,7 +298,7 @@ struct drm_lock { · 3 unmodified lines | ||
| 299 | 298 | enum drm_lock_flags flags; |
| 300 | 299 | }; |
| 301 | 300 | |
| 302 | −/** | |
| 301 | +/* | |
| 303 | 302 | * DMA flags |
| 304 | 303 | * |
| 305 | 304 | * \warning |
| @@ -328,7 +327,7 @@ enum drm_dma_flags { · 22 unmodified lines | ||
| 328 | 327 | _DRM_DMA_LARGER_OK = 0x40 /**< Larger-than-requested buffers OK */ |
| 329 | 328 | }; |
| 330 | 329 | |
| 331 | −/** | |
| 330 | +/* | |
| 332 | 331 | * DRM_IOCTL_ADD_BUFS and DRM_IOCTL_MARK_BUFS ioctl argument type. |
| 333 | 332 | * |
| 334 | 333 | * \sa drmAddBufs(). |
| @@ -351,7 +350,7 @@ struct drm_buf_desc { · 16 unmodified lines | ||
| 351 | 350 | */ |
| 352 | 351 | }; |
| 353 | 352 | |
| 354 | −/** | |
| 353 | +/* | |
| 355 | 354 | * DRM_IOCTL_INFO_BUFS ioctl argument type. |
| 356 | 355 | */ |
| 357 | 356 | struct drm_buf_info { |
| @@ -359,7 +358,7 @@ struct drm_buf_info { · 1 unmodified line | ||
| 359 | 358 | struct drm_buf_desc __user *list; |
| 360 | 359 | }; |
| 361 | 360 | |
| 362 | −/** | |
| 361 | +/* | |
| 363 | 362 | * DRM_IOCTL_FREE_BUFS ioctl argument type. |
| 364 | 363 | */ |
| 365 | 364 | struct drm_buf_free { |
| @@ -367,7 +366,7 @@ struct drm_buf_free { · 1 unmodified line | ||
| 367 | 366 | int __user *list; |
| 368 | 367 | }; |
| 369 | 368 | |
| 370 | −/** | |
| 369 | +/* | |
| 371 | 370 | * Buffer information |
| 372 | 371 | * |
| 373 | 372 | * \sa drm_buf_map. |
| @@ -379,7 +378,7 @@ struct drm_buf_pub { · 5 unmodified lines | ||
| 379 | 378 | void __user *address; /**< Address of buffer */ |
| 380 | 379 | }; |
| 381 | 380 | |
| 382 | −/** | |
| 381 | +/* | |
| 383 | 382 | * DRM_IOCTL_MAP_BUFS ioctl argument type. |
| 384 | 383 | */ |
| 385 | 384 | struct drm_buf_map { |
| @@ -392,7 +391,7 @@ struct drm_buf_map { · 6 unmodified lines | ||
| 392 | 391 | struct drm_buf_pub __user *list; /**< Buffer information */ |
| 393 | 392 | }; |
| 394 | 393 | |
| 395 | −/** | |
| 394 | +/* | |
| 396 | 395 | * DRM_IOCTL_DMA ioctl argument type. |
| 397 | 396 | * |
| 398 | 397 | * Indices here refer to the offset into the buffer list in drm_buf_get. |
| @@ -417,7 +416,7 @@ enum drm_ctx_flags { · 18 unmodified lines | ||
| 417 | 416 | _DRM_CONTEXT_2DONLY = 0x02 |
| 418 | 417 | }; |
| 419 | 418 | |
| 420 | −/** | |
| 419 | +/* | |
| 421 | 420 | * DRM_IOCTL_ADD_CTX ioctl argument type. |
| 422 | 421 | * |
| 423 | 422 | * \sa drmCreateContext() and drmDestroyContext(). |
| @@ -427,7 +426,7 @@ struct drm_ctx { · 3 unmodified lines | ||
| 427 | 426 | enum drm_ctx_flags flags; |
| 428 | 427 | }; |
| 429 | 428 | |
| 430 | −/** | |
| 429 | +/* | |
| 431 | 430 | * DRM_IOCTL_RES_CTX ioctl argument type. |
| 432 | 431 | */ |
| 433 | 432 | struct drm_ctx_res { |
| @@ -435,14 +434,14 @@ struct drm_ctx_res { · 1 unmodified line | ||
| 435 | 434 | struct drm_ctx __user *contexts; |
| 436 | 435 | }; |
| 437 | 436 | |
| 438 | −/** | |
| 437 | +/* | |
| 439 | 438 | * DRM_IOCTL_ADD_DRAW and DRM_IOCTL_RM_DRAW ioctl argument type. |
| 440 | 439 | */ |
| 441 | 440 | struct drm_draw { |
| 442 | 441 | drm_drawable_t handle; |
| 443 | 442 | }; |
| 444 | 443 | |
| 445 | −/** | |
| 444 | +/* | |
| 446 | 445 | * DRM_IOCTL_UPDATE_DRAW ioctl argument type. |
| 447 | 446 | */ |
| 448 | 447 | typedef enum { |
| @@ -456,14 +455,14 @@ struct drm_update_draw { · 7 unmodified lines | ||
| 456 | 455 | unsigned long long data; |
| 457 | 456 | }; |
| 458 | 457 | |
| 459 | −/** | |
| 458 | +/* | |
| 460 | 459 | * DRM_IOCTL_GET_MAGIC and DRM_IOCTL_AUTH_MAGIC ioctl argument type. |
| 461 | 460 | */ |
| 462 | 461 | struct drm_auth { |
| 463 | 462 | drm_magic_t magic; |
| 464 | 463 | }; |
| 465 | 464 | |
| 466 | −/** | |
| 465 | +/* | |
| 467 | 466 | * DRM_IOCTL_IRQ_BUSID ioctl argument type. |
| 468 | 467 | * |
| 469 | 468 | * \sa drmGetInterruptFromBusID(). |
| @@ -505,7 +504,7 @@ struct drm_wait_vblank_reply { · 35 unmodified lines | ||
| 505 | 504 | long tval_usec; |
| 506 | 505 | }; |
| 507 | 506 | |
| 508 | −/** | |
| 507 | +/* | |
| 509 | 508 | * DRM_IOCTL_WAIT_VBLANK ioctl argument type. |
| 510 | 509 | * |
| 511 | 510 | * \sa drmWaitVBlank(). |
| @@ -518,7 +517,7 @@ union drm_wait_vblank { · 6 unmodified lines | ||
| 518 | 517 | #define _DRM_PRE_MODESET 1 |
| 519 | 518 | #define _DRM_POST_MODESET 2 |
| 520 | 519 | |
| 521 | −/** | |
| 520 | +/* | |
| 522 | 521 | * DRM_IOCTL_MODESET_CTL ioctl argument type |
| 523 | 522 | * |
| 524 | 523 | * \sa drmModesetCtl(). |
| @@ -528,7 +527,7 @@ struct drm_modeset_ctl { · 3 unmodified lines | ||
| 528 | 527 | __u32 cmd; |
| 529 | 528 | }; |
| 530 | 529 | |
| 531 | −/** | |
| 530 | +/* | |
| 532 | 531 | * DRM_IOCTL_AGP_ENABLE ioctl argument type. |
| 533 | 532 | * |
| 534 | 533 | * \sa drmAgpEnable(). |
| @@ -537,7 +536,7 @@ struct drm_agp_mode { · 2 unmodified lines | ||
| 537 | 536 | unsigned long mode; /**< AGP mode */ |
| 538 | 537 | }; |
| 539 | 538 | |
| 540 | −/** | |
| 539 | +/* | |
| 541 | 540 | * DRM_IOCTL_AGP_ALLOC and DRM_IOCTL_AGP_FREE ioctls argument type. |
| 542 | 541 | * |
| 543 | 542 | * \sa drmAgpAlloc() and drmAgpFree(). |
| @@ -549,7 +548,7 @@ struct drm_agp_buffer { · 5 unmodified lines | ||
| 549 | 548 | unsigned long physical; /**< Physical used by i810 */ |
| 550 | 549 | }; |
| 551 | 550 | |
| 552 | −/** | |
| 551 | +/* | |
| 553 | 552 | * DRM_IOCTL_AGP_BIND and DRM_IOCTL_AGP_UNBIND ioctls argument type. |
| 554 | 553 | * |
| 555 | 554 | * \sa drmAgpBind() and drmAgpUnbind(). |
| @@ -559,7 +558,7 @@ struct drm_agp_binding { · 3 unmodified lines | ||
| 559 | 558 | unsigned long offset; /**< In bytes -- will round to page boundary */ |
| 560 | 559 | }; |
| 561 | 560 | |
| 562 | −/** | |
| 561 | +/* | |
| 563 | 562 | * DRM_IOCTL_AGP_INFO ioctl argument type. |
| 564 | 563 | * |
| 565 | 564 | * \sa drmAgpVersionMajor(), drmAgpVersionMinor(), drmAgpGetMode(), |
| @@ -580,7 +579,7 @@ struct drm_agp_info { · 14 unmodified lines | ||
| 580 | 579 | unsigned short id_device; |
| 581 | 580 | }; |
| 582 | 581 | |
| 583 | −/** | |
| 582 | +/* | |
| 584 | 583 | * DRM_IOCTL_SG_ALLOC ioctl argument type. |
| 585 | 584 | */ |
| 586 | 585 | struct drm_scatter_gather { |
| @@ -588,7 +587,7 @@ struct drm_scatter_gather { · 1 unmodified line | ||
| 588 | 587 | unsigned long handle; /**< Used for mapping / unmapping */ |
| 589 | 588 | }; |
| 590 | 589 | |
| 591 | −/** | |
| 590 | +/* | |
| 592 | 591 | * DRM_IOCTL_SET_VERSION ioctl argument type. |
| 593 | 592 | */ |
| 594 | 593 | struct drm_set_version { |
| @@ -598,14 +597,14 @@ struct drm_set_version { · 3 unmodified lines | ||
| 598 | 597 | int drm_dd_minor; |
| 599 | 598 | }; |
| 600 | 599 | |
| 601 | −/** DRM_IOCTL_GEM_CLOSE ioctl argument type */ | |
| 600 | +/* DRM_IOCTL_GEM_CLOSE ioctl argument type */ | |
| 602 | 601 | struct drm_gem_close { |
| 603 | 602 | /** Handle of the object to be closed. */ |
| 604 | 603 | __u32 handle; |
| 605 | 604 | __u32 pad; |
| 606 | 605 | }; |
| 607 | 606 | |
| 608 | −/** DRM_IOCTL_GEM_FLINK ioctl argument type */ | |
| 607 | +/* DRM_IOCTL_GEM_FLINK ioctl argument type */ | |
| 609 | 608 | struct drm_gem_flink { |
| 610 | 609 | /** Handle for the object being named */ |
| 611 | 610 | __u32 handle; |
| @@ -614,7 +613,7 @@ struct drm_gem_flink { · 2 unmodified lines | ||
| 614 | 613 | __u32 name; |
| 615 | 614 | }; |
| 616 | 615 | |
| 617 | −/** DRM_IOCTL_GEM_OPEN ioctl argument type */ | |
| 616 | +/* DRM_IOCTL_GEM_OPEN ioctl argument type */ | |
| 618 | 617 | struct drm_gem_open { |
| 619 | 618 | /** Name of object being opened */ |
| 620 | 619 | __u32 name; |
| @@ -652,7 +651,7 @@ struct drm_gem_open { · 31 unmodified lines | ||
| 652 | 651 | #define DRM_CAP_SYNCOBJ 0x13 |
| 653 | 652 | #define DRM_CAP_SYNCOBJ_TIMELINE 0x14 |
| 654 | 653 | |
| 655 | −/** DRM_IOCTL_GET_CAP ioctl argument type */ | |
| 654 | +/* DRM_IOCTL_GET_CAP ioctl argument type */ | |
| 656 | 655 | struct drm_get_cap { |
| 657 | 656 | __u64 capability; |
| 658 | 657 | __u64 value; |
| @@ -678,7 +677,9 @@ struct drm_get_cap { · 19 unmodified lines | ||
| 678 | 677 | /** |
| 679 | 678 | * DRM_CLIENT_CAP_ATOMIC |
| 680 | 679 | * |
| 681 | − * If set to 1, the DRM core will expose atomic properties to userspace | |
| 680 | + * If set to 1, the DRM core will expose atomic properties to userspace. This | |
| 681 | + * implicitly enables &DRM_CLIENT_CAP_UNIVERSAL_PLANES and | |
| 682 | + * &DRM_CLIENT_CAP_ASPECT_RATIO. | |
| 682 | 683 | */ |
| 683 | 684 | #define DRM_CLIENT_CAP_ATOMIC 3 |
| 684 | 685 | |
| @@ -698,7 +699,7 @@ struct drm_get_cap { · 13 unmodified lines | ||
| 698 | 699 | */ |
| 699 | 700 | #define DRM_CLIENT_CAP_WRITEBACK_CONNECTORS 5 |
| 700 | 701 | |
| 701 | −/** DRM_IOCTL_SET_CLIENT_CAP ioctl argument type */ | |
| 702 | +/* DRM_IOCTL_SET_CLIENT_CAP ioctl argument type */ | |
| 702 | 703 | struct drm_set_client_cap { |
| 703 | 704 | __u64 capability; |
| 704 | 705 | __u64 value; |
| @@ -950,7 +951,7 @@ extern "C" { · 245 unmodified lines | ||
| 950 | 951 | |
| 951 | 952 | #define DRM_IOCTL_MODE_GETFB2 DRM_IOWR(0xCE, struct drm_mode_fb_cmd2) |
| 952 | 953 | |
| 953 | −/** | |
| 954 | +/* | |
| 954 | 955 | * Device specific ioctls should only be in their respective headers |
| 955 | 956 | * The device specific ioctl range is from 0x40 to 0x9f. |
| 956 | 957 | * Generic IOCTLS restart at 0xA0. |
| @@ -961,7 +962,7 @@ extern "C" { · 4 unmodified lines | ||
| 961 | 962 | #define DRM_COMMAND_BASE 0x40 |
| 962 | 963 | #define DRM_COMMAND_END 0xA0 |
| 963 | 964 | |
| 964 | −/** | |
| 965 | +/* | |
| 965 | 966 | * Header for events written back to userspace on the drm fd. The |
| 966 | 967 | * type defines the type of event, the length specifies the total |
| 967 | 968 | * length of the event (including the header), and user_data is |