|
| #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_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 0 |
| |
| #define | DRM_MODE_SCALE_FULLSCREEN 1 |
| |
| #define | DRM_MODE_SCALE_CENTER 2 |
| |
| #define | DRM_MODE_SCALE_ASPECT 3 |
| |
| #define | DRM_MODE_DITHERING_OFF 0 |
| |
| #define | DRM_MODE_DITHERING_ON 1 |
| |
| #define | DRM_MODE_DITHERING_AUTO 2 |
| |
| #define | DRM_MODE_PICTURE_ASPECT_NONE 0 |
| |
| #define | DRM_MODE_PICTURE_ASPECT_4_3 1 |
| |
| #define | DRM_MODE_PICTURE_ASPECT_16_9 2 |
| |
| #define | DRM_MODE_CONTENT_TYPE_NO_DATA 0 |
| |
| #define | DRM_MODE_CONTENT_TYPE_GRAPHICS 1 |
| |
| #define | DRM_MODE_CONTENT_TYPE_PHOTO 2 |
| |
| #define | DRM_MODE_CONTENT_TYPE_CINEMA 3 |
| |
| #define | DRM_MODE_CONTENT_TYPE_GAME 4 |
| |
| #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_CONNECTOR_VIRTUAL 15 |
| |
| #define | DRM_MODE_CONNECTOR_DSI 16 |
| |
| #define | DRM_MODE_CONNECTOR_DPI 17 |
| |
| #define | DRM_MODE_CONNECTOR_WRITEBACK 18 |
| |
| #define | DRM_MODE_CONNECTOR_SPI 19 |
| |
| #define | DRM_MODE_CONNECTED 1 |
| |
| #define | DRM_MODE_DISCONNECTED 2 |
| |
| #define | DRM_MODE_UNKNOWNCONNECTION 3 |
| |
| #define | DRM_MODE_SUBPIXEL_UNKNOWN 0 |
| |
| #define | DRM_MODE_SUBPIXEL_HORIZONTAL_RGB 1 |
| |
| #define | DRM_MODE_SUBPIXEL_HORIZONTAL_BGR 2 |
| |
| #define | DRM_MODE_SUBPIXEL_VERTICAL_RGB 3 |
| |
| #define | DRM_MODE_SUBPIXEL_VERTICAL_BGR 4 |
| |
| #define | DRM_MODE_SUBPIXEL_NONE 5 |
| |
| #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_ENCODER_VIRTUAL 5 |
| |
| #define | DRM_MODE_ENCODER_DSI 6 |
| |
| #define | DRM_MODE_ENCODER_DPMST 7 |
| |
| #define | DRM_MODE_ENCODER_DPI 8 |
| |
| #define | DRM_MODE_CURSOR_BO 0x01 |
| |
| #define | DRM_MODE_CURSOR_MOVE 0x02 |
| |
| #define | DRM_MODE_CURSOR_FLAGS_MASK 0x03 |
| |
| #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) |
| |
| #define | DRM_MODE_PROP_BLOB (1 << 4) |
| |
| #define | DRM_MODE_PROP_BITMASK (1 << 5) |
| |
| #define | DRM_MODE_PROP_TYPE (1 << 6) |
| |
| #define | DRM_MODE_PROP_OBJECT (1 << 7) |
| |
| #define | DRM_MODE_PROP_SIGNED_RANGE (1 << 8) |
| |
| #define | DRM_MODE_FB_INTERLACED (1 << 0) |
| |
| #define | DRM_MODE_FB_MODIFIERS (1 << 1) |
| |
| #define | DRM_MODE_FB_DIRTY_ANNOTATE_COPY 0x01 |
| |
| #define | DRM_MODE_FB_DIRTY_ANNOTATE_FILL 0x02 |
| |
| #define | DRM_MODE_FB_DIRTY_MAX_CLIPS 256 |
| |
| #define | DRM_MODE_PAGE_FLIP_EVENT 0x01 |
| |
| #define | DRM_MODE_PAGE_FLIP_ASYNC 0x02 |
| |
| #define | DRM_MODE_PAGE_FLIP_TARGET_ABSOLUTE 0x04 |
| |
| #define | DRM_MODE_PAGE_FLIP_TARGET_RELATIVE 0x08 |
| |
| #define | DRM_MODE_ATOMIC_TEST_ONLY 0x0100 |
| |
| #define | DRM_MODE_ATOMIC_NONBLOCK 0x0200 |
| |
| #define | DRM_MODE_ATOMIC_PAGE_FLIP_EVENT 0x0400 |
| |
| #define | DRM_MODE_ATOMIC_PAGE_FLIP_ASYNC 0x0800 |
| |
| #define | DRM_PLANE_TYPE_OVERLAY 0 |
| |
| #define | DRM_PLANE_TYPE_PRIMARY 1 |
| |
| #define | DRM_PLANE_TYPE_CURSOR 2 |
| |
| #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_OBJECT_ANY 0 |
| |
| #define | DRM_IOCTL_MODE_GETRESOURCES DRM_IOWR(0xA0, struct drm_mode_card_res) |
| |
| #define | DRM_IOCTL_MODE_GETCRTC DRM_IOWR(0xA1, struct drm_mode_crtc) |
| |
| #define | DRM_IOCTL_MODE_SETCRTC DRM_IOWR(0xA2, struct drm_mode_crtc) |
| |
| #define | DRM_IOCTL_MODE_CURSOR DRM_IOWR(0xA3, struct drm_mode_cursor) |
| |
| #define | DRM_IOCTL_MODE_GETGAMMA DRM_IOWR(0xA4, struct drm_mode_crtc_lut) |
| |
| #define | DRM_IOCTL_MODE_SETGAMMA DRM_IOWR(0xA5, struct drm_mode_crtc_lut) |
| |
| #define | DRM_IOCTL_MODE_GETENCODER DRM_IOWR(0xA6, struct drm_mode_get_encoder) |
| |
| #define | DRM_IOCTL_MODE_GETCONNECTOR DRM_IOWR(0xA7, struct drm_mode_get_connector) |
| |
| #define | DRM_IOCTL_MODE_ATTACHMODE DRM_IOWR(0xA8, struct drm_mode_mode_cmd) |
| |
| #define | DRM_IOCTL_MODE_DETACHMODE DRM_IOWR(0xA9, struct drm_mode_mode_cmd) |
| |
| #define | DRM_IOCTL_MODE_GETPROPERTY DRM_IOWR(0xAA, struct drm_mode_get_property) |
| |
| #define | DRM_IOCTL_MODE_SETPROPERTY DRM_IOWR(0xAB, struct drm_mode_connector_set_property) |
| |
| #define | DRM_IOCTL_MODE_GETPROPBLOB DRM_IOWR(0xAC, struct drm_mode_get_blob) |
| |
| #define | DRM_IOCTL_MODE_GETFB DRM_IOWR(0xAD, struct drm_mode_fb_cmd) |
| |
| #define | DRM_IOCTL_MODE_ADDFB DRM_IOWR(0xAE, struct drm_mode_fb_cmd) |
| |
| #define | DRM_IOCTL_MODE_RMFB DRM_IOWR(0xAF, unsigned int) |
| |
| #define | DRM_IOCTL_MODE_PAGE_FLIP DRM_IOWR(0xB0, struct drm_mode_crtc_page_flip) |
| |
| #define | DRM_IOCTL_MODE_DIRTYFB DRM_IOWR(0xB1, struct drm_mode_fb_dirty_cmd) |
| |
| #define | DRM_IOCTL_MODE_CREATE_DUMB DRM_IOWR(0xB2, struct drm_mode_create_dumb) |
| |
| #define | DRM_IOCTL_MODE_MAP_DUMB DRM_IOWR(0xB3, struct drm_mode_map_dumb) |
| |
| #define | DRM_IOCTL_MODE_DESTROY_DUMB DRM_IOWR(0xB4, struct drm_mode_destroy_dumb) |
| |
| #define | DRM_IOCTL_MODE_GETPLANERESOURCES DRM_IOWR(0xB5, struct drm_mode_get_plane_res) |
| |
| #define | DRM_IOCTL_MODE_GETPLANE DRM_IOWR(0xB6, struct drm_mode_get_plane) |
| |
| #define | DRM_IOCTL_MODE_SETPLANE DRM_IOWR(0xB7, struct drm_mode_set_plane) |
| |
| #define | DRM_IOCTL_MODE_ADDFB2 DRM_IOWR(0xB8, struct drm_mode_fb_cmd2) |
| |
| #define | DRM_IOCTL_MODE_OBJ_GETPROPERTIES DRM_IOWR(0xB9, struct drm_mode_obj_get_properties) |
| |
| #define | DRM_IOCTL_MODE_OBJ_SETPROPERTY DRM_IOWR(0xBA, struct drm_mode_obj_set_property) |
| |
| #define | DRM_IOCTL_MODE_CURSOR2 DRM_IOWR(0xBB, struct drm_mode_cursor2) |
| |
| #define | DRM_IOCTL_MODE_ATOMIC DRM_IOWR(0xBC, struct drm_mode_atomic) |
| |
| #define | DRM_IOCTL_MODE_CREATEPROPBLOB DRM_IOWR(0xBD, struct drm_mode_create_blob) |
| |
| #define | DRM_IOCTL_MODE_DESTROYPROPBLOB DRM_IOWR(0xBE, struct drm_mode_destroy_blob) |
| |
| #define | fourcc_code(a, b, c, d) |
| |
| #define | DRM_FORMAT_BIG_ENDIAN (1U << 31) |
| |
| #define | DRM_FORMAT_INVALID 0 |
| |
| #define | DRM_FORMAT_C8 fourcc_code('C', '8', ' ', ' ') |
| |
| #define | DRM_FORMAT_RGB565 fourcc_code('R', 'G', '1', '6') |
| |
| #define | DRM_FORMAT_BGR565 fourcc_code('B', 'G', '1', '6') |
| |
| #define | DRM_FORMAT_RGB555 fourcc_code('R', 'G', '1', '5') |
| |
| #define | DRM_FORMAT_BGR555 fourcc_code('B', 'G', '1', '5') |
| |
| #define | DRM_FORMAT_RGB888 fourcc_code('R', 'G', '2', '4') |
| |
| #define | DRM_FORMAT_BGR888 fourcc_code('B', 'G', '2', '4') |
| |
| #define | DRM_FORMAT_XRGB8888 fourcc_code('X', 'R', '2', '4') |
| |
| #define | DRM_FORMAT_XBGR8888 fourcc_code('X', 'B', '2', '4') |
| |
| #define | DRM_FORMAT_RGBX8888 fourcc_code('R', 'X', '2', '4') |
| |
| #define | DRM_FORMAT_BGRX8888 fourcc_code('B', 'X', '2', '4') |
| |
| #define | DRM_FORMAT_ARGB8888 fourcc_code('A', 'R', '2', '4') |
| |
| #define | DRM_FORMAT_ABGR8888 fourcc_code('A', 'B', '2', '4') |
| |
| #define | DRM_FORMAT_RGBA8888 fourcc_code('R', 'A', '2', '4') |
| |
| #define | DRM_FORMAT_BGRA8888 fourcc_code('B', 'A', '2', '4') |
| |