Rev 1630 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1630 | Rev 1964 | ||
---|---|---|---|
Line 448... | Line 448... | ||
448 | }; |
448 | }; |
Line 449... | Line 449... | ||
449 | 449 | ||
450 | enum drm_vblank_seq_type { |
450 | enum drm_vblank_seq_type { |
451 | _DRM_VBLANK_ABSOLUTE = 0x0, /**< Wait for specific vblank sequence number */ |
451 | _DRM_VBLANK_ABSOLUTE = 0x0, /**< Wait for specific vblank sequence number */ |
- | 452 | _DRM_VBLANK_RELATIVE = 0x1, /**< Wait for given number of vblanks */ |
|
- | 453 | /* bits 1-6 are reserved for high crtcs */ |
|
452 | _DRM_VBLANK_RELATIVE = 0x1, /**< Wait for given number of vblanks */ |
454 | _DRM_VBLANK_HIGH_CRTC_MASK = 0x0000003e, |
453 | _DRM_VBLANK_EVENT = 0x4000000, /**< Send event instead of blocking */ |
455 | _DRM_VBLANK_EVENT = 0x4000000, /**< Send event instead of blocking */ |
454 | _DRM_VBLANK_FLIP = 0x8000000, /**< Scheduled buffer swap should flip */ |
456 | _DRM_VBLANK_FLIP = 0x8000000, /**< Scheduled buffer swap should flip */ |
455 | _DRM_VBLANK_NEXTONMISS = 0x10000000, /**< If missed, wait for next vblank */ |
457 | _DRM_VBLANK_NEXTONMISS = 0x10000000, /**< If missed, wait for next vblank */ |
456 | _DRM_VBLANK_SECONDARY = 0x20000000, /**< Secondary display controller */ |
458 | _DRM_VBLANK_SECONDARY = 0x20000000, /**< Secondary display controller */ |
457 | _DRM_VBLANK_SIGNAL = 0x40000000 /**< Send signal instead of blocking, unsupported */ |
459 | _DRM_VBLANK_SIGNAL = 0x40000000 /**< Send signal instead of blocking, unsupported */ |
- | 460 | }; |
|
Line 458... | Line 461... | ||
458 | }; |
461 | #define _DRM_VBLANK_HIGH_CRTC_SHIFT 1 |
459 | 462 | ||
460 | #define _DRM_VBLANK_TYPES_MASK (_DRM_VBLANK_ABSOLUTE | _DRM_VBLANK_RELATIVE) |
463 | #define _DRM_VBLANK_TYPES_MASK (_DRM_VBLANK_ABSOLUTE | _DRM_VBLANK_RELATIVE) |
Line 593... | Line 596... | ||
593 | 596 | ||
594 | /** Returned size of the object */ |
597 | /** Returned size of the object */ |
595 | __u64 size; |
598 | __u64 size; |
Line -... | Line 599... | ||
- | 599 | }; |
|
- | 600 | ||
- | 601 | /** DRM_IOCTL_GET_CAP ioctl argument type */ |
|
- | 602 | struct drm_get_cap { |
|
- | 603 | __u64 capability; |
|
- | 604 | __u64 value; |
|
596 | }; |
605 | }; |
Line 597... | Line 606... | ||
597 | 606 | ||
598 | #include "drm_mode.h" |
607 | #include "drm_mode.h" |
599 | 608 | ||
Line 614... | Line 623... | ||
614 | #define DRM_IOCTL_SET_VERSION DRM_IOWR(0x07, struct drm_set_version) |
623 | #define DRM_IOCTL_SET_VERSION DRM_IOWR(0x07, struct drm_set_version) |
615 | #define DRM_IOCTL_MODESET_CTL DRM_IOW(0x08, struct drm_modeset_ctl) |
624 | #define DRM_IOCTL_MODESET_CTL DRM_IOW(0x08, struct drm_modeset_ctl) |
616 | #define DRM_IOCTL_GEM_CLOSE DRM_IOW (0x09, struct drm_gem_close) |
625 | #define DRM_IOCTL_GEM_CLOSE DRM_IOW (0x09, struct drm_gem_close) |
617 | #define DRM_IOCTL_GEM_FLINK DRM_IOWR(0x0a, struct drm_gem_flink) |
626 | #define DRM_IOCTL_GEM_FLINK DRM_IOWR(0x0a, struct drm_gem_flink) |
618 | #define DRM_IOCTL_GEM_OPEN DRM_IOWR(0x0b, struct drm_gem_open) |
627 | #define DRM_IOCTL_GEM_OPEN DRM_IOWR(0x0b, struct drm_gem_open) |
- | 628 | #define DRM_IOCTL_GET_CAP DRM_IOWR(0x0c, struct drm_get_cap) |
|
Line 619... | Line 629... | ||
619 | 629 | ||
620 | #define DRM_IOCTL_SET_UNIQUE DRM_IOW( 0x10, struct drm_unique) |
630 | #define DRM_IOCTL_SET_UNIQUE DRM_IOW( 0x10, struct drm_unique) |
621 | #define DRM_IOCTL_AUTH_MAGIC DRM_IOW( 0x11, struct drm_auth) |
631 | #define DRM_IOCTL_AUTH_MAGIC DRM_IOW( 0x11, struct drm_auth) |
622 | #define DRM_IOCTL_BLOCK DRM_IOWR(0x12, struct drm_block) |
632 | #define DRM_IOCTL_BLOCK DRM_IOWR(0x12, struct drm_block) |
Line 649... | Line 659... | ||
649 | #define DRM_IOCTL_DMA DRM_IOWR(0x29, struct drm_dma) |
659 | #define DRM_IOCTL_DMA DRM_IOWR(0x29, struct drm_dma) |
650 | #define DRM_IOCTL_LOCK DRM_IOW( 0x2a, struct drm_lock) |
660 | #define DRM_IOCTL_LOCK DRM_IOW( 0x2a, struct drm_lock) |
651 | #define DRM_IOCTL_UNLOCK DRM_IOW( 0x2b, struct drm_lock) |
661 | #define DRM_IOCTL_UNLOCK DRM_IOW( 0x2b, struct drm_lock) |
652 | #define DRM_IOCTL_FINISH DRM_IOW( 0x2c, struct drm_lock) |
662 | #define DRM_IOCTL_FINISH DRM_IOW( 0x2c, struct drm_lock) |
Line -... | Line 663... | ||
- | 663 | ||
- | 664 | #define DRM_IOCTL_GEM_PRIME_OPEN DRM_IOWR(0x2e, struct drm_gem_open) |
|
653 | 665 | ||
654 | #define DRM_IOCTL_AGP_ACQUIRE DRM_IO( 0x30) |
666 | #define DRM_IOCTL_AGP_ACQUIRE DRM_IO( 0x30) |
655 | #define DRM_IOCTL_AGP_RELEASE DRM_IO( 0x31) |
667 | #define DRM_IOCTL_AGP_RELEASE DRM_IO( 0x31) |
656 | #define DRM_IOCTL_AGP_ENABLE DRM_IOW( 0x32, struct drm_agp_mode) |
668 | #define DRM_IOCTL_AGP_ENABLE DRM_IOW( 0x32, struct drm_agp_mode) |
657 | #define DRM_IOCTL_AGP_INFO DRM_IOR( 0x33, struct drm_agp_info) |
669 | #define DRM_IOCTL_AGP_INFO DRM_IOR( 0x33, struct drm_agp_info) |
Line 683... | Line 695... | ||
683 | #define DRM_IOCTL_MODE_GETPROPBLOB DRM_IOWR(0xAC, struct drm_mode_get_blob) |
695 | #define DRM_IOCTL_MODE_GETPROPBLOB DRM_IOWR(0xAC, struct drm_mode_get_blob) |
684 | #define DRM_IOCTL_MODE_GETFB DRM_IOWR(0xAD, struct drm_mode_fb_cmd) |
696 | #define DRM_IOCTL_MODE_GETFB DRM_IOWR(0xAD, struct drm_mode_fb_cmd) |
685 | #define DRM_IOCTL_MODE_ADDFB DRM_IOWR(0xAE, struct drm_mode_fb_cmd) |
697 | #define DRM_IOCTL_MODE_ADDFB DRM_IOWR(0xAE, struct drm_mode_fb_cmd) |
686 | #define DRM_IOCTL_MODE_RMFB DRM_IOWR(0xAF, unsigned int) |
698 | #define DRM_IOCTL_MODE_RMFB DRM_IOWR(0xAF, unsigned int) |
687 | #define DRM_IOCTL_MODE_PAGE_FLIP DRM_IOWR(0xB0, struct drm_mode_crtc_page_flip) |
699 | #define DRM_IOCTL_MODE_PAGE_FLIP DRM_IOWR(0xB0, struct drm_mode_crtc_page_flip) |
- | 700 | #define DRM_IOCTL_MODE_DIRTYFB DRM_IOWR(0xB1, struct drm_mode_fb_dirty_cmd) |
|
688 | */ |
701 | */ |
Line 689... | Line 702... | ||
689 | 702 | ||
690 | /** |
703 | /** |
691 | * Device specific ioctls should only be in their respective headers |
704 | * Device specific ioctls should only be in their respective headers |
Line 725... | Line 738... | ||
725 | __u32 tv_usec; |
738 | __u32 tv_usec; |
726 | __u32 sequence; |
739 | __u32 sequence; |
727 | __u32 reserved; |
740 | __u32 reserved; |
728 | }; |
741 | }; |
Line -... | Line 742... | ||
- | 742 | ||
- | 743 | #define DRM_CAP_DUMB_BUFFER 0x1 |
|
- | 744 | #define DRM_CAP_VBLANK_HIGH_CRTC 0x2 |
|
729 | 745 | ||
730 | /* typedef area */ |
746 | /* typedef area */ |
731 | #ifndef __KERNEL__ |
747 | #ifndef __KERNEL__ |
732 | typedef struct drm_clip_rect drm_clip_rect_t; |
748 | typedef struct drm_clip_rect drm_clip_rect_t; |
733 | typedef struct drm_drawable_info drm_drawable_info_t; |
749 | typedef struct drm_drawable_info drm_drawable_info_t; |