Subversion Repositories Kolibri OS

Rev

Rev 4559 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4559 Rev 5056
Line 37... Line 37...
37
#define _DRM_H_
37
#define _DRM_H_
Line 38... Line 38...
38
 
38
 
Line 39... Line 39...
39
#if defined(__KERNEL__) || defined(__linux__)
39
#if defined(__KERNEL__) || defined(__linux__)
40
 
40
 
41
#include 
41
#include 
Line 42... Line 42...
42
#include 
42
//#include 
Line 43... Line 43...
43
typedef unsigned int drm_handle_t;
43
typedef unsigned int drm_handle_t;
Line 617... Line 617...
617
#define DRM_CAP_PRIME			0x5
617
#define DRM_CAP_PRIME			0x5
618
#define  DRM_PRIME_CAP_IMPORT		0x1
618
#define  DRM_PRIME_CAP_IMPORT		0x1
619
#define  DRM_PRIME_CAP_EXPORT		0x2
619
#define  DRM_PRIME_CAP_EXPORT		0x2
620
#define DRM_CAP_TIMESTAMP_MONOTONIC	0x6
620
#define DRM_CAP_TIMESTAMP_MONOTONIC	0x6
621
#define DRM_CAP_ASYNC_PAGE_FLIP		0x7
621
#define DRM_CAP_ASYNC_PAGE_FLIP		0x7
-
 
622
/*
-
 
623
 * The CURSOR_WIDTH and CURSOR_HEIGHT capabilities return a valid widthxheight
-
 
624
 * combination for the hardware cursor. The intention is that a hardware
-
 
625
 * agnostic userspace can query a cursor plane size to use.
-
 
626
 *
-
 
627
 * Note that the cross-driver contract is to merely return a valid size;
-
 
628
 * drivers are free to attach another meaning on top, eg. i915 returns the
-
 
629
 * maximum plane size.
-
 
630
 */
-
 
631
#define DRM_CAP_CURSOR_WIDTH		0x8
-
 
632
#define DRM_CAP_CURSOR_HEIGHT		0x9
Line 622... Line 633...
622
 
633
 
623
/** DRM_IOCTL_GET_CAP ioctl argument type */
634
/** DRM_IOCTL_GET_CAP ioctl argument type */
624
struct drm_get_cap {
635
struct drm_get_cap {
625
	__u64 capability;
636
	__u64 capability;
Line 633... Line 644...
633
 * monitor by advertising the supported 3D layouts in the flags of struct
644
 * monitor by advertising the supported 3D layouts in the flags of struct
634
 * drm_mode_modeinfo.
645
 * drm_mode_modeinfo.
635
 */
646
 */
636
#define DRM_CLIENT_CAP_STEREO_3D	1
647
#define DRM_CLIENT_CAP_STEREO_3D	1
Line -... Line 648...
-
 
648
 
-
 
649
/**
-
 
650
 * DRM_CLIENT_CAP_UNIVERSAL_PLANES
-
 
651
 *
-
 
652
 * If set to 1, the DRM core will expose all planes (overlay, primary, and
-
 
653
 * cursor) to userspace.
-
 
654
 */
-
 
655
#define DRM_CLIENT_CAP_UNIVERSAL_PLANES  2
637
 
656
 
638
/** DRM_IOCTL_SET_CLIENT_CAP ioctl argument type */
657
/** DRM_IOCTL_SET_CLIENT_CAP ioctl argument type */
639
struct drm_set_client_cap {
658
struct drm_set_client_cap {
640
	__u64 capability;
659
	__u64 capability;
641
	__u64 value;
660
	__u64 value;
Line 759... Line 778...
759
#define DRM_IOCTL_MODE_OBJ_SETPROPERTY	DRM_IOWR(0xBA, struct drm_mode_obj_set_property)
778
#define DRM_IOCTL_MODE_OBJ_SETPROPERTY	DRM_IOWR(0xBA, struct drm_mode_obj_set_property)
760
#define DRM_IOCTL_MODE_CURSOR2		DRM_IOWR(0xBB, struct drm_mode_cursor2)
779
#define DRM_IOCTL_MODE_CURSOR2		DRM_IOWR(0xBB, struct drm_mode_cursor2)
Line 761... Line 780...
761
 
780
 
762
/**
781
/**
763
 * Device specific ioctls should only be in their respective headers
782
 * Device specific ioctls should only be in their respective headers
764
 * The device specific ioctl range is from 0x40 to 0x99.
783
 * The device specific ioctl range is from 0x40 to 0x9f.
765
 * Generic IOCTLS restart at 0xA0.
784
 * Generic IOCTLS restart at 0xA0.
766
 *
785
 *
767
 * \sa drmCommandNone(), drmCommandRead(), drmCommandWrite(), and
786
 * \sa drmCommandNone(), drmCommandRead(), drmCommandWrite(), and
768
 * drmCommandReadWrite().
787
 * drmCommandReadWrite().