Back to index

libdrm  2.4.37
Classes | Defines
drm_mode.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  drm_mode_modeinfo
struct  drm_mode_card_res
struct  drm_mode_crtc
struct  drm_mode_set_plane
struct  drm_mode_get_plane
struct  drm_mode_get_plane_res
struct  drm_mode_get_encoder
struct  drm_mode_get_connector
struct  drm_mode_property_enum
struct  drm_mode_get_property
struct  drm_mode_connector_set_property
struct  drm_mode_obj_get_properties
struct  drm_mode_obj_set_property
struct  drm_mode_get_blob
struct  drm_mode_fb_cmd
struct  drm_mode_fb_cmd2
struct  drm_mode_fb_dirty_cmd
struct  drm_mode_mode_cmd
struct  drm_mode_cursor
struct  drm_mode_crtc_lut
struct  drm_mode_crtc_page_flip
struct  drm_mode_create_dumb
struct  drm_mode_map_dumb
struct  drm_mode_destroy_dumb

Defines

#define DRM_DISPLAY_INFO_LEN   32
#define DRM_CONNECTOR_NAME_LEN   32
#define DRM_DISPLAY_MODE_LEN   32
#define DRM_PROP_NAME_LEN   32
#define DRM_MODE_TYPE_BUILTIN   (1<<0)
#define DRM_MODE_TYPE_CLOCK_C   ((1<<1) | DRM_MODE_TYPE_BUILTIN)
#define DRM_MODE_TYPE_CRTC_C   ((1<<2) | DRM_MODE_TYPE_BUILTIN)
#define DRM_MODE_TYPE_PREFERRED   (1<<3)
#define DRM_MODE_TYPE_DEFAULT   (1<<4)
#define DRM_MODE_TYPE_USERDEF   (1<<5)
#define DRM_MODE_TYPE_DRIVER   (1<<6)
#define DRM_MODE_FLAG_PHSYNC   (1<<0)
#define DRM_MODE_FLAG_NHSYNC   (1<<1)
#define DRM_MODE_FLAG_PVSYNC   (1<<2)
#define DRM_MODE_FLAG_NVSYNC   (1<<3)
#define DRM_MODE_FLAG_INTERLACE   (1<<4)
#define DRM_MODE_FLAG_DBLSCAN   (1<<5)
#define DRM_MODE_FLAG_CSYNC   (1<<6)
#define DRM_MODE_FLAG_PCSYNC   (1<<7)
#define DRM_MODE_FLAG_NCSYNC   (1<<8)
#define DRM_MODE_FLAG_HSKEW   (1<<9) /* hskew provided */
#define DRM_MODE_FLAG_BCAST   (1<<10)
#define DRM_MODE_FLAG_PIXMUX   (1<<11)
#define DRM_MODE_FLAG_DBLCLK   (1<<12)
#define DRM_MODE_FLAG_CLKDIV2   (1<<13)
#define DRM_MODE_DPMS_ON   0
#define DRM_MODE_DPMS_STANDBY   1
#define DRM_MODE_DPMS_SUSPEND   2
#define DRM_MODE_DPMS_OFF   3
#define DRM_MODE_SCALE_NONE
#define DRM_MODE_SCALE_FULLSCREEN   1 /* Full screen, ignore aspect */
#define DRM_MODE_SCALE_CENTER   2 /* Centered, no scaling */
#define DRM_MODE_SCALE_ASPECT   3 /* Full screen, preserve aspect */
#define DRM_MODE_DITHERING_OFF   0
#define DRM_MODE_DITHERING_ON   1
#define DRM_MODE_DITHERING_AUTO   2
#define DRM_MODE_DIRTY_OFF   0
#define DRM_MODE_DIRTY_ON   1
#define DRM_MODE_DIRTY_ANNOTATE   2
#define DRM_MODE_PRESENT_TOP_FIELD   (1<<0)
#define DRM_MODE_PRESENT_BOTTOM_FIELD   (1<<1)
#define DRM_MODE_ENCODER_NONE   0
#define DRM_MODE_ENCODER_DAC   1
#define DRM_MODE_ENCODER_TMDS   2
#define DRM_MODE_ENCODER_LVDS   3
#define DRM_MODE_ENCODER_TVDAC   4
#define DRM_MODE_SUBCONNECTOR_Automatic   0
#define DRM_MODE_SUBCONNECTOR_Unknown   0
#define DRM_MODE_SUBCONNECTOR_DVID   3
#define DRM_MODE_SUBCONNECTOR_DVIA   4
#define DRM_MODE_SUBCONNECTOR_Composite   5
#define DRM_MODE_SUBCONNECTOR_SVIDEO   6
#define DRM_MODE_SUBCONNECTOR_Component   8
#define DRM_MODE_SUBCONNECTOR_SCART   9
#define DRM_MODE_CONNECTOR_Unknown   0
#define DRM_MODE_CONNECTOR_VGA   1
#define DRM_MODE_CONNECTOR_DVII   2
#define DRM_MODE_CONNECTOR_DVID   3
#define DRM_MODE_CONNECTOR_DVIA   4
#define DRM_MODE_CONNECTOR_Composite   5
#define DRM_MODE_CONNECTOR_SVIDEO   6
#define DRM_MODE_CONNECTOR_LVDS   7
#define DRM_MODE_CONNECTOR_Component   8
#define DRM_MODE_CONNECTOR_9PinDIN   9
#define DRM_MODE_CONNECTOR_DisplayPort   10
#define DRM_MODE_CONNECTOR_HDMIA   11
#define DRM_MODE_CONNECTOR_HDMIB   12
#define DRM_MODE_CONNECTOR_TV   13
#define DRM_MODE_CONNECTOR_eDP   14
#define DRM_MODE_PROP_PENDING   (1<<0)
#define DRM_MODE_PROP_RANGE   (1<<1)
#define DRM_MODE_PROP_IMMUTABLE   (1<<2)
#define DRM_MODE_PROP_ENUM   (1<<3) /* enumerated type with text strings */
#define DRM_MODE_PROP_BLOB   (1<<4)
#define DRM_MODE_PROP_BITMASK   (1<<5) /* bitmask of enumerated types */
#define DRM_MODE_OBJECT_CRTC   0xcccccccc
#define DRM_MODE_OBJECT_CONNECTOR   0xc0c0c0c0
#define DRM_MODE_OBJECT_ENCODER   0xe0e0e0e0
#define DRM_MODE_OBJECT_MODE   0xdededede
#define DRM_MODE_OBJECT_PROPERTY   0xb0b0b0b0
#define DRM_MODE_OBJECT_FB   0xfbfbfbfb
#define DRM_MODE_OBJECT_BLOB   0xbbbbbbbb
#define DRM_MODE_OBJECT_PLANE   0xeeeeeeee
#define DRM_MODE_FB_INTERLACED   (1<<0) /* for interlaced framebuffers */
#define DRM_MODE_FB_DIRTY_ANNOTATE_COPY   0x01
#define DRM_MODE_FB_DIRTY_ANNOTATE_FILL   0x02
#define DRM_MODE_FB_DIRTY_FLAGS   0x03
#define DRM_MODE_CURSOR_BO   (1<<0)
#define DRM_MODE_CURSOR_MOVE   (1<<1)
#define DRM_MODE_PAGE_FLIP_EVENT   0x01
#define DRM_MODE_PAGE_FLIP_FLAGS   DRM_MODE_PAGE_FLIP_EVENT

Class Documentation

struct drm_mode_modeinfo

Definition at line 83 of file drm_mode.h.

Class Members
__u32 clock
__u32 flags
__u16 hdisplay
__u16 hskew
__u16 hsync_end
__u16 hsync_start
__u16 htotal
char name
__u32 type
__u16 vdisplay
__u32 vrefresh
__u16 vscan
__u16 vsync_end
__u16 vsync_start
__u16 vtotal
struct drm_mode_card_res

Definition at line 95 of file drm_mode.h.

Class Members
__u64 connector_id_ptr
__u32 count_connectors
__u32 count_crtcs
__u32 count_encoders
__u32 count_fbs
__u64 crtc_id_ptr
__u64 encoder_id_ptr
__u64 fb_id_ptr
__u32 max_height
__u32 max_width
__u32 min_height
__u32 min_width
struct drm_mode_crtc

Definition at line 108 of file drm_mode.h.

Class Members
__u32 count_connectors
__u32 crtc_id Id.
__u32 fb_id Id of framebuffer.
__u32 gamma_size
__u32 mode_valid
__u64 set_connectors_ptr
__u32 x
__u32 y Position on the frameuffer.
struct drm_mode_set_plane

Definition at line 126 of file drm_mode.h.

Class Members
__u32 crtc_h
__u32 crtc_id
__u32 crtc_w
__s32 crtc_x
__s32 crtc_y
__u32 fb_id
__u32 flags
__u32 plane_id
__u32 src_h
__u32 src_w
__u32 src_x
__u32 src_y
struct drm_mode_get_plane

Definition at line 141 of file drm_mode.h.

Class Members
__u32 count_format_types
__u32 crtc_id
__u32 fb_id
__u64 format_type_ptr
__u32 gamma_size
__u32 plane_id
__u32 possible_crtcs
struct drm_mode_get_plane_res

Definition at line 154 of file drm_mode.h.

Class Members
__u32 count_planes
__u64 plane_id_ptr
struct drm_mode_get_encoder

Definition at line 165 of file drm_mode.h.

Class Members
__u32 crtc_id Id of crtc.
__u32 encoder_id
__u32 encoder_type
__u32 possible_clones
__u32 possible_crtcs
struct drm_mode_get_connector

Definition at line 202 of file drm_mode.h.

Class Members
__u32 connection
__u32 connector_id Id.
__u32 connector_type
__u32 connector_type_id
__u32 count_encoders
__u32 count_modes
__u32 count_props
__u32 encoder_id Current Encoder.
__u64 encoders_ptr
__u32 mm_height HxW in millimeters.
__u32 mm_width
__u64 modes_ptr
__u64 prop_values_ptr
__u64 props_ptr
__u32 subpixel
struct drm_mode_property_enum

Definition at line 230 of file drm_mode.h.

Class Members
char name
__u64 value
struct drm_mode_get_property

Definition at line 235 of file drm_mode.h.

Class Members
__u32 count_enum_blobs
__u32 count_values
__u64 enum_blob_ptr
__u32 flags
char name
__u32 prop_id
__u64 values_ptr
struct drm_mode_connector_set_property

Definition at line 247 of file drm_mode.h.

Class Members
__u32 connector_id
__u32 prop_id
__u64 value
struct drm_mode_obj_get_properties

Definition at line 262 of file drm_mode.h.

Class Members
__u32 count_props
__u32 obj_id
__u32 obj_type
__u64 prop_values_ptr
__u64 props_ptr
struct drm_mode_obj_set_property

Definition at line 270 of file drm_mode.h.

Class Members
__u32 obj_id
__u32 obj_type
__u32 prop_id
__u64 value
struct drm_mode_get_blob

Definition at line 277 of file drm_mode.h.

Class Members
__u32 blob_id
__u64 data
__u32 length
struct drm_mode_fb_cmd

Definition at line 283 of file drm_mode.h.

Class Members
__u32 bpp
__u32 depth
__u32 fb_id
__u32 handle
__u32 height
__u32 pitch
__u32 width
struct drm_mode_fb_cmd2

Definition at line 295 of file drm_mode.h.

Class Members
__u32 fb_id
__u32 flags
__u32 handles
__u32 height
__u32 offsets
__u32 pitches
__u32 pixel_format
__u32 width
struct drm_mode_fb_dirty_cmd

Definition at line 351 of file drm_mode.h.

Class Members
__u64 clips_ptr
__u32 color
__u32 fb_id
__u32 flags
__u32 num_clips
struct drm_mode_mode_cmd

Definition at line 359 of file drm_mode.h.

Class Members
__u32 connector_id
struct drm_mode_cursor

Definition at line 381 of file drm_mode.h.

Class Members
__u32 crtc_id
__u32 flags
__u32 handle
__u32 height
__u32 width
__s32 x
__s32 y
struct drm_mode_crtc_lut

Definition at line 392 of file drm_mode.h.

Class Members
__u64 blue
__u32 crtc_id
__u32 gamma_size
__u64 green
__u64 red
struct drm_mode_crtc_page_flip

Definition at line 427 of file drm_mode.h.

Class Members
__u32 crtc_id
__u32 fb_id
__u32 flags
__u32 reserved
__u64 user_data
struct drm_mode_create_dumb

Definition at line 436 of file drm_mode.h.

Class Members
__u32 bpp
__u32 flags
__u32 handle
__u32 height
__u32 pitch
__u64 size
__u32 width
struct drm_mode_map_dumb

Definition at line 448 of file drm_mode.h.

Class Members
__u32 handle Handle for the object being mapped.
__u64 offset Fake offset to use for subsequent mmap call. This is a fixed-size type for 32/64 compatibility.
__u32 pad
struct drm_mode_destroy_dumb

Definition at line 460 of file drm_mode.h.

Class Members
__u32 handle

Define Documentation

#define DRM_CONNECTOR_NAME_LEN   32

Definition at line 31 of file drm_mode.h.

#define DRM_DISPLAY_INFO_LEN   32

Definition at line 30 of file drm_mode.h.

#define DRM_DISPLAY_MODE_LEN   32

Definition at line 32 of file drm_mode.h.

Definition at line 195 of file drm_mode.h.

Definition at line 194 of file drm_mode.h.

Definition at line 191 of file drm_mode.h.

Definition at line 196 of file drm_mode.h.

#define DRM_MODE_CONNECTOR_DVIA   4

Definition at line 190 of file drm_mode.h.

#define DRM_MODE_CONNECTOR_DVID   3

Definition at line 189 of file drm_mode.h.

#define DRM_MODE_CONNECTOR_DVII   2

Definition at line 188 of file drm_mode.h.

#define DRM_MODE_CONNECTOR_eDP   14

Definition at line 200 of file drm_mode.h.

#define DRM_MODE_CONNECTOR_HDMIA   11

Definition at line 197 of file drm_mode.h.

#define DRM_MODE_CONNECTOR_HDMIB   12

Definition at line 198 of file drm_mode.h.

#define DRM_MODE_CONNECTOR_LVDS   7

Definition at line 193 of file drm_mode.h.

#define DRM_MODE_CONNECTOR_SVIDEO   6

Definition at line 192 of file drm_mode.h.

#define DRM_MODE_CONNECTOR_TV   13

Definition at line 199 of file drm_mode.h.

Definition at line 186 of file drm_mode.h.

#define DRM_MODE_CONNECTOR_VGA   1

Definition at line 187 of file drm_mode.h.

#define DRM_MODE_CURSOR_BO   (1<<0)

Definition at line 364 of file drm_mode.h.

#define DRM_MODE_CURSOR_MOVE   (1<<1)

Definition at line 365 of file drm_mode.h.

#define DRM_MODE_DIRTY_ANNOTATE   2

Definition at line 81 of file drm_mode.h.

#define DRM_MODE_DIRTY_OFF   0

Definition at line 79 of file drm_mode.h.

#define DRM_MODE_DIRTY_ON   1

Definition at line 80 of file drm_mode.h.

#define DRM_MODE_DITHERING_AUTO   2

Definition at line 76 of file drm_mode.h.

#define DRM_MODE_DITHERING_OFF   0

Definition at line 74 of file drm_mode.h.

#define DRM_MODE_DITHERING_ON   1

Definition at line 75 of file drm_mode.h.

#define DRM_MODE_DPMS_OFF   3

Definition at line 65 of file drm_mode.h.

#define DRM_MODE_DPMS_ON   0

Definition at line 62 of file drm_mode.h.

#define DRM_MODE_DPMS_STANDBY   1

Definition at line 63 of file drm_mode.h.

#define DRM_MODE_DPMS_SUSPEND   2

Definition at line 64 of file drm_mode.h.

#define DRM_MODE_ENCODER_DAC   1

Definition at line 160 of file drm_mode.h.

#define DRM_MODE_ENCODER_LVDS   3

Definition at line 162 of file drm_mode.h.

#define DRM_MODE_ENCODER_NONE   0

Definition at line 159 of file drm_mode.h.

#define DRM_MODE_ENCODER_TMDS   2

Definition at line 161 of file drm_mode.h.

#define DRM_MODE_ENCODER_TVDAC   4

Definition at line 163 of file drm_mode.h.

Definition at line 320 of file drm_mode.h.

Definition at line 321 of file drm_mode.h.

#define DRM_MODE_FB_DIRTY_FLAGS   0x03

Definition at line 322 of file drm_mode.h.

#define DRM_MODE_FB_INTERLACED   (1<<0) /* for interlaced framebuffers */

Definition at line 293 of file drm_mode.h.

#define DRM_MODE_FLAG_BCAST   (1<<10)

Definition at line 55 of file drm_mode.h.

#define DRM_MODE_FLAG_CLKDIV2   (1<<13)

Definition at line 58 of file drm_mode.h.

#define DRM_MODE_FLAG_CSYNC   (1<<6)

Definition at line 51 of file drm_mode.h.

#define DRM_MODE_FLAG_DBLCLK   (1<<12)

Definition at line 57 of file drm_mode.h.

#define DRM_MODE_FLAG_DBLSCAN   (1<<5)

Definition at line 50 of file drm_mode.h.

#define DRM_MODE_FLAG_HSKEW   (1<<9) /* hskew provided */

Definition at line 54 of file drm_mode.h.

#define DRM_MODE_FLAG_INTERLACE   (1<<4)

Definition at line 49 of file drm_mode.h.

#define DRM_MODE_FLAG_NCSYNC   (1<<8)

Definition at line 53 of file drm_mode.h.

#define DRM_MODE_FLAG_NHSYNC   (1<<1)

Definition at line 46 of file drm_mode.h.

#define DRM_MODE_FLAG_NVSYNC   (1<<3)

Definition at line 48 of file drm_mode.h.

#define DRM_MODE_FLAG_PCSYNC   (1<<7)

Definition at line 52 of file drm_mode.h.

#define DRM_MODE_FLAG_PHSYNC   (1<<0)

Definition at line 45 of file drm_mode.h.

#define DRM_MODE_FLAG_PIXMUX   (1<<11)

Definition at line 56 of file drm_mode.h.

#define DRM_MODE_FLAG_PVSYNC   (1<<2)

Definition at line 47 of file drm_mode.h.

#define DRM_MODE_OBJECT_BLOB   0xbbbbbbbb

Definition at line 259 of file drm_mode.h.

#define DRM_MODE_OBJECT_CONNECTOR   0xc0c0c0c0

Definition at line 254 of file drm_mode.h.

#define DRM_MODE_OBJECT_CRTC   0xcccccccc

Definition at line 253 of file drm_mode.h.

#define DRM_MODE_OBJECT_ENCODER   0xe0e0e0e0

Definition at line 255 of file drm_mode.h.

#define DRM_MODE_OBJECT_FB   0xfbfbfbfb

Definition at line 258 of file drm_mode.h.

#define DRM_MODE_OBJECT_MODE   0xdededede

Definition at line 256 of file drm_mode.h.

#define DRM_MODE_OBJECT_PLANE   0xeeeeeeee

Definition at line 260 of file drm_mode.h.

#define DRM_MODE_OBJECT_PROPERTY   0xb0b0b0b0

Definition at line 257 of file drm_mode.h.

#define DRM_MODE_PAGE_FLIP_EVENT   0x01

Definition at line 402 of file drm_mode.h.

Definition at line 403 of file drm_mode.h.

#define DRM_MODE_PRESENT_BOTTOM_FIELD   (1<<1)

Definition at line 123 of file drm_mode.h.

#define DRM_MODE_PRESENT_TOP_FIELD   (1<<0)

Definition at line 122 of file drm_mode.h.

#define DRM_MODE_PROP_BITMASK   (1<<5) /* bitmask of enumerated types */

Definition at line 228 of file drm_mode.h.

#define DRM_MODE_PROP_BLOB   (1<<4)

Definition at line 227 of file drm_mode.h.

#define DRM_MODE_PROP_ENUM   (1<<3) /* enumerated type with text strings */

Definition at line 226 of file drm_mode.h.

#define DRM_MODE_PROP_IMMUTABLE   (1<<2)

Definition at line 225 of file drm_mode.h.

#define DRM_MODE_PROP_PENDING   (1<<0)

Definition at line 223 of file drm_mode.h.

#define DRM_MODE_PROP_RANGE   (1<<1)

Definition at line 224 of file drm_mode.h.

#define DRM_MODE_SCALE_ASPECT   3 /* Full screen, preserve aspect */

Definition at line 71 of file drm_mode.h.

#define DRM_MODE_SCALE_CENTER   2 /* Centered, no scaling */

Definition at line 70 of file drm_mode.h.

#define DRM_MODE_SCALE_FULLSCREEN   1 /* Full screen, ignore aspect */

Definition at line 69 of file drm_mode.h.

Value:
0 /* Unmodified timing (display or
                                        software can still scale) */

Definition at line 68 of file drm_mode.h.

Definition at line 177 of file drm_mode.h.

Definition at line 183 of file drm_mode.h.

Definition at line 181 of file drm_mode.h.

Definition at line 180 of file drm_mode.h.

Definition at line 179 of file drm_mode.h.

Definition at line 184 of file drm_mode.h.

Definition at line 182 of file drm_mode.h.

Definition at line 178 of file drm_mode.h.

#define DRM_MODE_TYPE_BUILTIN   (1<<0)

Definition at line 35 of file drm_mode.h.

Definition at line 36 of file drm_mode.h.

Definition at line 37 of file drm_mode.h.

#define DRM_MODE_TYPE_DEFAULT   (1<<4)

Definition at line 39 of file drm_mode.h.

#define DRM_MODE_TYPE_DRIVER   (1<<6)

Definition at line 41 of file drm_mode.h.

#define DRM_MODE_TYPE_PREFERRED   (1<<3)

Definition at line 38 of file drm_mode.h.

#define DRM_MODE_TYPE_USERDEF   (1<<5)

Definition at line 40 of file drm_mode.h.

#define DRM_PROP_NAME_LEN   32

Definition at line 33 of file drm_mode.h.