Add a comment to each struct to complete documentation, ensure all struct appear in the kernel doc, and bind structs to IOCTLs.
Showing the changes to include/uapi/drm (1 of 1 file). Show all
Unified · Split
| @@ -464,7 +464,8 @@ struct drm_xe_query_topology_mask { · 463 unmodified lines | ||
| 464 | 464 | }; |
| 465 | 465 | |
| 466 | 466 | /** |
| 467 | − * struct drm_xe_device_query - main structure to query device information | |
| 467 | + * struct drm_xe_device_query - Input of &DRM_IOCTL_XE_DEVICE_QUERY - main | |
| 468 | + * structure to query device information | |
| 468 | 469 | * |
| 469 | 470 | * If size is set to 0, the driver fills it with the required size for the |
| 470 | 471 | * requested type of data to query. If size is equal to the required size, |
| @@ -526,6 +527,10 @@ struct drm_xe_device_query { · 55 unmodified lines | ||
| 526 | 527 | __u64 reserved[2]; |
| 527 | 528 | }; |
| 528 | 529 | |
| 530 | +/** | |
| 531 | + * struct drm_xe_gem_create - Input of &DRM_IOCTL_XE_GEM_CREATE - A structure for | |
| 532 | + * gem creation | |
| 533 | + */ | |
| 529 | 534 | struct drm_xe_gem_create { |
| 530 | 535 | /** @extensions: Pointer to the first extension struct, if any */ |
| 531 | 536 | __u64 extensions; |
| @@ -604,6 +609,9 @@ struct drm_xe_gem_create { · 72 unmodified lines | ||
| 604 | 609 | __u64 reserved[2]; |
| 605 | 610 | }; |
| 606 | 611 | |
| 612 | +/** | |
| 613 | + * struct drm_xe_gem_mmap_offset - Input of &DRM_IOCTL_XE_GEM_MMAP_OFFSET | |
| 614 | + */ | |
| 607 | 615 | struct drm_xe_gem_mmap_offset { |
| 608 | 616 | /** @extensions: Pointer to the first extension struct, if any */ |
| 609 | 617 | __u64 extensions; |
| @@ -621,7 +629,9 @@ struct drm_xe_gem_mmap_offset { · 11 unmodified lines | ||
| 621 | 629 | __u64 reserved[2]; |
| 622 | 630 | }; |
| 623 | 631 | |
| 624 | −/** struct drm_xe_ext_set_property - XE set property extension */ | |
| 632 | +/** | |
| 633 | + * struct drm_xe_ext_set_property - XE set property extension | |
| 634 | + */ | |
| 625 | 635 | struct drm_xe_ext_set_property { |
| 626 | 636 | /** @base: base user extension */ |
| 627 | 637 | struct drm_xe_user_extension base; |
| @@ -639,6 +649,9 @@ struct drm_xe_ext_set_property { · 11 unmodified lines | ||
| 639 | 649 | __u64 reserved[2]; |
| 640 | 650 | }; |
| 641 | 651 | |
| 652 | +/** | |
| 653 | + * struct drm_xe_vm_create - Input of &DRM_IOCTL_XE_VM_CREATE | |
| 654 | + */ | |
| 642 | 655 | struct drm_xe_vm_create { |
| 643 | 656 | /** @extensions: Pointer to the first extension struct, if any */ |
| 644 | 657 | __u64 extensions; |
| @@ -677,6 +690,9 @@ struct drm_xe_vm_create { · 32 unmodified lines | ||
| 677 | 690 | __u64 reserved[2]; |
| 678 | 691 | }; |
| 679 | 692 | |
| 693 | +/** | |
| 694 | + * struct drm_xe_vm_destroy - Input of &DRM_IOCTL_XE_VM_DESTROY | |
| 695 | + */ | |
| 680 | 696 | struct drm_xe_vm_destroy { |
| 681 | 697 | /** @vm_id: VM ID */ |
| 682 | 698 | __u32 vm_id; |
| @@ -688,6 +704,9 @@ struct drm_xe_vm_destroy { · 5 unmodified lines | ||
| 688 | 704 | __u64 reserved[2]; |
| 689 | 705 | }; |
| 690 | 706 | |
| 707 | +/** | |
| 708 | + * struct drm_xe_vm_bind_op | |
| 709 | + */ | |
| 691 | 710 | struct drm_xe_vm_bind_op { |
| 692 | 711 | /** @extensions: Pointer to the first extension struct, if any */ |
| 693 | 712 | __u64 extensions; |
| @@ -804,6 +823,9 @@ struct drm_xe_vm_bind_op { · 110 unmodified lines | ||
| 804 | 823 | __u64 reserved[3]; |
| 805 | 824 | }; |
| 806 | 825 | |
| 826 | +/** | |
| 827 | + * struct drm_xe_vm_bind - Input of &DRM_IOCTL_XE_VM_BIND | |
| 828 | + */ | |
| 807 | 829 | struct drm_xe_vm_bind { |
| 808 | 830 | /** @extensions: Pointer to the first extension struct, if any */ |
| 809 | 831 | __u64 extensions; |
| @@ -862,6 +884,9 @@ struct drm_xe_vm_bind { · 52 unmodified lines | ||
| 862 | 884 | /* Monitor 64MB contiguous region with 2M sub-granularity */ |
| 863 | 885 | #define DRM_XE_ACC_GRANULARITY_64M 3 |
| 864 | 886 | |
| 887 | +/** | |
| 888 | + * struct drm_xe_exec_queue_create - Input of &DRM_IOCTL_XE_EXEC_QUEUE_CREATE | |
| 889 | + */ | |
| 865 | 890 | struct drm_xe_exec_queue_create { |
| 866 | 891 | #define DRM_XE_EXEC_QUEUE_EXTENSION_SET_PROPERTY 0 |
| 867 | 892 | #define DRM_XE_EXEC_QUEUE_SET_PROPERTY_PRIORITY 0 |
| @@ -904,6 +929,9 @@ struct drm_xe_exec_queue_create { · 36 unmodified lines | ||
| 904 | 929 | __u64 reserved[2]; |
| 905 | 930 | }; |
| 906 | 931 | |
| 932 | +/** | |
| 933 | + * struct drm_xe_exec_queue_get_property - Input of &DRM_IOCTL_XE_EXEC_QUEUE_GET_PROPERTY | |
| 934 | + */ | |
| 907 | 935 | struct drm_xe_exec_queue_get_property { |
| 908 | 936 | /** @extensions: Pointer to the first extension struct, if any */ |
| 909 | 937 | __u64 extensions; |
| @@ -922,6 +950,9 @@ struct drm_xe_exec_queue_get_property { · 12 unmodified lines | ||
| 922 | 950 | __u64 reserved[2]; |
| 923 | 951 | }; |
| 924 | 952 | |
| 953 | +/** | |
| 954 | + * struct drm_xe_exec_queue_destroy - Input of &DRM_IOCTL_XE_EXEC_QUEUE_DESTROY | |
| 955 | + */ | |
| 925 | 956 | struct drm_xe_exec_queue_destroy { |
| 926 | 957 | /** @exec_queue_id: Exec queue ID */ |
| 927 | 958 | __u32 exec_queue_id; |
| @@ -933,6 +964,9 @@ struct drm_xe_exec_queue_destroy { · 5 unmodified lines | ||
| 933 | 964 | __u64 reserved[2]; |
| 934 | 965 | }; |
| 935 | 966 | |
| 967 | +/** | |
| 968 | + * struct drm_xe_sync | |
| 969 | + */ | |
| 936 | 970 | struct drm_xe_sync { |
| 937 | 971 | /** @extensions: Pointer to the first extension struct, if any */ |
| 938 | 972 | __u64 extensions; |
| @@ -967,6 +1001,9 @@ struct drm_xe_sync { · 28 unmodified lines | ||
| 967 | 1001 | __u64 reserved[2]; |
| 968 | 1002 | }; |
| 969 | 1003 | |
| 1004 | +/** | |
| 1005 | + * struct drm_xe_exec - Input of &DRM_IOCTL_XE_EXEC | |
| 1006 | + */ | |
| 970 | 1007 | struct drm_xe_exec { |
| 971 | 1008 | /** @extensions: Pointer to the first extension struct, if any */ |
| 972 | 1009 | __u64 extensions; |
| @@ -1000,7 +1037,7 @@ struct drm_xe_exec { · 27 unmodified lines | ||
| 1000 | 1037 | }; |
| 1001 | 1038 | |
| 1002 | 1039 | /** |
| 1003 | − * struct drm_xe_wait_user_fence - wait user fence | |
| 1040 | + * struct drm_xe_wait_user_fence - Input of &DRM_IOCTL_XE_WAIT_USER_FENCE | |
| 1004 | 1041 | * |
| 1005 | 1042 | * Wait on user fence, XE will wake-up on every HW engine interrupt in the |
| 1006 | 1043 | * instances list and check if user fence is complete:: |