Rev 4244 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4244 | Rev 4559 | ||
---|---|---|---|
Line 179... | Line 179... | ||
179 | _DRM_REGISTERS = 1, /**< no caching, no core dump */ |
179 | _DRM_REGISTERS = 1, /**< no caching, no core dump */ |
180 | _DRM_SHM = 2, /**< shared, cached */ |
180 | _DRM_SHM = 2, /**< shared, cached */ |
181 | _DRM_AGP = 3, /**< AGP/GART */ |
181 | _DRM_AGP = 3, /**< AGP/GART */ |
182 | _DRM_SCATTER_GATHER = 4, /**< Scatter/gather memory for PCI DMA */ |
182 | _DRM_SCATTER_GATHER = 4, /**< Scatter/gather memory for PCI DMA */ |
183 | _DRM_CONSISTENT = 5, /**< Consistent memory for PCI DMA */ |
183 | _DRM_CONSISTENT = 5, /**< Consistent memory for PCI DMA */ |
184 | _DRM_GEM = 6, /**< GEM object (obsolete) */ |
- | |
185 | }; |
184 | }; |
Line 186... | Line 185... | ||
186 | 185 | ||
187 | /** |
186 | /** |
188 | * Memory mapping flags. |
187 | * Memory mapping flags. |
Line 609... | Line 608... | ||
609 | 608 | ||
610 | /** Returned size of the object */ |
609 | /** Returned size of the object */ |
611 | __u64 size; |
610 | __u64 size; |
Line -... | Line 611... | ||
- | 611 | }; |
|
- | 612 | ||
- | 613 | #define DRM_CAP_DUMB_BUFFER 0x1 |
|
- | 614 | #define DRM_CAP_VBLANK_HIGH_CRTC 0x2 |
|
- | 615 | #define DRM_CAP_DUMB_PREFERRED_DEPTH 0x3 |
|
- | 616 | #define DRM_CAP_DUMB_PREFER_SHADOW 0x4 |
|
- | 617 | #define DRM_CAP_PRIME 0x5 |
|
- | 618 | #define DRM_PRIME_CAP_IMPORT 0x1 |
|
- | 619 | #define DRM_PRIME_CAP_EXPORT 0x2 |
|
- | 620 | #define DRM_CAP_TIMESTAMP_MONOTONIC 0x6 |
|
612 | }; |
621 | #define DRM_CAP_ASYNC_PAGE_FLIP 0x7 |
613 | 622 | ||
614 | /** DRM_IOCTL_GET_CAP ioctl argument type */ |
623 | /** DRM_IOCTL_GET_CAP ioctl argument type */ |
615 | struct drm_get_cap { |
624 | struct drm_get_cap { |
616 | __u64 capability; |
625 | __u64 capability; |
Line -... | Line 626... | ||
- | 626 | __u64 value; |
|
- | 627 | }; |
|
- | 628 | ||
- | 629 | /** |
|
- | 630 | * DRM_CLIENT_CAP_STEREO_3D |
|
- | 631 | * |
|
- | 632 | * if set to 1, the DRM core will expose the stereo 3D capabilities of the |
|
- | 633 | * monitor by advertising the supported 3D layouts in the flags of struct |
|
- | 634 | * drm_mode_modeinfo. |
|
- | 635 | */ |
|
- | 636 | #define DRM_CLIENT_CAP_STEREO_3D 1 |
|
- | 637 | ||
- | 638 | /** DRM_IOCTL_SET_CLIENT_CAP ioctl argument type */ |
|
- | 639 | struct drm_set_client_cap { |
|
- | 640 | __u64 capability; |
|
617 | __u64 value; |
641 | __u64 value; |
618 | }; |
642 | }; |
619 | 643 | ||
Line 620... | Line 644... | ||
620 | #define DRM_CLOEXEC O_CLOEXEC |
644 | #define DRM_CLOEXEC O_CLOEXEC |
Line 647... | Line 671... | ||
647 | #define DRM_IOCTL_MODESET_CTL DRM_IOW(0x08, struct drm_modeset_ctl) |
671 | #define DRM_IOCTL_MODESET_CTL DRM_IOW(0x08, struct drm_modeset_ctl) |
648 | #define DRM_IOCTL_GEM_CLOSE DRM_IOW (0x09, struct drm_gem_close) |
672 | #define DRM_IOCTL_GEM_CLOSE DRM_IOW (0x09, struct drm_gem_close) |
649 | #define DRM_IOCTL_GEM_FLINK DRM_IOWR(0x0a, struct drm_gem_flink) |
673 | #define DRM_IOCTL_GEM_FLINK DRM_IOWR(0x0a, struct drm_gem_flink) |
650 | #define DRM_IOCTL_GEM_OPEN DRM_IOWR(0x0b, struct drm_gem_open) |
674 | #define DRM_IOCTL_GEM_OPEN DRM_IOWR(0x0b, struct drm_gem_open) |
651 | #define DRM_IOCTL_GET_CAP DRM_IOWR(0x0c, struct drm_get_cap) |
675 | #define DRM_IOCTL_GET_CAP DRM_IOWR(0x0c, struct drm_get_cap) |
- | 676 | #define DRM_IOCTL_SET_CLIENT_CAP DRM_IOW( 0x0d, struct drm_set_client_cap) |
|
Line 652... | Line 677... | ||
652 | 677 | ||
653 | #define DRM_IOCTL_SET_UNIQUE DRM_IOW( 0x10, struct drm_unique) |
678 | #define DRM_IOCTL_SET_UNIQUE DRM_IOW( 0x10, struct drm_unique) |
654 | #define DRM_IOCTL_AUTH_MAGIC DRM_IOW( 0x11, struct drm_auth) |
679 | #define DRM_IOCTL_AUTH_MAGIC DRM_IOW( 0x11, struct drm_auth) |
655 | #define DRM_IOCTL_BLOCK DRM_IOWR(0x12, struct drm_block) |
680 | #define DRM_IOCTL_BLOCK DRM_IOWR(0x12, struct drm_block) |
Line 772... | Line 797... | ||
772 | __u32 tv_usec; |
797 | __u32 tv_usec; |
773 | __u32 sequence; |
798 | __u32 sequence; |
774 | __u32 reserved; |
799 | __u32 reserved; |
775 | }; |
800 | }; |
Line 776... | Line -... | ||
776 | - | ||
777 | #define DRM_CAP_DUMB_BUFFER 0x1 |
- | |
778 | #define DRM_CAP_VBLANK_HIGH_CRTC 0x2 |
- | |
779 | #define DRM_CAP_DUMB_PREFERRED_DEPTH 0x3 |
- | |
780 | #define DRM_CAP_DUMB_PREFER_SHADOW 0x4 |
- | |
781 | #define DRM_CAP_PRIME 0x5 |
- | |
782 | #define DRM_CAP_TIMESTAMP_MONOTONIC 0x6 |
- | |
783 | #define DRM_CAP_ASYNC_PAGE_FLIP 0x7 |
- | |
784 | - | ||
785 | #define DRM_PRIME_CAP_IMPORT 0x1 |
- | |
786 | #define DRM_PRIME_CAP_EXPORT 0x2 |
- | |
787 | 801 | ||
788 | /* typedef area */ |
802 | /* typedef area */ |
789 | #ifndef __KERNEL__ |
803 | #ifndef __KERNEL__ |
790 | typedef struct drm_clip_rect drm_clip_rect_t; |
804 | typedef struct drm_clip_rect drm_clip_rect_t; |
791 | typedef struct drm_drawable_info drm_drawable_info_t; |
805 | typedef struct drm_drawable_info drm_drawable_info_t; |