/* automatically generated by rust-bindgen 0.71.1 */
pub const __BITS_PER_LONG: u32 = 64;
pub const __BITS_PER_LONG_LONG: u32 = 64;
pub const __FD_SETSIZE: u32 = 1024;
pub const _IOC_NRBITS: u32 = 8;
pub const _IOC_TYPEBITS: u32 = 8;
pub const _IOC_SIZEBITS: u32 = 14;
pub const _IOC_DIRBITS: u32 = 2;
pub const _IOC_NRMASK: u32 = 255;
pub const _IOC_TYPEMASK: u32 = 255;
pub const _IOC_SIZEMASK: u32 = 16383;
pub const _IOC_DIRMASK: u32 = 3;
pub const _IOC_NRSHIFT: u32 = 0;
pub const _IOC_TYPESHIFT: u32 = 8;
pub const _IOC_SIZESHIFT: u32 = 16;
pub const _IOC_DIRSHIFT: u32 = 30;
pub const _IOC_NONE: u32 = 0;
pub const _IOC_WRITE: u32 = 1;
pub const _IOC_READ: u32 = 2;
pub const IOC_IN: u32 = 1073741824;
pub const IOC_OUT: u32 = 2147483648;
pub const IOC_INOUT: u32 = 3221225472;
pub const IOCSIZE_MASK: u32 = 1073676288;
pub const IOCSIZE_SHIFT: u32 = 16;
pub const DRM_NAME: &[u8; 4] = b"drm\0";
pub const DRM_MIN_ORDER: u32 = 5;
pub const DRM_MAX_ORDER: u32 = 22;
pub const DRM_RAM_PERCENT: u32 = 10;
pub const _DRM_LOCK_HELD: u32 = 2147483648;
pub const _DRM_LOCK_CONT: u32 = 1073741824;
pub const _DRM_VBLANK_HIGH_CRTC_SHIFT: u32 = 1;
pub const _DRM_PRE_MODESET: u32 = 1;
pub const _DRM_POST_MODESET: u32 = 2;
pub const DRM_CAP_DUMB_BUFFER: u32 = 1;
pub const DRM_CAP_VBLANK_HIGH_CRTC: u32 = 2;
pub const DRM_CAP_DUMB_PREFERRED_DEPTH: u32 = 3;
pub const DRM_CAP_DUMB_PREFER_SHADOW: u32 = 4;
pub const DRM_CAP_PRIME: u32 = 5;
pub const DRM_PRIME_CAP_IMPORT: u32 = 1;
pub const DRM_PRIME_CAP_EXPORT: u32 = 2;
pub const DRM_CAP_TIMESTAMP_MONOTONIC: u32 = 6;
pub const DRM_CAP_ASYNC_PAGE_FLIP: u32 = 7;
pub const DRM_CAP_CURSOR_WIDTH: u32 = 8;
pub const DRM_CAP_CURSOR_HEIGHT: u32 = 9;
pub const DRM_CAP_ADDFB2_MODIFIERS: u32 = 16;
pub const DRM_CAP_PAGE_FLIP_TARGET: u32 = 17;
pub const DRM_CAP_CRTC_IN_VBLANK_EVENT: u32 = 18;
pub const DRM_CAP_SYNCOBJ: u32 = 19;
pub const DRM_CAP_SYNCOBJ_TIMELINE: u32 = 20;
pub const DRM_CAP_ATOMIC_ASYNC_PAGE_FLIP: u32 = 21;
pub const DRM_CLIENT_CAP_STEREO_3D: u32 = 1;
pub const DRM_CLIENT_CAP_UNIVERSAL_PLANES: u32 = 2;
pub const DRM_CLIENT_CAP_ATOMIC: u32 = 3;
pub const DRM_CLIENT_CAP_ASPECT_RATIO: u32 = 4;
pub const DRM_CLIENT_CAP_WRITEBACK_CONNECTORS: u32 = 5;
pub const DRM_CLIENT_CAP_CURSOR_PLANE_HOTSPOT: u32 = 6;
pub const DRM_SYNCOBJ_CREATE_SIGNALED: u32 = 1;
pub const DRM_SYNCOBJ_FD_TO_HANDLE_FLAGS_IMPORT_SYNC_FILE: u32 = 1;
pub const DRM_SYNCOBJ_HANDLE_TO_FD_FLAGS_EXPORT_SYNC_FILE: u32 = 1;
pub const DRM_SYNCOBJ_WAIT_FLAGS_WAIT_ALL: u32 = 1;
pub const DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMIT: u32 = 2;
pub const DRM_SYNCOBJ_WAIT_FLAGS_WAIT_AVAILABLE: u32 = 4;
pub const DRM_SYNCOBJ_WAIT_FLAGS_WAIT_DEADLINE: u32 = 8;
pub const DRM_SYNCOBJ_QUERY_FLAGS_LAST_SUBMITTED: u32 = 1;
pub const DRM_CRTC_SEQUENCE_RELATIVE: u32 = 1;
pub const DRM_CRTC_SEQUENCE_NEXT_ON_MISS: u32 = 2;
pub const DRM_CLIENT_NAME_MAX_LEN: u32 = 64;
pub const DRM_CONNECTOR_NAME_LEN: u32 = 32;
pub const DRM_DISPLAY_MODE_LEN: u32 = 32;
pub const DRM_PROP_NAME_LEN: u32 = 32;
pub const DRM_MODE_TYPE_BUILTIN: u32 = 1;
pub const DRM_MODE_TYPE_CLOCK_C: u32 = 3;
pub const DRM_MODE_TYPE_CRTC_C: u32 = 5;
pub const DRM_MODE_TYPE_PREFERRED: u32 = 8;
pub const DRM_MODE_TYPE_DEFAULT: u32 = 16;
pub const DRM_MODE_TYPE_USERDEF: u32 = 32;
pub const DRM_MODE_TYPE_DRIVER: u32 = 64;
pub const DRM_MODE_TYPE_ALL: u32 = 104;
pub const DRM_MODE_FLAG_PHSYNC: u32 = 1;
pub const DRM_MODE_FLAG_NHSYNC: u32 = 2;
pub const DRM_MODE_FLAG_PVSYNC: u32 = 4;
pub const DRM_MODE_FLAG_NVSYNC: u32 = 8;
pub const DRM_MODE_FLAG_INTERLACE: u32 = 16;
pub const DRM_MODE_FLAG_DBLSCAN: u32 = 32;
pub const DRM_MODE_FLAG_CSYNC: u32 = 64;
pub const DRM_MODE_FLAG_PCSYNC: u32 = 128;
pub const DRM_MODE_FLAG_NCSYNC: u32 = 256;
pub const DRM_MODE_FLAG_HSKEW: u32 = 512;
pub const DRM_MODE_FLAG_BCAST: u32 = 1024;
pub const DRM_MODE_FLAG_PIXMUX: u32 = 2048;
pub const DRM_MODE_FLAG_DBLCLK: u32 = 4096;
pub const DRM_MODE_FLAG_CLKDIV2: u32 = 8192;
pub const DRM_MODE_FLAG_3D_MASK: u32 = 507904;
pub const DRM_MODE_FLAG_3D_NONE: u32 = 0;
pub const DRM_MODE_FLAG_3D_FRAME_PACKING: u32 = 16384;
pub const DRM_MODE_FLAG_3D_FIELD_ALTERNATIVE: u32 = 32768;
pub const DRM_MODE_FLAG_3D_LINE_ALTERNATIVE: u32 = 49152;
pub const DRM_MODE_FLAG_3D_SIDE_BY_SIDE_FULL: u32 = 65536;
pub const DRM_MODE_FLAG_3D_L_DEPTH: u32 = 81920;
pub const DRM_MODE_FLAG_3D_L_DEPTH_GFX_GFX_DEPTH: u32 = 98304;
pub const DRM_MODE_FLAG_3D_TOP_AND_BOTTOM: u32 = 114688;
pub const DRM_MODE_FLAG_3D_SIDE_BY_SIDE_HALF: u32 = 131072;
pub const DRM_MODE_PICTURE_ASPECT_NONE: u32 = 0;
pub const DRM_MODE_PICTURE_ASPECT_4_3: u32 = 1;
pub const DRM_MODE_PICTURE_ASPECT_16_9: u32 = 2;
pub const DRM_MODE_PICTURE_ASPECT_64_27: u32 = 3;
pub const DRM_MODE_PICTURE_ASPECT_256_135: u32 = 4;
pub const DRM_MODE_CONTENT_TYPE_NO_DATA: u32 = 0;
pub const DRM_MODE_CONTENT_TYPE_GRAPHICS: u32 = 1;
pub const DRM_MODE_CONTENT_TYPE_PHOTO: u32 = 2;
pub const DRM_MODE_CONTENT_TYPE_CINEMA: u32 = 3;
pub const DRM_MODE_CONTENT_TYPE_GAME: u32 = 4;
pub const DRM_MODE_FLAG_PIC_AR_MASK: u32 = 7864320;
pub const DRM_MODE_FLAG_PIC_AR_NONE: u32 = 0;
pub const DRM_MODE_FLAG_PIC_AR_4_3: u32 = 524288;
pub const DRM_MODE_FLAG_PIC_AR_16_9: u32 = 1048576;
pub const DRM_MODE_FLAG_PIC_AR_64_27: u32 = 1572864;
pub const DRM_MODE_FLAG_PIC_AR_256_135: u32 = 2097152;
pub const DRM_MODE_FLAG_ALL: u32 = 521215;
pub const DRM_MODE_DPMS_ON: u32 = 0;
pub const DRM_MODE_DPMS_STANDBY: u32 = 1;
pub const DRM_MODE_DPMS_SUSPEND: u32 = 2;
pub const DRM_MODE_DPMS_OFF: u32 = 3;
pub const DRM_MODE_SCALE_NONE: u32 = 0;
pub const DRM_MODE_SCALE_FULLSCREEN: u32 = 1;
pub const DRM_MODE_SCALE_CENTER: u32 = 2;
pub const DRM_MODE_SCALE_ASPECT: u32 = 3;
pub const DRM_MODE_DITHERING_OFF: u32 = 0;
pub const DRM_MODE_DITHERING_ON: u32 = 1;
pub const DRM_MODE_DITHERING_AUTO: u32 = 2;
pub const DRM_MODE_DIRTY_OFF: u32 = 0;
pub const DRM_MODE_DIRTY_ON: u32 = 1;
pub const DRM_MODE_DIRTY_ANNOTATE: u32 = 2;
pub const DRM_MODE_LINK_STATUS_GOOD: u32 = 0;
pub const DRM_MODE_LINK_STATUS_BAD: u32 = 1;
pub const DRM_MODE_ROTATE_0: u32 = 1;
pub const DRM_MODE_ROTATE_90: u32 = 2;
pub const DRM_MODE_ROTATE_180: u32 = 4;
pub const DRM_MODE_ROTATE_270: u32 = 8;
pub const DRM_MODE_ROTATE_MASK: u32 = 15;
pub const DRM_MODE_REFLECT_X: u32 = 16;
pub const DRM_MODE_REFLECT_Y: u32 = 32;
pub const DRM_MODE_REFLECT_MASK: u32 = 48;
pub const DRM_MODE_CONTENT_PROTECTION_UNDESIRED: u32 = 0;
pub const DRM_MODE_CONTENT_PROTECTION_DESIRED: u32 = 1;
pub const DRM_MODE_CONTENT_PROTECTION_ENABLED: u32 = 2;
pub const DRM_MODE_PRESENT_TOP_FIELD: u32 = 1;
pub const DRM_MODE_PRESENT_BOTTOM_FIELD: u32 = 2;
pub const DRM_MODE_ENCODER_NONE: u32 = 0;
pub const DRM_MODE_ENCODER_DAC: u32 = 1;
pub const DRM_MODE_ENCODER_TMDS: u32 = 2;
pub const DRM_MODE_ENCODER_LVDS: u32 = 3;
pub const DRM_MODE_ENCODER_TVDAC: u32 = 4;
pub const DRM_MODE_ENCODER_VIRTUAL: u32 = 5;
pub const DRM_MODE_ENCODER_DSI: u32 = 6;
pub const DRM_MODE_ENCODER_DPMST: u32 = 7;
pub const DRM_MODE_ENCODER_DPI: u32 = 8;
pub const DRM_MODE_CONNECTOR_Unknown: u32 = 0;
pub const DRM_MODE_CONNECTOR_VGA: u32 = 1;
pub const DRM_MODE_CONNECTOR_DVII: u32 = 2;
pub const DRM_MODE_CONNECTOR_DVID: u32 = 3;
pub const DRM_MODE_CONNECTOR_DVIA: u32 = 4;
pub const DRM_MODE_CONNECTOR_Composite: u32 = 5;
pub const DRM_MODE_CONNECTOR_SVIDEO: u32 = 6;
pub const DRM_MODE_CONNECTOR_LVDS: u32 = 7;
pub const DRM_MODE_CONNECTOR_Component: u32 = 8;
pub const DRM_MODE_CONNECTOR_9PinDIN: u32 = 9;
pub const DRM_MODE_CONNECTOR_DisplayPort: u32 = 10;
pub const DRM_MODE_CONNECTOR_HDMIA: u32 = 11;
pub const DRM_MODE_CONNECTOR_HDMIB: u32 = 12;
pub const DRM_MODE_CONNECTOR_TV: u32 = 13;
pub const DRM_MODE_CONNECTOR_eDP: u32 = 14;
pub const DRM_MODE_CONNECTOR_VIRTUAL: u32 = 15;
pub const DRM_MODE_CONNECTOR_DSI: u32 = 16;
pub const DRM_MODE_CONNECTOR_DPI: u32 = 17;
pub const DRM_MODE_CONNECTOR_WRITEBACK: u32 = 18;
pub const DRM_MODE_CONNECTOR_SPI: u32 = 19;
pub const DRM_MODE_CONNECTOR_USB: u32 = 20;
pub const DRM_MODE_PROP_PENDING: u32 = 1;
pub const DRM_MODE_PROP_RANGE: u32 = 2;
pub const DRM_MODE_PROP_IMMUTABLE: u32 = 4;
pub const DRM_MODE_PROP_ENUM: u32 = 8;
pub const DRM_MODE_PROP_BLOB: u32 = 16;
pub const DRM_MODE_PROP_BITMASK: u32 = 32;
pub const DRM_MODE_PROP_LEGACY_TYPE: u32 = 58;
pub const DRM_MODE_PROP_EXTENDED_TYPE: u32 = 65472;
pub const DRM_MODE_PROP_ATOMIC: u32 = 2147483648;
pub const DRM_MODE_OBJECT_CRTC: u32 = 3435973836;
pub const DRM_MODE_OBJECT_CONNECTOR: u32 = 3233857728;
pub const DRM_MODE_OBJECT_ENCODER: u32 = 3772834016;
pub const DRM_MODE_OBJECT_MODE: u32 = 3739147998;
pub const DRM_MODE_OBJECT_PROPERTY: u32 = 2964369584;
pub const DRM_MODE_OBJECT_FB: u32 = 4227595259;
pub const DRM_MODE_OBJECT_BLOB: u32 = 3149642683;
pub const DRM_MODE_OBJECT_PLANE: u32 = 4008636142;
pub const DRM_MODE_OBJECT_ANY: u32 = 0;
pub const DRM_MODE_FB_INTERLACED: u32 = 1;
pub const DRM_MODE_FB_MODIFIERS: u32 = 2;
pub const DRM_MODE_FB_DIRTY_ANNOTATE_COPY: u32 = 1;
pub const DRM_MODE_FB_DIRTY_ANNOTATE_FILL: u32 = 2;
pub const DRM_MODE_FB_DIRTY_FLAGS: u32 = 3;
pub const DRM_MODE_FB_DIRTY_MAX_CLIPS: u32 = 256;
pub const DRM_MODE_CURSOR_BO: u32 = 1;
pub const DRM_MODE_CURSOR_MOVE: u32 = 2;
pub const DRM_MODE_CURSOR_FLAGS: u32 = 3;
pub const DRM_MODE_PAGE_FLIP_EVENT: u32 = 1;
pub const DRM_MODE_PAGE_FLIP_ASYNC: u32 = 2;
pub const DRM_MODE_PAGE_FLIP_TARGET_ABSOLUTE: u32 = 4;
pub const DRM_MODE_PAGE_FLIP_TARGET_RELATIVE: u32 = 8;
pub const DRM_MODE_PAGE_FLIP_TARGET: u32 = 12;
pub const DRM_MODE_PAGE_FLIP_FLAGS: u32 = 15;
pub const DRM_MODE_ATOMIC_TEST_ONLY: u32 = 256;
pub const DRM_MODE_ATOMIC_NONBLOCK: u32 = 512;
pub const DRM_MODE_ATOMIC_ALLOW_MODESET: u32 = 1024;
pub const DRM_MODE_ATOMIC_FLAGS: u32 = 1795;
pub const FORMAT_BLOB_CURRENT: u32 = 1;
pub const DRM_IOCTL_BASE: u8 = 100u8;
pub const DRM_COMMAND_BASE: u32 = 64;
pub const DRM_COMMAND_END: u32 = 160;
pub const DRM_EVENT_VBLANK: u32 = 1;
pub const DRM_EVENT_FLIP_COMPLETE: u32 = 2;
pub const DRM_EVENT_CRTC_SEQUENCE: u32 = 3;
pub type __s8 = ::core::ffi::c_schar;
pub type __u8 = ::core::ffi::c_uchar;
pub type __s16 = ::core::ffi::c_short;
pub type __u16 = ::core::ffi::c_ushort;
pub type __s32 = ::core::ffi::c_int;
pub type __u32 = ::core::ffi::c_uint;
pub type __s64 = ::core::ffi::c_longlong;
pub type __u64 = ::core::ffi::c_ulonglong;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __kernel_fd_set {
pub fds_bits: [::core::ffi::c_ulong; 16usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of __kernel_fd_set"][::core::mem::size_of::<__kernel_fd_set>() - 128usize];
["Alignment of __kernel_fd_set"][::core::mem::align_of::<__kernel_fd_set>() - 8usize];
["Offset of field: __kernel_fd_set::fds_bits"]
[::core::mem::offset_of!(__kernel_fd_set, fds_bits) - 0usize];
};
pub type __kernel_sighandler_t =
::core::option::Option<unsafe extern "C" fn(arg1: ::core::ffi::c_int)>;
pub type __kernel_key_t = ::core::ffi::c_int;
pub type __kernel_mqd_t = ::core::ffi::c_int;
pub type __kernel_old_uid_t = ::core::ffi::c_ushort;
pub type __kernel_old_gid_t = ::core::ffi::c_ushort;
pub type __kernel_old_dev_t = ::core::ffi::c_ulong;
pub type __kernel_long_t = ::core::ffi::c_long;
pub type __kernel_ulong_t = ::core::ffi::c_ulong;
pub type __kernel_ino_t = __kernel_ulong_t;
pub type __kernel_mode_t = ::core::ffi::c_uint;
pub type __kernel_pid_t = ::core::ffi::c_int;
pub type __kernel_ipc_pid_t = ::core::ffi::c_int;
pub type __kernel_uid_t = ::core::ffi::c_uint;
pub type __kernel_gid_t = ::core::ffi::c_uint;
pub type __kernel_suseconds_t = __kernel_long_t;
pub type __kernel_daddr_t = ::core::ffi::c_int;
pub type __kernel_uid32_t = ::core::ffi::c_uint;
pub type __kernel_gid32_t = ::core::ffi::c_uint;
pub type __kernel_size_t = __kernel_ulong_t;
pub type __kernel_ssize_t = __kernel_long_t;
pub type __kernel_ptrdiff_t = __kernel_long_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __kernel_fsid_t {
pub val: [::core::ffi::c_int; 2usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of __kernel_fsid_t"][::core::mem::size_of::<__kernel_fsid_t>() - 8usize];
["Alignment of __kernel_fsid_t"][::core::mem::align_of::<__kernel_fsid_t>() - 4usize];
["Offset of field: __kernel_fsid_t::val"]
[::core::mem::offset_of!(__kernel_fsid_t, val) - 0usize];
};
pub type __kernel_off_t = __kernel_long_t;
pub type __kernel_loff_t = ::core::ffi::c_longlong;
pub type __kernel_old_time_t = __kernel_long_t;
pub type __kernel_time_t = __kernel_long_t;
pub type __kernel_time64_t = ::core::ffi::c_longlong;
pub type __kernel_clock_t = __kernel_long_t;
pub type __kernel_timer_t = ::core::ffi::c_int;
pub type __kernel_clockid_t = ::core::ffi::c_int;
pub type __kernel_caddr_t = *mut ::core::ffi::c_char;
pub type __kernel_uid16_t = ::core::ffi::c_ushort;
pub type __kernel_gid16_t = ::core::ffi::c_ushort;
pub type __s128 = i128;
pub type __u128 = u128;
pub type __le16 = __u16;
pub type __be16 = __u16;
pub type __le32 = __u32;
pub type __be32 = __u32;
pub type __le64 = __u64;
pub type __be64 = __u64;
pub type __sum16 = __u16;
pub type __wsum = __u32;
pub type __poll_t = ::core::ffi::c_uint;
pub type drm_handle_t = ::core::ffi::c_uint;
pub type drm_context_t = ::core::ffi::c_uint;
pub type drm_drawable_t = ::core::ffi::c_uint;
pub type drm_magic_t = ::core::ffi::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_clip_rect {
pub x1: ::core::ffi::c_ushort,
pub y1: ::core::ffi::c_ushort,
pub x2: ::core::ffi::c_ushort,
pub y2: ::core::ffi::c_ushort,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_clip_rect"][::core::mem::size_of::<drm_clip_rect>() - 8usize];
["Alignment of drm_clip_rect"][::core::mem::align_of::<drm_clip_rect>() - 2usize];
["Offset of field: drm_clip_rect::x1"][::core::mem::offset_of!(drm_clip_rect, x1) - 0usize];
["Offset of field: drm_clip_rect::y1"][::core::mem::offset_of!(drm_clip_rect, y1) - 2usize];
["Offset of field: drm_clip_rect::x2"][::core::mem::offset_of!(drm_clip_rect, x2) - 4usize];
["Offset of field: drm_clip_rect::y2"][::core::mem::offset_of!(drm_clip_rect, y2) - 6usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_drawable_info {
pub num_rects: ::core::ffi::c_uint,
pub rects: *mut drm_clip_rect,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_drawable_info"][::core::mem::size_of::<drm_drawable_info>() - 16usize];
["Alignment of drm_drawable_info"][::core::mem::align_of::<drm_drawable_info>() - 8usize];
["Offset of field: drm_drawable_info::num_rects"]
[::core::mem::offset_of!(drm_drawable_info, num_rects) - 0usize];
["Offset of field: drm_drawable_info::rects"]
[::core::mem::offset_of!(drm_drawable_info, rects) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_tex_region {
pub next: ::core::ffi::c_uchar,
pub prev: ::core::ffi::c_uchar,
pub in_use: ::core::ffi::c_uchar,
pub padding: ::core::ffi::c_uchar,
pub age: ::core::ffi::c_uint,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_tex_region"][::core::mem::size_of::<drm_tex_region>() - 8usize];
["Alignment of drm_tex_region"][::core::mem::align_of::<drm_tex_region>() - 4usize];
["Offset of field: drm_tex_region::next"]
[::core::mem::offset_of!(drm_tex_region, next) - 0usize];
["Offset of field: drm_tex_region::prev"]
[::core::mem::offset_of!(drm_tex_region, prev) - 1usize];
["Offset of field: drm_tex_region::in_use"]
[::core::mem::offset_of!(drm_tex_region, in_use) - 2usize];
["Offset of field: drm_tex_region::padding"]
[::core::mem::offset_of!(drm_tex_region, padding) - 3usize];
["Offset of field: drm_tex_region::age"][::core::mem::offset_of!(drm_tex_region, age) - 4usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_hw_lock {
#[doc = "< lock variable"]
pub lock: ::core::ffi::c_uint,
#[doc = "< Pad to cache line"]
pub padding: [::core::ffi::c_char; 60usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_hw_lock"][::core::mem::size_of::<drm_hw_lock>() - 64usize];
["Alignment of drm_hw_lock"][::core::mem::align_of::<drm_hw_lock>() - 4usize];
["Offset of field: drm_hw_lock::lock"][::core::mem::offset_of!(drm_hw_lock, lock) - 0usize];
["Offset of field: drm_hw_lock::padding"]
[::core::mem::offset_of!(drm_hw_lock, padding) - 4usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_version {
#[doc = "< Major version"]
pub version_major: ::core::ffi::c_int,
#[doc = "< Minor version"]
pub version_minor: ::core::ffi::c_int,
#[doc = "< Patch level"]
pub version_patchlevel: ::core::ffi::c_int,
#[doc = "< Length of name buffer"]
pub name_len: __kernel_size_t,
#[doc = "< Name of driver"]
pub name: *mut ::core::ffi::c_char,
#[doc = "< Length of date buffer"]
pub date_len: __kernel_size_t,
#[doc = "< User-space buffer to hold date"]
pub date: *mut ::core::ffi::c_char,
#[doc = "< Length of desc buffer"]
pub desc_len: __kernel_size_t,
#[doc = "< User-space buffer to hold desc"]
pub desc: *mut ::core::ffi::c_char,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_version"][::core::mem::size_of::<drm_version>() - 64usize];
["Alignment of drm_version"][::core::mem::align_of::<drm_version>() - 8usize];
["Offset of field: drm_version::version_major"]
[::core::mem::offset_of!(drm_version, version_major) - 0usize];
["Offset of field: drm_version::version_minor"]
[::core::mem::offset_of!(drm_version, version_minor) - 4usize];
["Offset of field: drm_version::version_patchlevel"]
[::core::mem::offset_of!(drm_version, version_patchlevel) - 8usize];
["Offset of field: drm_version::name_len"]
[::core::mem::offset_of!(drm_version, name_len) - 16usize];
["Offset of field: drm_version::name"][::core::mem::offset_of!(drm_version, name) - 24usize];
["Offset of field: drm_version::date_len"]
[::core::mem::offset_of!(drm_version, date_len) - 32usize];
["Offset of field: drm_version::date"][::core::mem::offset_of!(drm_version, date) - 40usize];
["Offset of field: drm_version::desc_len"]
[::core::mem::offset_of!(drm_version, desc_len) - 48usize];
["Offset of field: drm_version::desc"][::core::mem::offset_of!(drm_version, desc) - 56usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_unique {
#[doc = "< Length of unique"]
pub unique_len: __kernel_size_t,
#[doc = "< Unique name for driver instantiation"]
pub unique: *mut ::core::ffi::c_char,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_unique"][::core::mem::size_of::<drm_unique>() - 16usize];
["Alignment of drm_unique"][::core::mem::align_of::<drm_unique>() - 8usize];
["Offset of field: drm_unique::unique_len"]
[::core::mem::offset_of!(drm_unique, unique_len) - 0usize];
["Offset of field: drm_unique::unique"][::core::mem::offset_of!(drm_unique, unique) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_list {
#[doc = "< Length of user-space structures"]
pub count: ::core::ffi::c_int,
pub version: *mut drm_version,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_list"][::core::mem::size_of::<drm_list>() - 16usize];
["Alignment of drm_list"][::core::mem::align_of::<drm_list>() - 8usize];
["Offset of field: drm_list::count"][::core::mem::offset_of!(drm_list, count) - 0usize];
["Offset of field: drm_list::version"][::core::mem::offset_of!(drm_list, version) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_block {
pub unused: ::core::ffi::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_block"][::core::mem::size_of::<drm_block>() - 4usize];
["Alignment of drm_block"][::core::mem::align_of::<drm_block>() - 4usize];
["Offset of field: drm_block::unused"][::core::mem::offset_of!(drm_block, unused) - 0usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_control {
pub func: drm_control__bindgen_ty_1,
pub irq: ::core::ffi::c_int,
}
pub const drm_control_DRM_ADD_COMMAND: drm_control__bindgen_ty_1 = 0;
pub const drm_control_DRM_RM_COMMAND: drm_control__bindgen_ty_1 = 1;
pub const drm_control_DRM_INST_HANDLER: drm_control__bindgen_ty_1 = 2;
pub const drm_control_DRM_UNINST_HANDLER: drm_control__bindgen_ty_1 = 3;
pub type drm_control__bindgen_ty_1 = ::core::ffi::c_uint;
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_control"][::core::mem::size_of::<drm_control>() - 8usize];
["Alignment of drm_control"][::core::mem::align_of::<drm_control>() - 4usize];
["Offset of field: drm_control::func"][::core::mem::offset_of!(drm_control, func) - 0usize];
["Offset of field: drm_control::irq"][::core::mem::offset_of!(drm_control, irq) - 4usize];
};
#[doc = "< WC (no caching), no core dump"]
pub const drm_map_type__DRM_FRAME_BUFFER: drm_map_type = 0;
#[doc = "< no caching, no core dump"]
pub const drm_map_type__DRM_REGISTERS: drm_map_type = 1;
#[doc = "< shared, cached"]
pub const drm_map_type__DRM_SHM: drm_map_type = 2;
#[doc = "< AGP/GART"]
pub const drm_map_type__DRM_AGP: drm_map_type = 3;
#[doc = "< Scatter/gather memory for PCI DMA"]
pub const drm_map_type__DRM_SCATTER_GATHER: drm_map_type = 4;
#[doc = "< Consistent memory for PCI DMA"]
pub const drm_map_type__DRM_CONSISTENT: drm_map_type = 5;
pub type drm_map_type = ::core::ffi::c_uint;
#[doc = "< Cannot be mapped to user-virtual"]
pub const drm_map_flags__DRM_RESTRICTED: drm_map_flags = 1;
pub const drm_map_flags__DRM_READ_ONLY: drm_map_flags = 2;
#[doc = "< shared, cached, locked"]
pub const drm_map_flags__DRM_LOCKED: drm_map_flags = 4;
#[doc = "< kernel requires access"]
pub const drm_map_flags__DRM_KERNEL: drm_map_flags = 8;
#[doc = "< use write-combining if available"]
pub const drm_map_flags__DRM_WRITE_COMBINING: drm_map_flags = 16;
#[doc = "< SHM page that contains lock"]
pub const drm_map_flags__DRM_CONTAINS_LOCK: drm_map_flags = 32;
#[doc = "< Removable mapping"]
pub const drm_map_flags__DRM_REMOVABLE: drm_map_flags = 64;
#[doc = "< Managed by driver"]
pub const drm_map_flags__DRM_DRIVER: drm_map_flags = 128;
pub type drm_map_flags = ::core::ffi::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_ctx_priv_map {
#[doc = "< Context requesting private mapping"]
pub ctx_id: ::core::ffi::c_uint,
#[doc = "< Handle of map"]
pub handle: *mut ::core::ffi::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_ctx_priv_map"][::core::mem::size_of::<drm_ctx_priv_map>() - 16usize];
["Alignment of drm_ctx_priv_map"][::core::mem::align_of::<drm_ctx_priv_map>() - 8usize];
["Offset of field: drm_ctx_priv_map::ctx_id"]
[::core::mem::offset_of!(drm_ctx_priv_map, ctx_id) - 0usize];
["Offset of field: drm_ctx_priv_map::handle"]
[::core::mem::offset_of!(drm_ctx_priv_map, handle) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_map {
#[doc = "< Requested physical address (0 for SAREA)"]
pub offset: ::core::ffi::c_ulong,
#[doc = "< Requested physical size (bytes)"]
pub size: ::core::ffi::c_ulong,
#[doc = "< Type of memory to map"]
pub type_: drm_map_type,
#[doc = "< Flags"]
pub flags: drm_map_flags,
#[doc = "< User-space: \"Handle\" to pass to mmap() */\n/**< Kernel-space: kernel-virtual address"]
pub handle: *mut ::core::ffi::c_void,
#[doc = "< MTRR slot used"]
pub mtrr: ::core::ffi::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_map"][::core::mem::size_of::<drm_map>() - 40usize];
["Alignment of drm_map"][::core::mem::align_of::<drm_map>() - 8usize];
["Offset of field: drm_map::offset"][::core::mem::offset_of!(drm_map, offset) - 0usize];
["Offset of field: drm_map::size"][::core::mem::offset_of!(drm_map, size) - 8usize];
["Offset of field: drm_map::type_"][::core::mem::offset_of!(drm_map, type_) - 16usize];
["Offset of field: drm_map::flags"][::core::mem::offset_of!(drm_map, flags) - 20usize];
["Offset of field: drm_map::handle"][::core::mem::offset_of!(drm_map, handle) - 24usize];
["Offset of field: drm_map::mtrr"][::core::mem::offset_of!(drm_map, mtrr) - 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_client {
#[doc = "< Which client desired?"]
pub idx: ::core::ffi::c_int,
#[doc = "< Is client authenticated?"]
pub auth: ::core::ffi::c_int,
#[doc = "< Process ID"]
pub pid: ::core::ffi::c_ulong,
#[doc = "< User ID"]
pub uid: ::core::ffi::c_ulong,
#[doc = "< Magic"]
pub magic: ::core::ffi::c_ulong,
#[doc = "< Ioctl count"]
pub iocs: ::core::ffi::c_ulong,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_client"][::core::mem::size_of::<drm_client>() - 40usize];
["Alignment of drm_client"][::core::mem::align_of::<drm_client>() - 8usize];
["Offset of field: drm_client::idx"][::core::mem::offset_of!(drm_client, idx) - 0usize];
["Offset of field: drm_client::auth"][::core::mem::offset_of!(drm_client, auth) - 4usize];
["Offset of field: drm_client::pid"][::core::mem::offset_of!(drm_client, pid) - 8usize];
["Offset of field: drm_client::uid"][::core::mem::offset_of!(drm_client, uid) - 16usize];
["Offset of field: drm_client::magic"][::core::mem::offset_of!(drm_client, magic) - 24usize];
["Offset of field: drm_client::iocs"][::core::mem::offset_of!(drm_client, iocs) - 32usize];
};
pub const drm_stat_type__DRM_STAT_LOCK: drm_stat_type = 0;
pub const drm_stat_type__DRM_STAT_OPENS: drm_stat_type = 1;
pub const drm_stat_type__DRM_STAT_CLOSES: drm_stat_type = 2;
pub const drm_stat_type__DRM_STAT_IOCTLS: drm_stat_type = 3;
pub const drm_stat_type__DRM_STAT_LOCKS: drm_stat_type = 4;
pub const drm_stat_type__DRM_STAT_UNLOCKS: drm_stat_type = 5;
#[doc = "< Generic value"]
pub const drm_stat_type__DRM_STAT_VALUE: drm_stat_type = 6;
#[doc = "< Generic byte counter (1024bytes/K)"]
pub const drm_stat_type__DRM_STAT_BYTE: drm_stat_type = 7;
#[doc = "< Generic non-byte counter (1000/k)"]
pub const drm_stat_type__DRM_STAT_COUNT: drm_stat_type = 8;
#[doc = "< IRQ"]
pub const drm_stat_type__DRM_STAT_IRQ: drm_stat_type = 9;
#[doc = "< Primary DMA bytes"]
pub const drm_stat_type__DRM_STAT_PRIMARY: drm_stat_type = 10;
#[doc = "< Secondary DMA bytes"]
pub const drm_stat_type__DRM_STAT_SECONDARY: drm_stat_type = 11;
#[doc = "< DMA"]
pub const drm_stat_type__DRM_STAT_DMA: drm_stat_type = 12;
#[doc = "< Special DMA (e.g., priority or polled)"]
pub const drm_stat_type__DRM_STAT_SPECIAL: drm_stat_type = 13;
#[doc = "< Missed DMA opportunity"]
pub const drm_stat_type__DRM_STAT_MISSED: drm_stat_type = 14;
pub type drm_stat_type = ::core::ffi::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_stats {
pub count: ::core::ffi::c_ulong,
pub data: [drm_stats__bindgen_ty_1; 15usize],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_stats__bindgen_ty_1 {
pub value: ::core::ffi::c_ulong,
pub type_: drm_stat_type,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_stats__bindgen_ty_1"]
[::core::mem::size_of::<drm_stats__bindgen_ty_1>() - 16usize];
["Alignment of drm_stats__bindgen_ty_1"]
[::core::mem::align_of::<drm_stats__bindgen_ty_1>() - 8usize];
["Offset of field: drm_stats__bindgen_ty_1::value"]
[::core::mem::offset_of!(drm_stats__bindgen_ty_1, value) - 0usize];
["Offset of field: drm_stats__bindgen_ty_1::type_"]
[::core::mem::offset_of!(drm_stats__bindgen_ty_1, type_) - 8usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_stats"][::core::mem::size_of::<drm_stats>() - 248usize];
["Alignment of drm_stats"][::core::mem::align_of::<drm_stats>() - 8usize];
["Offset of field: drm_stats::count"][::core::mem::offset_of!(drm_stats, count) - 0usize];
["Offset of field: drm_stats::data"][::core::mem::offset_of!(drm_stats, data) - 8usize];
};
#[doc = "< Wait until hardware is ready for DMA"]
pub const drm_lock_flags__DRM_LOCK_READY: drm_lock_flags = 1;
#[doc = "< Wait until hardware quiescent"]
pub const drm_lock_flags__DRM_LOCK_QUIESCENT: drm_lock_flags = 2;
#[doc = "< Flush this context's DMA queue first"]
pub const drm_lock_flags__DRM_LOCK_FLUSH: drm_lock_flags = 4;
#[doc = "< Flush all DMA queues first"]
pub const drm_lock_flags__DRM_LOCK_FLUSH_ALL: drm_lock_flags = 8;
#[doc = "< Halt all current and future queues"]
pub const drm_lock_flags__DRM_HALT_ALL_QUEUES: drm_lock_flags = 16;
#[doc = "< Halt all current queues"]
pub const drm_lock_flags__DRM_HALT_CUR_QUEUES: drm_lock_flags = 32;
pub type drm_lock_flags = ::core::ffi::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_lock {
pub context: ::core::ffi::c_int,
pub flags: drm_lock_flags,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_lock"][::core::mem::size_of::<drm_lock>() - 8usize];
["Alignment of drm_lock"][::core::mem::align_of::<drm_lock>() - 4usize];
["Offset of field: drm_lock::context"][::core::mem::offset_of!(drm_lock, context) - 0usize];
["Offset of field: drm_lock::flags"][::core::mem::offset_of!(drm_lock, flags) - 4usize];
};
#[doc = "<\n Block until buffer dispatched.\n\n \\note The buffer may not yet have\n been processed by the hardware --\n getting a hardware lock with the\n hardware quiescent will ensure\n that the buffer has been\n processed."]
pub const drm_dma_flags__DRM_DMA_BLOCK: drm_dma_flags = 1;
#[doc = "< Dispatch while lock held"]
pub const drm_dma_flags__DRM_DMA_WHILE_LOCKED: drm_dma_flags = 2;
#[doc = "< High priority dispatch"]
pub const drm_dma_flags__DRM_DMA_PRIORITY: drm_dma_flags = 4;
#[doc = "< Wait for free buffers"]
pub const drm_dma_flags__DRM_DMA_WAIT: drm_dma_flags = 16;
#[doc = "< Smaller-than-requested buffers OK"]
pub const drm_dma_flags__DRM_DMA_SMALLER_OK: drm_dma_flags = 32;
#[doc = "< Larger-than-requested buffers OK"]
pub const drm_dma_flags__DRM_DMA_LARGER_OK: drm_dma_flags = 64;
pub type drm_dma_flags = ::core::ffi::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_buf_desc {
#[doc = "< Number of buffers of this size"]
pub count: ::core::ffi::c_int,
#[doc = "< Size in bytes"]
pub size: ::core::ffi::c_int,
#[doc = "< Low water mark"]
pub low_mark: ::core::ffi::c_int,
#[doc = "< High water mark"]
pub high_mark: ::core::ffi::c_int,
pub flags: drm_buf_desc__bindgen_ty_1,
#[doc = "<\n Start address of where the AGP buffers are\n in the AGP aperture"]
pub agp_start: ::core::ffi::c_ulong,
}
#[doc = "< Align on page boundaries for DMA"]
pub const drm_buf_desc__DRM_PAGE_ALIGN: drm_buf_desc__bindgen_ty_1 = 1;
#[doc = "< Buffer is in AGP space"]
pub const drm_buf_desc__DRM_AGP_BUFFER: drm_buf_desc__bindgen_ty_1 = 2;
#[doc = "< Scatter/gather memory buffer"]
pub const drm_buf_desc__DRM_SG_BUFFER: drm_buf_desc__bindgen_ty_1 = 4;
#[doc = "< Buffer is in frame buffer"]
pub const drm_buf_desc__DRM_FB_BUFFER: drm_buf_desc__bindgen_ty_1 = 8;
#[doc = "< Map PCI DMA buffer read-only"]
pub const drm_buf_desc__DRM_PCI_BUFFER_RO: drm_buf_desc__bindgen_ty_1 = 16;
pub type drm_buf_desc__bindgen_ty_1 = ::core::ffi::c_uint;
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_buf_desc"][::core::mem::size_of::<drm_buf_desc>() - 32usize];
["Alignment of drm_buf_desc"][::core::mem::align_of::<drm_buf_desc>() - 8usize];
["Offset of field: drm_buf_desc::count"][::core::mem::offset_of!(drm_buf_desc, count) - 0usize];
["Offset of field: drm_buf_desc::size"][::core::mem::offset_of!(drm_buf_desc, size) - 4usize];
["Offset of field: drm_buf_desc::low_mark"]
[::core::mem::offset_of!(drm_buf_desc, low_mark) - 8usize];
["Offset of field: drm_buf_desc::high_mark"]
[::core::mem::offset_of!(drm_buf_desc, high_mark) - 12usize];
["Offset of field: drm_buf_desc::flags"]
[::core::mem::offset_of!(drm_buf_desc, flags) - 16usize];
["Offset of field: drm_buf_desc::agp_start"]
[::core::mem::offset_of!(drm_buf_desc, agp_start) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_buf_info {
#[doc = "< Entries in list"]
pub count: ::core::ffi::c_int,
pub list: *mut drm_buf_desc,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_buf_info"][::core::mem::size_of::<drm_buf_info>() - 16usize];
["Alignment of drm_buf_info"][::core::mem::align_of::<drm_buf_info>() - 8usize];
["Offset of field: drm_buf_info::count"][::core::mem::offset_of!(drm_buf_info, count) - 0usize];
["Offset of field: drm_buf_info::list"][::core::mem::offset_of!(drm_buf_info, list) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_buf_free {
pub count: ::core::ffi::c_int,
pub list: *mut ::core::ffi::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_buf_free"][::core::mem::size_of::<drm_buf_free>() - 16usize];
["Alignment of drm_buf_free"][::core::mem::align_of::<drm_buf_free>() - 8usize];
["Offset of field: drm_buf_free::count"][::core::mem::offset_of!(drm_buf_free, count) - 0usize];
["Offset of field: drm_buf_free::list"][::core::mem::offset_of!(drm_buf_free, list) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_buf_pub {
#[doc = "< Index into the master buffer list"]
pub idx: ::core::ffi::c_int,
#[doc = "< Buffer size"]
pub total: ::core::ffi::c_int,
#[doc = "< Amount of buffer in use (for DMA)"]
pub used: ::core::ffi::c_int,
#[doc = "< Address of buffer"]
pub address: *mut ::core::ffi::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_buf_pub"][::core::mem::size_of::<drm_buf_pub>() - 24usize];
["Alignment of drm_buf_pub"][::core::mem::align_of::<drm_buf_pub>() - 8usize];
["Offset of field: drm_buf_pub::idx"][::core::mem::offset_of!(drm_buf_pub, idx) - 0usize];
["Offset of field: drm_buf_pub::total"][::core::mem::offset_of!(drm_buf_pub, total) - 4usize];
["Offset of field: drm_buf_pub::used"][::core::mem::offset_of!(drm_buf_pub, used) - 8usize];
["Offset of field: drm_buf_pub::address"]
[::core::mem::offset_of!(drm_buf_pub, address) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_buf_map {
#[doc = "< Length of the buffer list"]
pub count: ::core::ffi::c_int,
#[doc = "< Mmap'd area in user-virtual"]
pub virtual_: *mut ::core::ffi::c_void,
#[doc = "< Buffer information"]
pub list: *mut drm_buf_pub,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_buf_map"][::core::mem::size_of::<drm_buf_map>() - 24usize];
["Alignment of drm_buf_map"][::core::mem::align_of::<drm_buf_map>() - 8usize];
["Offset of field: drm_buf_map::count"][::core::mem::offset_of!(drm_buf_map, count) - 0usize];
["Offset of field: drm_buf_map::virtual_"]
[::core::mem::offset_of!(drm_buf_map, virtual_) - 8usize];
["Offset of field: drm_buf_map::list"][::core::mem::offset_of!(drm_buf_map, list) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_dma {
#[doc = "< Context handle"]
pub context: ::core::ffi::c_int,
#[doc = "< Number of buffers to send"]
pub send_count: ::core::ffi::c_int,
#[doc = "< List of handles to buffers"]
pub send_indices: *mut ::core::ffi::c_int,
#[doc = "< Lengths of data to send"]
pub send_sizes: *mut ::core::ffi::c_int,
#[doc = "< Flags"]
pub flags: drm_dma_flags,
#[doc = "< Number of buffers requested"]
pub request_count: ::core::ffi::c_int,
#[doc = "< Desired size for buffers"]
pub request_size: ::core::ffi::c_int,
#[doc = "< Buffer information"]
pub request_indices: *mut ::core::ffi::c_int,
pub request_sizes: *mut ::core::ffi::c_int,
#[doc = "< Number of buffers granted"]
pub granted_count: ::core::ffi::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_dma"][::core::mem::size_of::<drm_dma>() - 64usize];
["Alignment of drm_dma"][::core::mem::align_of::<drm_dma>() - 8usize];
["Offset of field: drm_dma::context"][::core::mem::offset_of!(drm_dma, context) - 0usize];
["Offset of field: drm_dma::send_count"][::core::mem::offset_of!(drm_dma, send_count) - 4usize];
["Offset of field: drm_dma::send_indices"]
[::core::mem::offset_of!(drm_dma, send_indices) - 8usize];
["Offset of field: drm_dma::send_sizes"]
[::core::mem::offset_of!(drm_dma, send_sizes) - 16usize];
["Offset of field: drm_dma::flags"][::core::mem::offset_of!(drm_dma, flags) - 24usize];
["Offset of field: drm_dma::request_count"]
[::core::mem::offset_of!(drm_dma, request_count) - 28usize];
["Offset of field: drm_dma::request_size"]
[::core::mem::offset_of!(drm_dma, request_size) - 32usize];
["Offset of field: drm_dma::request_indices"]
[::core::mem::offset_of!(drm_dma, request_indices) - 40usize];
["Offset of field: drm_dma::request_sizes"]
[::core::mem::offset_of!(drm_dma, request_sizes) - 48usize];
["Offset of field: drm_dma::granted_count"]
[::core::mem::offset_of!(drm_dma, granted_count) - 56usize];
};
pub const drm_ctx_flags__DRM_CONTEXT_PRESERVED: drm_ctx_flags = 1;
pub const drm_ctx_flags__DRM_CONTEXT_2DONLY: drm_ctx_flags = 2;
pub type drm_ctx_flags = ::core::ffi::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_ctx {
pub handle: drm_context_t,
pub flags: drm_ctx_flags,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_ctx"][::core::mem::size_of::<drm_ctx>() - 8usize];
["Alignment of drm_ctx"][::core::mem::align_of::<drm_ctx>() - 4usize];
["Offset of field: drm_ctx::handle"][::core::mem::offset_of!(drm_ctx, handle) - 0usize];
["Offset of field: drm_ctx::flags"][::core::mem::offset_of!(drm_ctx, flags) - 4usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_ctx_res {
pub count: ::core::ffi::c_int,
pub contexts: *mut drm_ctx,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_ctx_res"][::core::mem::size_of::<drm_ctx_res>() - 16usize];
["Alignment of drm_ctx_res"][::core::mem::align_of::<drm_ctx_res>() - 8usize];
["Offset of field: drm_ctx_res::count"][::core::mem::offset_of!(drm_ctx_res, count) - 0usize];
["Offset of field: drm_ctx_res::contexts"]
[::core::mem::offset_of!(drm_ctx_res, contexts) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_draw {
pub handle: drm_drawable_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_draw"][::core::mem::size_of::<drm_draw>() - 4usize];
["Alignment of drm_draw"][::core::mem::align_of::<drm_draw>() - 4usize];
["Offset of field: drm_draw::handle"][::core::mem::offset_of!(drm_draw, handle) - 0usize];
};
pub const drm_drawable_info_type_t_DRM_DRAWABLE_CLIPRECTS: drm_drawable_info_type_t = 0;
pub type drm_drawable_info_type_t = ::core::ffi::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_update_draw {
pub handle: drm_drawable_t,
pub type_: ::core::ffi::c_uint,
pub num: ::core::ffi::c_uint,
pub data: ::core::ffi::c_ulonglong,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_update_draw"][::core::mem::size_of::<drm_update_draw>() - 24usize];
["Alignment of drm_update_draw"][::core::mem::align_of::<drm_update_draw>() - 8usize];
["Offset of field: drm_update_draw::handle"]
[::core::mem::offset_of!(drm_update_draw, handle) - 0usize];
["Offset of field: drm_update_draw::type_"]
[::core::mem::offset_of!(drm_update_draw, type_) - 4usize];
["Offset of field: drm_update_draw::num"]
[::core::mem::offset_of!(drm_update_draw, num) - 8usize];
["Offset of field: drm_update_draw::data"]
[::core::mem::offset_of!(drm_update_draw, data) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_auth {
pub magic: drm_magic_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_auth"][::core::mem::size_of::<drm_auth>() - 4usize];
["Alignment of drm_auth"][::core::mem::align_of::<drm_auth>() - 4usize];
["Offset of field: drm_auth::magic"][::core::mem::offset_of!(drm_auth, magic) - 0usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_irq_busid {
#[doc = "< IRQ number"]
pub irq: ::core::ffi::c_int,
#[doc = "< bus number"]
pub busnum: ::core::ffi::c_int,
#[doc = "< device number"]
pub devnum: ::core::ffi::c_int,
#[doc = "< function number"]
pub funcnum: ::core::ffi::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_irq_busid"][::core::mem::size_of::<drm_irq_busid>() - 16usize];
["Alignment of drm_irq_busid"][::core::mem::align_of::<drm_irq_busid>() - 4usize];
["Offset of field: drm_irq_busid::irq"][::core::mem::offset_of!(drm_irq_busid, irq) - 0usize];
["Offset of field: drm_irq_busid::busnum"]
[::core::mem::offset_of!(drm_irq_busid, busnum) - 4usize];
["Offset of field: drm_irq_busid::devnum"]
[::core::mem::offset_of!(drm_irq_busid, devnum) - 8usize];
["Offset of field: drm_irq_busid::funcnum"]
[::core::mem::offset_of!(drm_irq_busid, funcnum) - 12usize];
};
#[doc = "< Wait for specific vblank sequence number"]
pub const drm_vblank_seq_type__DRM_VBLANK_ABSOLUTE: drm_vblank_seq_type = 0;
#[doc = "< Wait for given number of vblanks"]
pub const drm_vblank_seq_type__DRM_VBLANK_RELATIVE: drm_vblank_seq_type = 1;
pub const drm_vblank_seq_type__DRM_VBLANK_HIGH_CRTC_MASK: drm_vblank_seq_type = 62;
#[doc = "< Send event instead of blocking"]
pub const drm_vblank_seq_type__DRM_VBLANK_EVENT: drm_vblank_seq_type = 67108864;
#[doc = "< Scheduled buffer swap should flip"]
pub const drm_vblank_seq_type__DRM_VBLANK_FLIP: drm_vblank_seq_type = 134217728;
#[doc = "< If missed, wait for next vblank"]
pub const drm_vblank_seq_type__DRM_VBLANK_NEXTONMISS: drm_vblank_seq_type = 268435456;
#[doc = "< Secondary display controller"]
pub const drm_vblank_seq_type__DRM_VBLANK_SECONDARY: drm_vblank_seq_type = 536870912;
#[doc = "< Send signal instead of blocking, unsupported"]
pub const drm_vblank_seq_type__DRM_VBLANK_SIGNAL: drm_vblank_seq_type = 1073741824;
pub type drm_vblank_seq_type = ::core::ffi::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_wait_vblank_request {
pub type_: drm_vblank_seq_type,
pub sequence: ::core::ffi::c_uint,
pub signal: ::core::ffi::c_ulong,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_wait_vblank_request"]
[::core::mem::size_of::<drm_wait_vblank_request>() - 16usize];
["Alignment of drm_wait_vblank_request"]
[::core::mem::align_of::<drm_wait_vblank_request>() - 8usize];
["Offset of field: drm_wait_vblank_request::type_"]
[::core::mem::offset_of!(drm_wait_vblank_request, type_) - 0usize];
["Offset of field: drm_wait_vblank_request::sequence"]
[::core::mem::offset_of!(drm_wait_vblank_request, sequence) - 4usize];
["Offset of field: drm_wait_vblank_request::signal"]
[::core::mem::offset_of!(drm_wait_vblank_request, signal) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_wait_vblank_reply {
pub type_: drm_vblank_seq_type,
pub sequence: ::core::ffi::c_uint,
pub tval_sec: ::core::ffi::c_long,
pub tval_usec: ::core::ffi::c_long,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_wait_vblank_reply"][::core::mem::size_of::<drm_wait_vblank_reply>() - 24usize];
["Alignment of drm_wait_vblank_reply"]
[::core::mem::align_of::<drm_wait_vblank_reply>() - 8usize];
["Offset of field: drm_wait_vblank_reply::type_"]
[::core::mem::offset_of!(drm_wait_vblank_reply, type_) - 0usize];
["Offset of field: drm_wait_vblank_reply::sequence"]
[::core::mem::offset_of!(drm_wait_vblank_reply, sequence) - 4usize];
["Offset of field: drm_wait_vblank_reply::tval_sec"]
[::core::mem::offset_of!(drm_wait_vblank_reply, tval_sec) - 8usize];
["Offset of field: drm_wait_vblank_reply::tval_usec"]
[::core::mem::offset_of!(drm_wait_vblank_reply, tval_usec) - 16usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub union drm_wait_vblank {
pub request: drm_wait_vblank_request,
pub reply: drm_wait_vblank_reply,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_wait_vblank"][::core::mem::size_of::<drm_wait_vblank>() - 24usize];
["Alignment of drm_wait_vblank"][::core::mem::align_of::<drm_wait_vblank>() - 8usize];
["Offset of field: drm_wait_vblank::request"]
[::core::mem::offset_of!(drm_wait_vblank, request) - 0usize];
["Offset of field: drm_wait_vblank::reply"]
[::core::mem::offset_of!(drm_wait_vblank, reply) - 0usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_modeset_ctl {
pub crtc: __u32,
pub cmd: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_modeset_ctl"][::core::mem::size_of::<drm_modeset_ctl>() - 8usize];
["Alignment of drm_modeset_ctl"][::core::mem::align_of::<drm_modeset_ctl>() - 4usize];
["Offset of field: drm_modeset_ctl::crtc"]
[::core::mem::offset_of!(drm_modeset_ctl, crtc) - 0usize];
["Offset of field: drm_modeset_ctl::cmd"]
[::core::mem::offset_of!(drm_modeset_ctl, cmd) - 4usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_agp_mode {
#[doc = "< AGP mode"]
pub mode: ::core::ffi::c_ulong,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_agp_mode"][::core::mem::size_of::<drm_agp_mode>() - 8usize];
["Alignment of drm_agp_mode"][::core::mem::align_of::<drm_agp_mode>() - 8usize];
["Offset of field: drm_agp_mode::mode"][::core::mem::offset_of!(drm_agp_mode, mode) - 0usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_agp_buffer {
#[doc = "< In bytes -- will round to page boundary"]
pub size: ::core::ffi::c_ulong,
#[doc = "< Used for binding / unbinding"]
pub handle: ::core::ffi::c_ulong,
#[doc = "< Type of memory to allocate"]
pub type_: ::core::ffi::c_ulong,
#[doc = "< Physical used by i810"]
pub physical: ::core::ffi::c_ulong,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_agp_buffer"][::core::mem::size_of::<drm_agp_buffer>() - 32usize];
["Alignment of drm_agp_buffer"][::core::mem::align_of::<drm_agp_buffer>() - 8usize];
["Offset of field: drm_agp_buffer::size"]
[::core::mem::offset_of!(drm_agp_buffer, size) - 0usize];
["Offset of field: drm_agp_buffer::handle"]
[::core::mem::offset_of!(drm_agp_buffer, handle) - 8usize];
["Offset of field: drm_agp_buffer::type_"]
[::core::mem::offset_of!(drm_agp_buffer, type_) - 16usize];
["Offset of field: drm_agp_buffer::physical"]
[::core::mem::offset_of!(drm_agp_buffer, physical) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_agp_binding {
#[doc = "< From drm_agp_buffer"]
pub handle: ::core::ffi::c_ulong,
#[doc = "< In bytes -- will round to page boundary"]
pub offset: ::core::ffi::c_ulong,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_agp_binding"][::core::mem::size_of::<drm_agp_binding>() - 16usize];
["Alignment of drm_agp_binding"][::core::mem::align_of::<drm_agp_binding>() - 8usize];
["Offset of field: drm_agp_binding::handle"]
[::core::mem::offset_of!(drm_agp_binding, handle) - 0usize];
["Offset of field: drm_agp_binding::offset"]
[::core::mem::offset_of!(drm_agp_binding, offset) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_agp_info {
pub agp_version_major: ::core::ffi::c_int,
pub agp_version_minor: ::core::ffi::c_int,
pub mode: ::core::ffi::c_ulong,
pub aperture_base: ::core::ffi::c_ulong,
pub aperture_size: ::core::ffi::c_ulong,
pub memory_allowed: ::core::ffi::c_ulong,
pub memory_used: ::core::ffi::c_ulong,
pub id_vendor: ::core::ffi::c_ushort,
pub id_device: ::core::ffi::c_ushort,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_agp_info"][::core::mem::size_of::<drm_agp_info>() - 56usize];
["Alignment of drm_agp_info"][::core::mem::align_of::<drm_agp_info>() - 8usize];
["Offset of field: drm_agp_info::agp_version_major"]
[::core::mem::offset_of!(drm_agp_info, agp_version_major) - 0usize];
["Offset of field: drm_agp_info::agp_version_minor"]
[::core::mem::offset_of!(drm_agp_info, agp_version_minor) - 4usize];
["Offset of field: drm_agp_info::mode"][::core::mem::offset_of!(drm_agp_info, mode) - 8usize];
["Offset of field: drm_agp_info::aperture_base"]
[::core::mem::offset_of!(drm_agp_info, aperture_base) - 16usize];
["Offset of field: drm_agp_info::aperture_size"]
[::core::mem::offset_of!(drm_agp_info, aperture_size) - 24usize];
["Offset of field: drm_agp_info::memory_allowed"]
[::core::mem::offset_of!(drm_agp_info, memory_allowed) - 32usize];
["Offset of field: drm_agp_info::memory_used"]
[::core::mem::offset_of!(drm_agp_info, memory_used) - 40usize];
["Offset of field: drm_agp_info::id_vendor"]
[::core::mem::offset_of!(drm_agp_info, id_vendor) - 48usize];
["Offset of field: drm_agp_info::id_device"]
[::core::mem::offset_of!(drm_agp_info, id_device) - 50usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_scatter_gather {
#[doc = "< In bytes -- will round to page boundary"]
pub size: ::core::ffi::c_ulong,
#[doc = "< Used for mapping / unmapping"]
pub handle: ::core::ffi::c_ulong,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_scatter_gather"][::core::mem::size_of::<drm_scatter_gather>() - 16usize];
["Alignment of drm_scatter_gather"][::core::mem::align_of::<drm_scatter_gather>() - 8usize];
["Offset of field: drm_scatter_gather::size"]
[::core::mem::offset_of!(drm_scatter_gather, size) - 0usize];
["Offset of field: drm_scatter_gather::handle"]
[::core::mem::offset_of!(drm_scatter_gather, handle) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_set_version {
pub drm_di_major: ::core::ffi::c_int,
pub drm_di_minor: ::core::ffi::c_int,
pub drm_dd_major: ::core::ffi::c_int,
pub drm_dd_minor: ::core::ffi::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_set_version"][::core::mem::size_of::<drm_set_version>() - 16usize];
["Alignment of drm_set_version"][::core::mem::align_of::<drm_set_version>() - 4usize];
["Offset of field: drm_set_version::drm_di_major"]
[::core::mem::offset_of!(drm_set_version, drm_di_major) - 0usize];
["Offset of field: drm_set_version::drm_di_minor"]
[::core::mem::offset_of!(drm_set_version, drm_di_minor) - 4usize];
["Offset of field: drm_set_version::drm_dd_major"]
[::core::mem::offset_of!(drm_set_version, drm_dd_major) - 8usize];
["Offset of field: drm_set_version::drm_dd_minor"]
[::core::mem::offset_of!(drm_set_version, drm_dd_minor) - 12usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_gem_close {
#[doc = " Handle of the object to be closed."]
pub handle: __u32,
pub pad: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_gem_close"][::core::mem::size_of::<drm_gem_close>() - 8usize];
["Alignment of drm_gem_close"][::core::mem::align_of::<drm_gem_close>() - 4usize];
["Offset of field: drm_gem_close::handle"]
[::core::mem::offset_of!(drm_gem_close, handle) - 0usize];
["Offset of field: drm_gem_close::pad"][::core::mem::offset_of!(drm_gem_close, pad) - 4usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_gem_flink {
#[doc = " Handle for the object being named"]
pub handle: __u32,
#[doc = " Returned global name"]
pub name: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_gem_flink"][::core::mem::size_of::<drm_gem_flink>() - 8usize];
["Alignment of drm_gem_flink"][::core::mem::align_of::<drm_gem_flink>() - 4usize];
["Offset of field: drm_gem_flink::handle"]
[::core::mem::offset_of!(drm_gem_flink, handle) - 0usize];
["Offset of field: drm_gem_flink::name"][::core::mem::offset_of!(drm_gem_flink, name) - 4usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_gem_open {
#[doc = " Name of object being opened"]
pub name: __u32,
#[doc = " Returned handle for the object"]
pub handle: __u32,
#[doc = " Returned size of the object"]
pub size: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_gem_open"][::core::mem::size_of::<drm_gem_open>() - 16usize];
["Alignment of drm_gem_open"][::core::mem::align_of::<drm_gem_open>() - 8usize];
["Offset of field: drm_gem_open::name"][::core::mem::offset_of!(drm_gem_open, name) - 0usize];
["Offset of field: drm_gem_open::handle"]
[::core::mem::offset_of!(drm_gem_open, handle) - 4usize];
["Offset of field: drm_gem_open::size"][::core::mem::offset_of!(drm_gem_open, size) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_get_cap {
pub capability: __u64,
pub value: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_get_cap"][::core::mem::size_of::<drm_get_cap>() - 16usize];
["Alignment of drm_get_cap"][::core::mem::align_of::<drm_get_cap>() - 8usize];
["Offset of field: drm_get_cap::capability"]
[::core::mem::offset_of!(drm_get_cap, capability) - 0usize];
["Offset of field: drm_get_cap::value"][::core::mem::offset_of!(drm_get_cap, value) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_set_client_cap {
pub capability: __u64,
pub value: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_set_client_cap"][::core::mem::size_of::<drm_set_client_cap>() - 16usize];
["Alignment of drm_set_client_cap"][::core::mem::align_of::<drm_set_client_cap>() - 8usize];
["Offset of field: drm_set_client_cap::capability"]
[::core::mem::offset_of!(drm_set_client_cap, capability) - 0usize];
["Offset of field: drm_set_client_cap::value"]
[::core::mem::offset_of!(drm_set_client_cap, value) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_prime_handle {
pub handle: __u32,
#[doc = " Flags.. only applicable for handle->fd"]
pub flags: __u32,
#[doc = " Returned dmabuf file descriptor"]
pub fd: __s32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_prime_handle"][::core::mem::size_of::<drm_prime_handle>() - 12usize];
["Alignment of drm_prime_handle"][::core::mem::align_of::<drm_prime_handle>() - 4usize];
["Offset of field: drm_prime_handle::handle"]
[::core::mem::offset_of!(drm_prime_handle, handle) - 0usize];
["Offset of field: drm_prime_handle::flags"]
[::core::mem::offset_of!(drm_prime_handle, flags) - 4usize];
["Offset of field: drm_prime_handle::fd"]
[::core::mem::offset_of!(drm_prime_handle, fd) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_syncobj_create {
pub handle: __u32,
pub flags: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_syncobj_create"][::core::mem::size_of::<drm_syncobj_create>() - 8usize];
["Alignment of drm_syncobj_create"][::core::mem::align_of::<drm_syncobj_create>() - 4usize];
["Offset of field: drm_syncobj_create::handle"]
[::core::mem::offset_of!(drm_syncobj_create, handle) - 0usize];
["Offset of field: drm_syncobj_create::flags"]
[::core::mem::offset_of!(drm_syncobj_create, flags) - 4usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_syncobj_destroy {
pub handle: __u32,
pub pad: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_syncobj_destroy"][::core::mem::size_of::<drm_syncobj_destroy>() - 8usize];
["Alignment of drm_syncobj_destroy"][::core::mem::align_of::<drm_syncobj_destroy>() - 4usize];
["Offset of field: drm_syncobj_destroy::handle"]
[::core::mem::offset_of!(drm_syncobj_destroy, handle) - 0usize];
["Offset of field: drm_syncobj_destroy::pad"]
[::core::mem::offset_of!(drm_syncobj_destroy, pad) - 4usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_syncobj_handle {
pub handle: __u32,
pub flags: __u32,
pub fd: __s32,
pub pad: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_syncobj_handle"][::core::mem::size_of::<drm_syncobj_handle>() - 16usize];
["Alignment of drm_syncobj_handle"][::core::mem::align_of::<drm_syncobj_handle>() - 4usize];
["Offset of field: drm_syncobj_handle::handle"]
[::core::mem::offset_of!(drm_syncobj_handle, handle) - 0usize];
["Offset of field: drm_syncobj_handle::flags"]
[::core::mem::offset_of!(drm_syncobj_handle, flags) - 4usize];
["Offset of field: drm_syncobj_handle::fd"]
[::core::mem::offset_of!(drm_syncobj_handle, fd) - 8usize];
["Offset of field: drm_syncobj_handle::pad"]
[::core::mem::offset_of!(drm_syncobj_handle, pad) - 12usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_syncobj_transfer {
pub src_handle: __u32,
pub dst_handle: __u32,
pub src_point: __u64,
pub dst_point: __u64,
pub flags: __u32,
pub pad: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_syncobj_transfer"][::core::mem::size_of::<drm_syncobj_transfer>() - 32usize];
["Alignment of drm_syncobj_transfer"][::core::mem::align_of::<drm_syncobj_transfer>() - 8usize];
["Offset of field: drm_syncobj_transfer::src_handle"]
[::core::mem::offset_of!(drm_syncobj_transfer, src_handle) - 0usize];
["Offset of field: drm_syncobj_transfer::dst_handle"]
[::core::mem::offset_of!(drm_syncobj_transfer, dst_handle) - 4usize];
["Offset of field: drm_syncobj_transfer::src_point"]
[::core::mem::offset_of!(drm_syncobj_transfer, src_point) - 8usize];
["Offset of field: drm_syncobj_transfer::dst_point"]
[::core::mem::offset_of!(drm_syncobj_transfer, dst_point) - 16usize];
["Offset of field: drm_syncobj_transfer::flags"]
[::core::mem::offset_of!(drm_syncobj_transfer, flags) - 24usize];
["Offset of field: drm_syncobj_transfer::pad"]
[::core::mem::offset_of!(drm_syncobj_transfer, pad) - 28usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_syncobj_wait {
pub handles: __u64,
pub timeout_nsec: __s64,
pub count_handles: __u32,
pub flags: __u32,
pub first_signaled: __u32,
pub pad: __u32,
#[doc = " @deadline_nsec - fence deadline hint\n\n Deadline hint, in absolute CLOCK_MONOTONIC, to set on backing\n fence(s) if the DRM_SYNCOBJ_WAIT_FLAGS_WAIT_DEADLINE flag is\n set."]
pub deadline_nsec: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_syncobj_wait"][::core::mem::size_of::<drm_syncobj_wait>() - 40usize];
["Alignment of drm_syncobj_wait"][::core::mem::align_of::<drm_syncobj_wait>() - 8usize];
["Offset of field: drm_syncobj_wait::handles"]
[::core::mem::offset_of!(drm_syncobj_wait, handles) - 0usize];
["Offset of field: drm_syncobj_wait::timeout_nsec"]
[::core::mem::offset_of!(drm_syncobj_wait, timeout_nsec) - 8usize];
["Offset of field: drm_syncobj_wait::count_handles"]
[::core::mem::offset_of!(drm_syncobj_wait, count_handles) - 16usize];
["Offset of field: drm_syncobj_wait::flags"]
[::core::mem::offset_of!(drm_syncobj_wait, flags) - 20usize];
["Offset of field: drm_syncobj_wait::first_signaled"]
[::core::mem::offset_of!(drm_syncobj_wait, first_signaled) - 24usize];
["Offset of field: drm_syncobj_wait::pad"]
[::core::mem::offset_of!(drm_syncobj_wait, pad) - 28usize];
["Offset of field: drm_syncobj_wait::deadline_nsec"]
[::core::mem::offset_of!(drm_syncobj_wait, deadline_nsec) - 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_syncobj_timeline_wait {
pub handles: __u64,
pub points: __u64,
pub timeout_nsec: __s64,
pub count_handles: __u32,
pub flags: __u32,
pub first_signaled: __u32,
pub pad: __u32,
#[doc = " @deadline_nsec - fence deadline hint\n\n Deadline hint, in absolute CLOCK_MONOTONIC, to set on backing\n fence(s) if the DRM_SYNCOBJ_WAIT_FLAGS_WAIT_DEADLINE flag is\n set."]
pub deadline_nsec: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_syncobj_timeline_wait"]
[::core::mem::size_of::<drm_syncobj_timeline_wait>() - 48usize];
["Alignment of drm_syncobj_timeline_wait"]
[::core::mem::align_of::<drm_syncobj_timeline_wait>() - 8usize];
["Offset of field: drm_syncobj_timeline_wait::handles"]
[::core::mem::offset_of!(drm_syncobj_timeline_wait, handles) - 0usize];
["Offset of field: drm_syncobj_timeline_wait::points"]
[::core::mem::offset_of!(drm_syncobj_timeline_wait, points) - 8usize];
["Offset of field: drm_syncobj_timeline_wait::timeout_nsec"]
[::core::mem::offset_of!(drm_syncobj_timeline_wait, timeout_nsec) - 16usize];
["Offset of field: drm_syncobj_timeline_wait::count_handles"]
[::core::mem::offset_of!(drm_syncobj_timeline_wait, count_handles) - 24usize];
["Offset of field: drm_syncobj_timeline_wait::flags"]
[::core::mem::offset_of!(drm_syncobj_timeline_wait, flags) - 28usize];
["Offset of field: drm_syncobj_timeline_wait::first_signaled"]
[::core::mem::offset_of!(drm_syncobj_timeline_wait, first_signaled) - 32usize];
["Offset of field: drm_syncobj_timeline_wait::pad"]
[::core::mem::offset_of!(drm_syncobj_timeline_wait, pad) - 36usize];
["Offset of field: drm_syncobj_timeline_wait::deadline_nsec"]
[::core::mem::offset_of!(drm_syncobj_timeline_wait, deadline_nsec) - 40usize];
};
#[doc = " struct drm_syncobj_eventfd\n @handle: syncobj handle.\n @flags: Zero to wait for the point to be signalled, or\n &DRM_SYNCOBJ_WAIT_FLAGS_WAIT_AVAILABLE to wait for a fence to be\n available for the point.\n @point: syncobj timeline point (set to zero for binary syncobjs).\n @fd: Existing eventfd to sent events to.\n @pad: Must be zero.\n\n Register an eventfd to be signalled by a syncobj. The eventfd counter will\n be incremented by one."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_syncobj_eventfd {
pub handle: __u32,
pub flags: __u32,
pub point: __u64,
pub fd: __s32,
pub pad: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_syncobj_eventfd"][::core::mem::size_of::<drm_syncobj_eventfd>() - 24usize];
["Alignment of drm_syncobj_eventfd"][::core::mem::align_of::<drm_syncobj_eventfd>() - 8usize];
["Offset of field: drm_syncobj_eventfd::handle"]
[::core::mem::offset_of!(drm_syncobj_eventfd, handle) - 0usize];
["Offset of field: drm_syncobj_eventfd::flags"]
[::core::mem::offset_of!(drm_syncobj_eventfd, flags) - 4usize];
["Offset of field: drm_syncobj_eventfd::point"]
[::core::mem::offset_of!(drm_syncobj_eventfd, point) - 8usize];
["Offset of field: drm_syncobj_eventfd::fd"]
[::core::mem::offset_of!(drm_syncobj_eventfd, fd) - 16usize];
["Offset of field: drm_syncobj_eventfd::pad"]
[::core::mem::offset_of!(drm_syncobj_eventfd, pad) - 20usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_syncobj_array {
pub handles: __u64,
pub count_handles: __u32,
pub pad: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_syncobj_array"][::core::mem::size_of::<drm_syncobj_array>() - 16usize];
["Alignment of drm_syncobj_array"][::core::mem::align_of::<drm_syncobj_array>() - 8usize];
["Offset of field: drm_syncobj_array::handles"]
[::core::mem::offset_of!(drm_syncobj_array, handles) - 0usize];
["Offset of field: drm_syncobj_array::count_handles"]
[::core::mem::offset_of!(drm_syncobj_array, count_handles) - 8usize];
["Offset of field: drm_syncobj_array::pad"]
[::core::mem::offset_of!(drm_syncobj_array, pad) - 12usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_syncobj_timeline_array {
pub handles: __u64,
pub points: __u64,
pub count_handles: __u32,
pub flags: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_syncobj_timeline_array"]
[::core::mem::size_of::<drm_syncobj_timeline_array>() - 24usize];
["Alignment of drm_syncobj_timeline_array"]
[::core::mem::align_of::<drm_syncobj_timeline_array>() - 8usize];
["Offset of field: drm_syncobj_timeline_array::handles"]
[::core::mem::offset_of!(drm_syncobj_timeline_array, handles) - 0usize];
["Offset of field: drm_syncobj_timeline_array::points"]
[::core::mem::offset_of!(drm_syncobj_timeline_array, points) - 8usize];
["Offset of field: drm_syncobj_timeline_array::count_handles"]
[::core::mem::offset_of!(drm_syncobj_timeline_array, count_handles) - 16usize];
["Offset of field: drm_syncobj_timeline_array::flags"]
[::core::mem::offset_of!(drm_syncobj_timeline_array, flags) - 20usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_crtc_get_sequence {
pub crtc_id: __u32,
pub active: __u32,
pub sequence: __u64,
pub sequence_ns: __s64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_crtc_get_sequence"][::core::mem::size_of::<drm_crtc_get_sequence>() - 24usize];
["Alignment of drm_crtc_get_sequence"]
[::core::mem::align_of::<drm_crtc_get_sequence>() - 8usize];
["Offset of field: drm_crtc_get_sequence::crtc_id"]
[::core::mem::offset_of!(drm_crtc_get_sequence, crtc_id) - 0usize];
["Offset of field: drm_crtc_get_sequence::active"]
[::core::mem::offset_of!(drm_crtc_get_sequence, active) - 4usize];
["Offset of field: drm_crtc_get_sequence::sequence"]
[::core::mem::offset_of!(drm_crtc_get_sequence, sequence) - 8usize];
["Offset of field: drm_crtc_get_sequence::sequence_ns"]
[::core::mem::offset_of!(drm_crtc_get_sequence, sequence_ns) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_crtc_queue_sequence {
pub crtc_id: __u32,
pub flags: __u32,
pub sequence: __u64,
pub user_data: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_crtc_queue_sequence"]
[::core::mem::size_of::<drm_crtc_queue_sequence>() - 24usize];
["Alignment of drm_crtc_queue_sequence"]
[::core::mem::align_of::<drm_crtc_queue_sequence>() - 8usize];
["Offset of field: drm_crtc_queue_sequence::crtc_id"]
[::core::mem::offset_of!(drm_crtc_queue_sequence, crtc_id) - 0usize];
["Offset of field: drm_crtc_queue_sequence::flags"]
[::core::mem::offset_of!(drm_crtc_queue_sequence, flags) - 4usize];
["Offset of field: drm_crtc_queue_sequence::sequence"]
[::core::mem::offset_of!(drm_crtc_queue_sequence, sequence) - 8usize];
["Offset of field: drm_crtc_queue_sequence::user_data"]
[::core::mem::offset_of!(drm_crtc_queue_sequence, user_data) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_set_client_name {
pub name_len: __u64,
pub name: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_set_client_name"][::core::mem::size_of::<drm_set_client_name>() - 16usize];
["Alignment of drm_set_client_name"][::core::mem::align_of::<drm_set_client_name>() - 8usize];
["Offset of field: drm_set_client_name::name_len"]
[::core::mem::offset_of!(drm_set_client_name, name_len) - 0usize];
["Offset of field: drm_set_client_name::name"]
[::core::mem::offset_of!(drm_set_client_name, name) - 8usize];
};
#[doc = " struct drm_mode_modeinfo - Display mode information.\n @clock: pixel clock in kHz\n @hdisplay: horizontal display size\n @hsync_start: horizontal sync start\n @hsync_end: horizontal sync end\n @htotal: horizontal total size\n @hskew: horizontal skew\n @vdisplay: vertical display size\n @vsync_start: vertical sync start\n @vsync_end: vertical sync end\n @vtotal: vertical total size\n @vscan: vertical scan\n @vrefresh: approximate vertical refresh rate in Hz\n @flags: bitmask of misc. flags, see DRM_MODE_FLAG_* defines\n @type: bitmask of type flags, see DRM_MODE_TYPE_* defines\n @name: string describing the mode resolution\n\n This is the user-space API display mode information structure. For the\n kernel version see struct drm_display_mode."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_mode_modeinfo {
pub clock: __u32,
pub hdisplay: __u16,
pub hsync_start: __u16,
pub hsync_end: __u16,
pub htotal: __u16,
pub hskew: __u16,
pub vdisplay: __u16,
pub vsync_start: __u16,
pub vsync_end: __u16,
pub vtotal: __u16,
pub vscan: __u16,
pub vrefresh: __u32,
pub flags: __u32,
pub type_: __u32,
pub name: [::core::ffi::c_char; 32usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_mode_modeinfo"][::core::mem::size_of::<drm_mode_modeinfo>() - 68usize];
["Alignment of drm_mode_modeinfo"][::core::mem::align_of::<drm_mode_modeinfo>() - 4usize];
["Offset of field: drm_mode_modeinfo::clock"]
[::core::mem::offset_of!(drm_mode_modeinfo, clock) - 0usize];
["Offset of field: drm_mode_modeinfo::hdisplay"]
[::core::mem::offset_of!(drm_mode_modeinfo, hdisplay) - 4usize];
["Offset of field: drm_mode_modeinfo::hsync_start"]
[::core::mem::offset_of!(drm_mode_modeinfo, hsync_start) - 6usize];
["Offset of field: drm_mode_modeinfo::hsync_end"]
[::core::mem::offset_of!(drm_mode_modeinfo, hsync_end) - 8usize];
["Offset of field: drm_mode_modeinfo::htotal"]
[::core::mem::offset_of!(drm_mode_modeinfo, htotal) - 10usize];
["Offset of field: drm_mode_modeinfo::hskew"]
[::core::mem::offset_of!(drm_mode_modeinfo, hskew) - 12usize];
["Offset of field: drm_mode_modeinfo::vdisplay"]
[::core::mem::offset_of!(drm_mode_modeinfo, vdisplay) - 14usize];
["Offset of field: drm_mode_modeinfo::vsync_start"]
[::core::mem::offset_of!(drm_mode_modeinfo, vsync_start) - 16usize];
["Offset of field: drm_mode_modeinfo::vsync_end"]
[::core::mem::offset_of!(drm_mode_modeinfo, vsync_end) - 18usize];
["Offset of field: drm_mode_modeinfo::vtotal"]
[::core::mem::offset_of!(drm_mode_modeinfo, vtotal) - 20usize];
["Offset of field: drm_mode_modeinfo::vscan"]
[::core::mem::offset_of!(drm_mode_modeinfo, vscan) - 22usize];
["Offset of field: drm_mode_modeinfo::vrefresh"]
[::core::mem::offset_of!(drm_mode_modeinfo, vrefresh) - 24usize];
["Offset of field: drm_mode_modeinfo::flags"]
[::core::mem::offset_of!(drm_mode_modeinfo, flags) - 28usize];
["Offset of field: drm_mode_modeinfo::type_"]
[::core::mem::offset_of!(drm_mode_modeinfo, type_) - 32usize];
["Offset of field: drm_mode_modeinfo::name"]
[::core::mem::offset_of!(drm_mode_modeinfo, name) - 36usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_mode_card_res {
pub fb_id_ptr: __u64,
pub crtc_id_ptr: __u64,
pub connector_id_ptr: __u64,
pub encoder_id_ptr: __u64,
pub count_fbs: __u32,
pub count_crtcs: __u32,
pub count_connectors: __u32,
pub count_encoders: __u32,
pub min_width: __u32,
pub max_width: __u32,
pub min_height: __u32,
pub max_height: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_mode_card_res"][::core::mem::size_of::<drm_mode_card_res>() - 64usize];
["Alignment of drm_mode_card_res"][::core::mem::align_of::<drm_mode_card_res>() - 8usize];
["Offset of field: drm_mode_card_res::fb_id_ptr"]
[::core::mem::offset_of!(drm_mode_card_res, fb_id_ptr) - 0usize];
["Offset of field: drm_mode_card_res::crtc_id_ptr"]
[::core::mem::offset_of!(drm_mode_card_res, crtc_id_ptr) - 8usize];
["Offset of field: drm_mode_card_res::connector_id_ptr"]
[::core::mem::offset_of!(drm_mode_card_res, connector_id_ptr) - 16usize];
["Offset of field: drm_mode_card_res::encoder_id_ptr"]
[::core::mem::offset_of!(drm_mode_card_res, encoder_id_ptr) - 24usize];
["Offset of field: drm_mode_card_res::count_fbs"]
[::core::mem::offset_of!(drm_mode_card_res, count_fbs) - 32usize];
["Offset of field: drm_mode_card_res::count_crtcs"]
[::core::mem::offset_of!(drm_mode_card_res, count_crtcs) - 36usize];
["Offset of field: drm_mode_card_res::count_connectors"]
[::core::mem::offset_of!(drm_mode_card_res, count_connectors) - 40usize];
["Offset of field: drm_mode_card_res::count_encoders"]
[::core::mem::offset_of!(drm_mode_card_res, count_encoders) - 44usize];
["Offset of field: drm_mode_card_res::min_width"]
[::core::mem::offset_of!(drm_mode_card_res, min_width) - 48usize];
["Offset of field: drm_mode_card_res::max_width"]
[::core::mem::offset_of!(drm_mode_card_res, max_width) - 52usize];
["Offset of field: drm_mode_card_res::min_height"]
[::core::mem::offset_of!(drm_mode_card_res, min_height) - 56usize];
["Offset of field: drm_mode_card_res::max_height"]
[::core::mem::offset_of!(drm_mode_card_res, max_height) - 60usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_mode_crtc {
pub set_connectors_ptr: __u64,
pub count_connectors: __u32,
#[doc = "< Id"]
pub crtc_id: __u32,
#[doc = "< Id of framebuffer"]
pub fb_id: __u32,
#[doc = "< x Position on the framebuffer"]
pub x: __u32,
#[doc = "< y Position on the framebuffer"]
pub y: __u32,
pub gamma_size: __u32,
pub mode_valid: __u32,
pub mode: drm_mode_modeinfo,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_mode_crtc"][::core::mem::size_of::<drm_mode_crtc>() - 104usize];
["Alignment of drm_mode_crtc"][::core::mem::align_of::<drm_mode_crtc>() - 8usize];
["Offset of field: drm_mode_crtc::set_connectors_ptr"]
[::core::mem::offset_of!(drm_mode_crtc, set_connectors_ptr) - 0usize];
["Offset of field: drm_mode_crtc::count_connectors"]
[::core::mem::offset_of!(drm_mode_crtc, count_connectors) - 8usize];
["Offset of field: drm_mode_crtc::crtc_id"]
[::core::mem::offset_of!(drm_mode_crtc, crtc_id) - 12usize];
["Offset of field: drm_mode_crtc::fb_id"]
[::core::mem::offset_of!(drm_mode_crtc, fb_id) - 16usize];
["Offset of field: drm_mode_crtc::x"][::core::mem::offset_of!(drm_mode_crtc, x) - 20usize];
["Offset of field: drm_mode_crtc::y"][::core::mem::offset_of!(drm_mode_crtc, y) - 24usize];
["Offset of field: drm_mode_crtc::gamma_size"]
[::core::mem::offset_of!(drm_mode_crtc, gamma_size) - 28usize];
["Offset of field: drm_mode_crtc::mode_valid"]
[::core::mem::offset_of!(drm_mode_crtc, mode_valid) - 32usize];
["Offset of field: drm_mode_crtc::mode"]
[::core::mem::offset_of!(drm_mode_crtc, mode) - 36usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_mode_set_plane {
pub plane_id: __u32,
pub crtc_id: __u32,
pub fb_id: __u32,
pub flags: __u32,
pub crtc_x: __s32,
pub crtc_y: __s32,
pub crtc_w: __u32,
pub crtc_h: __u32,
pub src_x: __u32,
pub src_y: __u32,
pub src_h: __u32,
pub src_w: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_mode_set_plane"][::core::mem::size_of::<drm_mode_set_plane>() - 48usize];
["Alignment of drm_mode_set_plane"][::core::mem::align_of::<drm_mode_set_plane>() - 4usize];
["Offset of field: drm_mode_set_plane::plane_id"]
[::core::mem::offset_of!(drm_mode_set_plane, plane_id) - 0usize];
["Offset of field: drm_mode_set_plane::crtc_id"]
[::core::mem::offset_of!(drm_mode_set_plane, crtc_id) - 4usize];
["Offset of field: drm_mode_set_plane::fb_id"]
[::core::mem::offset_of!(drm_mode_set_plane, fb_id) - 8usize];
["Offset of field: drm_mode_set_plane::flags"]
[::core::mem::offset_of!(drm_mode_set_plane, flags) - 12usize];
["Offset of field: drm_mode_set_plane::crtc_x"]
[::core::mem::offset_of!(drm_mode_set_plane, crtc_x) - 16usize];
["Offset of field: drm_mode_set_plane::crtc_y"]
[::core::mem::offset_of!(drm_mode_set_plane, crtc_y) - 20usize];
["Offset of field: drm_mode_set_plane::crtc_w"]
[::core::mem::offset_of!(drm_mode_set_plane, crtc_w) - 24usize];
["Offset of field: drm_mode_set_plane::crtc_h"]
[::core::mem::offset_of!(drm_mode_set_plane, crtc_h) - 28usize];
["Offset of field: drm_mode_set_plane::src_x"]
[::core::mem::offset_of!(drm_mode_set_plane, src_x) - 32usize];
["Offset of field: drm_mode_set_plane::src_y"]
[::core::mem::offset_of!(drm_mode_set_plane, src_y) - 36usize];
["Offset of field: drm_mode_set_plane::src_h"]
[::core::mem::offset_of!(drm_mode_set_plane, src_h) - 40usize];
["Offset of field: drm_mode_set_plane::src_w"]
[::core::mem::offset_of!(drm_mode_set_plane, src_w) - 44usize];
};
#[doc = " struct drm_mode_get_plane - Get plane metadata.\n\n Userspace can perform a GETPLANE ioctl to retrieve information about a\n plane.\n\n To retrieve the number of formats supported, set @count_format_types to zero\n and call the ioctl. @count_format_types will be updated with the value.\n\n To retrieve these formats, allocate an array with the memory needed to store\n @count_format_types formats. Point @format_type_ptr to this array and call\n the ioctl again (with @count_format_types still set to the value returned in\n the first ioctl call)."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_mode_get_plane {
#[doc = " @plane_id: Object ID of the plane whose information should be\n retrieved. Set by caller."]
pub plane_id: __u32,
#[doc = " @crtc_id: Object ID of the current CRTC."]
pub crtc_id: __u32,
#[doc = " @fb_id: Object ID of the current fb."]
pub fb_id: __u32,
#[doc = " @possible_crtcs: Bitmask of CRTC's compatible with the plane. CRTC's\n are created and they receive an index, which corresponds to their\n position in the bitmask. Bit N corresponds to\n :ref:`CRTC index<crtc_index>` N."]
pub possible_crtcs: __u32,
#[doc = " @gamma_size: Never used."]
pub gamma_size: __u32,
#[doc = " @count_format_types: Number of formats."]
pub count_format_types: __u32,
#[doc = " @format_type_ptr: Pointer to ``__u32`` array of formats that are\n supported by the plane. These formats do not require modifiers."]
pub format_type_ptr: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_mode_get_plane"][::core::mem::size_of::<drm_mode_get_plane>() - 32usize];
["Alignment of drm_mode_get_plane"][::core::mem::align_of::<drm_mode_get_plane>() - 8usize];
["Offset of field: drm_mode_get_plane::plane_id"]
[::core::mem::offset_of!(drm_mode_get_plane, plane_id) - 0usize];
["Offset of field: drm_mode_get_plane::crtc_id"]
[::core::mem::offset_of!(drm_mode_get_plane, crtc_id) - 4usize];
["Offset of field: drm_mode_get_plane::fb_id"]
[::core::mem::offset_of!(drm_mode_get_plane, fb_id) - 8usize];
["Offset of field: drm_mode_get_plane::possible_crtcs"]
[::core::mem::offset_of!(drm_mode_get_plane, possible_crtcs) - 12usize];
["Offset of field: drm_mode_get_plane::gamma_size"]
[::core::mem::offset_of!(drm_mode_get_plane, gamma_size) - 16usize];
["Offset of field: drm_mode_get_plane::count_format_types"]
[::core::mem::offset_of!(drm_mode_get_plane, count_format_types) - 20usize];
["Offset of field: drm_mode_get_plane::format_type_ptr"]
[::core::mem::offset_of!(drm_mode_get_plane, format_type_ptr) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_mode_get_plane_res {
pub plane_id_ptr: __u64,
pub count_planes: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_mode_get_plane_res"][::core::mem::size_of::<drm_mode_get_plane_res>() - 16usize];
["Alignment of drm_mode_get_plane_res"]
[::core::mem::align_of::<drm_mode_get_plane_res>() - 8usize];
["Offset of field: drm_mode_get_plane_res::plane_id_ptr"]
[::core::mem::offset_of!(drm_mode_get_plane_res, plane_id_ptr) - 0usize];
["Offset of field: drm_mode_get_plane_res::count_planes"]
[::core::mem::offset_of!(drm_mode_get_plane_res, count_planes) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_mode_get_encoder {
pub encoder_id: __u32,
pub encoder_type: __u32,
#[doc = "< Id of crtc"]
pub crtc_id: __u32,
pub possible_crtcs: __u32,
pub possible_clones: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_mode_get_encoder"][::core::mem::size_of::<drm_mode_get_encoder>() - 20usize];
["Alignment of drm_mode_get_encoder"][::core::mem::align_of::<drm_mode_get_encoder>() - 4usize];
["Offset of field: drm_mode_get_encoder::encoder_id"]
[::core::mem::offset_of!(drm_mode_get_encoder, encoder_id) - 0usize];
["Offset of field: drm_mode_get_encoder::encoder_type"]
[::core::mem::offset_of!(drm_mode_get_encoder, encoder_type) - 4usize];
["Offset of field: drm_mode_get_encoder::crtc_id"]
[::core::mem::offset_of!(drm_mode_get_encoder, crtc_id) - 8usize];
["Offset of field: drm_mode_get_encoder::possible_crtcs"]
[::core::mem::offset_of!(drm_mode_get_encoder, possible_crtcs) - 12usize];
["Offset of field: drm_mode_get_encoder::possible_clones"]
[::core::mem::offset_of!(drm_mode_get_encoder, possible_clones) - 16usize];
};
pub const drm_mode_subconnector_DRM_MODE_SUBCONNECTOR_Automatic: drm_mode_subconnector = 0;
pub const drm_mode_subconnector_DRM_MODE_SUBCONNECTOR_Unknown: drm_mode_subconnector = 0;
pub const drm_mode_subconnector_DRM_MODE_SUBCONNECTOR_VGA: drm_mode_subconnector = 1;
pub const drm_mode_subconnector_DRM_MODE_SUBCONNECTOR_DVID: drm_mode_subconnector = 3;
pub const drm_mode_subconnector_DRM_MODE_SUBCONNECTOR_DVIA: drm_mode_subconnector = 4;
pub const drm_mode_subconnector_DRM_MODE_SUBCONNECTOR_Composite: drm_mode_subconnector = 5;
pub const drm_mode_subconnector_DRM_MODE_SUBCONNECTOR_SVIDEO: drm_mode_subconnector = 6;
pub const drm_mode_subconnector_DRM_MODE_SUBCONNECTOR_Component: drm_mode_subconnector = 8;
pub const drm_mode_subconnector_DRM_MODE_SUBCONNECTOR_SCART: drm_mode_subconnector = 9;
pub const drm_mode_subconnector_DRM_MODE_SUBCONNECTOR_DisplayPort: drm_mode_subconnector = 10;
pub const drm_mode_subconnector_DRM_MODE_SUBCONNECTOR_HDMIA: drm_mode_subconnector = 11;
pub const drm_mode_subconnector_DRM_MODE_SUBCONNECTOR_Native: drm_mode_subconnector = 15;
pub const drm_mode_subconnector_DRM_MODE_SUBCONNECTOR_Wireless: drm_mode_subconnector = 18;
pub type drm_mode_subconnector = ::core::ffi::c_uint;
#[doc = " struct drm_mode_get_connector - Get connector metadata.\n\n User-space can perform a GETCONNECTOR ioctl to retrieve information about a\n connector. User-space is expected to retrieve encoders, modes and properties\n by performing this ioctl at least twice: the first time to retrieve the\n number of elements, the second time to retrieve the elements themselves.\n\n To retrieve the number of elements, set @count_props and @count_encoders to\n zero, set @count_modes to 1, and set @modes_ptr to a temporary struct\n drm_mode_modeinfo element.\n\n To retrieve the elements, allocate arrays for @encoders_ptr, @modes_ptr,\n @props_ptr and @prop_values_ptr, then set @count_modes, @count_props and\n @count_encoders to their capacity.\n\n Performing the ioctl only twice may be racy: the number of elements may have\n changed with a hotplug event in-between the two ioctls. User-space is\n expected to retry the last ioctl until the number of elements stabilizes.\n The kernel won't fill any array which doesn't have the expected length.\n\n **Force-probing a connector**\n\n If the @count_modes field is set to zero and the DRM client is the current\n DRM master, the kernel will perform a forced probe on the connector to\n refresh the connector status, modes and EDID. A forced-probe can be slow,\n might cause flickering and the ioctl will block.\n\n User-space needs to force-probe connectors to ensure their metadata is\n up-to-date at startup and after receiving a hot-plug event. User-space\n may perform a forced-probe when the user explicitly requests it. User-space\n shouldn't perform a forced-probe in other situations."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_mode_get_connector {
#[doc = " @encoders_ptr: Pointer to ``__u32`` array of object IDs."]
pub encoders_ptr: __u64,
#[doc = " @modes_ptr: Pointer to struct drm_mode_modeinfo array."]
pub modes_ptr: __u64,
#[doc = " @props_ptr: Pointer to ``__u32`` array of property IDs."]
pub props_ptr: __u64,
#[doc = " @prop_values_ptr: Pointer to ``__u64`` array of property values."]
pub prop_values_ptr: __u64,
#[doc = " @count_modes: Number of modes."]
pub count_modes: __u32,
#[doc = " @count_props: Number of properties."]
pub count_props: __u32,
#[doc = " @count_encoders: Number of encoders."]
pub count_encoders: __u32,
#[doc = " @encoder_id: Object ID of the current encoder."]
pub encoder_id: __u32,
#[doc = " @connector_id: Object ID of the connector."]
pub connector_id: __u32,
#[doc = " @connector_type: Type of the connector.\n\n See DRM_MODE_CONNECTOR_* defines."]
pub connector_type: __u32,
#[doc = " @connector_type_id: Type-specific connector number.\n\n This is not an object ID. This is a per-type connector number. Each\n (type, type_id) combination is unique across all connectors of a DRM\n device.\n\n The (type, type_id) combination is not a stable identifier: the\n type_id can change depending on the driver probe order."]
pub connector_type_id: __u32,
#[doc = " @connection: Status of the connector.\n\n See enum drm_connector_status."]
pub connection: __u32,
#[doc = " @mm_width: Width of the connected sink in millimeters."]
pub mm_width: __u32,
#[doc = " @mm_height: Height of the connected sink in millimeters."]
pub mm_height: __u32,
#[doc = " @subpixel: Subpixel order of the connected sink.\n\n See enum subpixel_order."]
pub subpixel: __u32,
#[doc = " @pad: Padding, must be zero."]
pub pad: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_mode_get_connector"][::core::mem::size_of::<drm_mode_get_connector>() - 80usize];
["Alignment of drm_mode_get_connector"]
[::core::mem::align_of::<drm_mode_get_connector>() - 8usize];
["Offset of field: drm_mode_get_connector::encoders_ptr"]
[::core::mem::offset_of!(drm_mode_get_connector, encoders_ptr) - 0usize];
["Offset of field: drm_mode_get_connector::modes_ptr"]
[::core::mem::offset_of!(drm_mode_get_connector, modes_ptr) - 8usize];
["Offset of field: drm_mode_get_connector::props_ptr"]
[::core::mem::offset_of!(drm_mode_get_connector, props_ptr) - 16usize];
["Offset of field: drm_mode_get_connector::prop_values_ptr"]
[::core::mem::offset_of!(drm_mode_get_connector, prop_values_ptr) - 24usize];
["Offset of field: drm_mode_get_connector::count_modes"]
[::core::mem::offset_of!(drm_mode_get_connector, count_modes) - 32usize];
["Offset of field: drm_mode_get_connector::count_props"]
[::core::mem::offset_of!(drm_mode_get_connector, count_props) - 36usize];
["Offset of field: drm_mode_get_connector::count_encoders"]
[::core::mem::offset_of!(drm_mode_get_connector, count_encoders) - 40usize];
["Offset of field: drm_mode_get_connector::encoder_id"]
[::core::mem::offset_of!(drm_mode_get_connector, encoder_id) - 44usize];
["Offset of field: drm_mode_get_connector::connector_id"]
[::core::mem::offset_of!(drm_mode_get_connector, connector_id) - 48usize];
["Offset of field: drm_mode_get_connector::connector_type"]
[::core::mem::offset_of!(drm_mode_get_connector, connector_type) - 52usize];
["Offset of field: drm_mode_get_connector::connector_type_id"]
[::core::mem::offset_of!(drm_mode_get_connector, connector_type_id) - 56usize];
["Offset of field: drm_mode_get_connector::connection"]
[::core::mem::offset_of!(drm_mode_get_connector, connection) - 60usize];
["Offset of field: drm_mode_get_connector::mm_width"]
[::core::mem::offset_of!(drm_mode_get_connector, mm_width) - 64usize];
["Offset of field: drm_mode_get_connector::mm_height"]
[::core::mem::offset_of!(drm_mode_get_connector, mm_height) - 68usize];
["Offset of field: drm_mode_get_connector::subpixel"]
[::core::mem::offset_of!(drm_mode_get_connector, subpixel) - 72usize];
["Offset of field: drm_mode_get_connector::pad"]
[::core::mem::offset_of!(drm_mode_get_connector, pad) - 76usize];
};
#[doc = " struct drm_mode_property_enum - Description for an enum/bitfield entry.\n @value: numeric value for this enum entry.\n @name: symbolic name for this enum entry.\n\n See struct drm_property_enum for details."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_mode_property_enum {
pub value: __u64,
pub name: [::core::ffi::c_char; 32usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_mode_property_enum"][::core::mem::size_of::<drm_mode_property_enum>() - 40usize];
["Alignment of drm_mode_property_enum"]
[::core::mem::align_of::<drm_mode_property_enum>() - 8usize];
["Offset of field: drm_mode_property_enum::value"]
[::core::mem::offset_of!(drm_mode_property_enum, value) - 0usize];
["Offset of field: drm_mode_property_enum::name"]
[::core::mem::offset_of!(drm_mode_property_enum, name) - 8usize];
};
#[doc = " struct drm_mode_get_property - Get property metadata.\n\n User-space can perform a GETPROPERTY ioctl to retrieve information about a\n property. The same property may be attached to multiple objects, see\n \"Modeset Base Object Abstraction\".\n\n The meaning of the @values_ptr field changes depending on the property type.\n See &drm_property.flags for more details.\n\n The @enum_blob_ptr and @count_enum_blobs fields are only meaningful when the\n property has the type &DRM_MODE_PROP_ENUM or &DRM_MODE_PROP_BITMASK. For\n backwards compatibility, the kernel will always set @count_enum_blobs to\n zero when the property has the type &DRM_MODE_PROP_BLOB. User-space must\n ignore these two fields if the property has a different type.\n\n User-space is expected to retrieve values and enums by performing this ioctl\n at least twice: the first time to retrieve the number of elements, the\n second time to retrieve the elements themselves.\n\n To retrieve the number of elements, set @count_values and @count_enum_blobs\n to zero, then call the ioctl. @count_values will be updated with the number\n of elements. If the property has the type &DRM_MODE_PROP_ENUM or\n &DRM_MODE_PROP_BITMASK, @count_enum_blobs will be updated as well.\n\n To retrieve the elements themselves, allocate an array for @values_ptr and\n set @count_values to its capacity. If the property has the type\n &DRM_MODE_PROP_ENUM or &DRM_MODE_PROP_BITMASK, allocate an array for\n @enum_blob_ptr and set @count_enum_blobs to its capacity. Calling the ioctl\n again will fill the arrays."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_mode_get_property {
#[doc = " @values_ptr: Pointer to a ``__u64`` array."]
pub values_ptr: __u64,
#[doc = " @enum_blob_ptr: Pointer to a struct drm_mode_property_enum array."]
pub enum_blob_ptr: __u64,
#[doc = " @prop_id: Object ID of the property which should be retrieved. Set\n by the caller."]
pub prop_id: __u32,
#[doc = " @flags: ``DRM_MODE_PROP_*`` bitfield. See &drm_property.flags for\n a definition of the flags."]
pub flags: __u32,
#[doc = " @name: Symbolic property name. User-space should use this field to\n recognize properties."]
pub name: [::core::ffi::c_char; 32usize],
#[doc = " @count_values: Number of elements in @values_ptr."]
pub count_values: __u32,
#[doc = " @count_enum_blobs: Number of elements in @enum_blob_ptr."]
pub count_enum_blobs: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_mode_get_property"][::core::mem::size_of::<drm_mode_get_property>() - 64usize];
["Alignment of drm_mode_get_property"]
[::core::mem::align_of::<drm_mode_get_property>() - 8usize];
["Offset of field: drm_mode_get_property::values_ptr"]
[::core::mem::offset_of!(drm_mode_get_property, values_ptr) - 0usize];
["Offset of field: drm_mode_get_property::enum_blob_ptr"]
[::core::mem::offset_of!(drm_mode_get_property, enum_blob_ptr) - 8usize];
["Offset of field: drm_mode_get_property::prop_id"]
[::core::mem::offset_of!(drm_mode_get_property, prop_id) - 16usize];
["Offset of field: drm_mode_get_property::flags"]
[::core::mem::offset_of!(drm_mode_get_property, flags) - 20usize];
["Offset of field: drm_mode_get_property::name"]
[::core::mem::offset_of!(drm_mode_get_property, name) - 24usize];
["Offset of field: drm_mode_get_property::count_values"]
[::core::mem::offset_of!(drm_mode_get_property, count_values) - 56usize];
["Offset of field: drm_mode_get_property::count_enum_blobs"]
[::core::mem::offset_of!(drm_mode_get_property, count_enum_blobs) - 60usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_mode_connector_set_property {
pub value: __u64,
pub prop_id: __u32,
pub connector_id: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_mode_connector_set_property"]
[::core::mem::size_of::<drm_mode_connector_set_property>() - 16usize];
["Alignment of drm_mode_connector_set_property"]
[::core::mem::align_of::<drm_mode_connector_set_property>() - 8usize];
["Offset of field: drm_mode_connector_set_property::value"]
[::core::mem::offset_of!(drm_mode_connector_set_property, value) - 0usize];
["Offset of field: drm_mode_connector_set_property::prop_id"]
[::core::mem::offset_of!(drm_mode_connector_set_property, prop_id) - 8usize];
["Offset of field: drm_mode_connector_set_property::connector_id"]
[::core::mem::offset_of!(drm_mode_connector_set_property, connector_id) - 12usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_mode_obj_get_properties {
pub props_ptr: __u64,
pub prop_values_ptr: __u64,
pub count_props: __u32,
pub obj_id: __u32,
pub obj_type: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_mode_obj_get_properties"]
[::core::mem::size_of::<drm_mode_obj_get_properties>() - 32usize];
["Alignment of drm_mode_obj_get_properties"]
[::core::mem::align_of::<drm_mode_obj_get_properties>() - 8usize];
["Offset of field: drm_mode_obj_get_properties::props_ptr"]
[::core::mem::offset_of!(drm_mode_obj_get_properties, props_ptr) - 0usize];
["Offset of field: drm_mode_obj_get_properties::prop_values_ptr"]
[::core::mem::offset_of!(drm_mode_obj_get_properties, prop_values_ptr) - 8usize];
["Offset of field: drm_mode_obj_get_properties::count_props"]
[::core::mem::offset_of!(drm_mode_obj_get_properties, count_props) - 16usize];
["Offset of field: drm_mode_obj_get_properties::obj_id"]
[::core::mem::offset_of!(drm_mode_obj_get_properties, obj_id) - 20usize];
["Offset of field: drm_mode_obj_get_properties::obj_type"]
[::core::mem::offset_of!(drm_mode_obj_get_properties, obj_type) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_mode_obj_set_property {
pub value: __u64,
pub prop_id: __u32,
pub obj_id: __u32,
pub obj_type: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_mode_obj_set_property"]
[::core::mem::size_of::<drm_mode_obj_set_property>() - 24usize];
["Alignment of drm_mode_obj_set_property"]
[::core::mem::align_of::<drm_mode_obj_set_property>() - 8usize];
["Offset of field: drm_mode_obj_set_property::value"]
[::core::mem::offset_of!(drm_mode_obj_set_property, value) - 0usize];
["Offset of field: drm_mode_obj_set_property::prop_id"]
[::core::mem::offset_of!(drm_mode_obj_set_property, prop_id) - 8usize];
["Offset of field: drm_mode_obj_set_property::obj_id"]
[::core::mem::offset_of!(drm_mode_obj_set_property, obj_id) - 12usize];
["Offset of field: drm_mode_obj_set_property::obj_type"]
[::core::mem::offset_of!(drm_mode_obj_set_property, obj_type) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_mode_get_blob {
pub blob_id: __u32,
pub length: __u32,
pub data: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_mode_get_blob"][::core::mem::size_of::<drm_mode_get_blob>() - 16usize];
["Alignment of drm_mode_get_blob"][::core::mem::align_of::<drm_mode_get_blob>() - 8usize];
["Offset of field: drm_mode_get_blob::blob_id"]
[::core::mem::offset_of!(drm_mode_get_blob, blob_id) - 0usize];
["Offset of field: drm_mode_get_blob::length"]
[::core::mem::offset_of!(drm_mode_get_blob, length) - 4usize];
["Offset of field: drm_mode_get_blob::data"]
[::core::mem::offset_of!(drm_mode_get_blob, data) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_mode_fb_cmd {
pub fb_id: __u32,
pub width: __u32,
pub height: __u32,
pub pitch: __u32,
pub bpp: __u32,
pub depth: __u32,
pub handle: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_mode_fb_cmd"][::core::mem::size_of::<drm_mode_fb_cmd>() - 28usize];
["Alignment of drm_mode_fb_cmd"][::core::mem::align_of::<drm_mode_fb_cmd>() - 4usize];
["Offset of field: drm_mode_fb_cmd::fb_id"]
[::core::mem::offset_of!(drm_mode_fb_cmd, fb_id) - 0usize];
["Offset of field: drm_mode_fb_cmd::width"]
[::core::mem::offset_of!(drm_mode_fb_cmd, width) - 4usize];
["Offset of field: drm_mode_fb_cmd::height"]
[::core::mem::offset_of!(drm_mode_fb_cmd, height) - 8usize];
["Offset of field: drm_mode_fb_cmd::pitch"]
[::core::mem::offset_of!(drm_mode_fb_cmd, pitch) - 12usize];
["Offset of field: drm_mode_fb_cmd::bpp"]
[::core::mem::offset_of!(drm_mode_fb_cmd, bpp) - 16usize];
["Offset of field: drm_mode_fb_cmd::depth"]
[::core::mem::offset_of!(drm_mode_fb_cmd, depth) - 20usize];
["Offset of field: drm_mode_fb_cmd::handle"]
[::core::mem::offset_of!(drm_mode_fb_cmd, handle) - 24usize];
};
#[doc = " struct drm_mode_fb_cmd2 - Frame-buffer metadata.\n\n This struct holds frame-buffer metadata. There are two ways to use it:\n\n - User-space can fill this struct and perform a &DRM_IOCTL_MODE_ADDFB2\n ioctl to register a new frame-buffer. The new frame-buffer object ID will\n be set by the kernel in @fb_id.\n - User-space can set @fb_id and perform a &DRM_IOCTL_MODE_GETFB2 ioctl to\n fetch metadata about an existing frame-buffer.\n\n In case of planar formats, this struct allows up to 4 buffer objects with\n offsets and pitches per plane. The pitch and offset order are dictated by\n the format FourCC as defined by ``drm_fourcc.h``, e.g. NV12 is described as:\n\n YUV 4:2:0 image with a plane of 8-bit Y samples followed by an\n interleaved U/V plane containing 8-bit 2x2 subsampled colour difference\n samples.\n\n So it would consist of a Y plane at ``offsets[0]`` and a UV plane at\n ``offsets[1]``.\n\n To accommodate tiled, compressed, etc formats, a modifier can be specified.\n For more information see the \"Format Modifiers\" section. Note that even\n though it looks like we have a modifier per-plane, we in fact do not. The\n modifier for each plane must be identical. Thus all combinations of\n different data layouts for multi-plane formats must be enumerated as\n separate modifiers.\n\n All of the entries in @handles, @pitches, @offsets and @modifier must be\n zero when unused. Warning, for @offsets and @modifier zero can't be used to\n figure out whether the entry is used or not since it's a valid value (a zero\n offset is common, and a zero modifier is &DRM_FORMAT_MOD_LINEAR)."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_mode_fb_cmd2 {
#[doc = " @fb_id: Object ID of the frame-buffer."]
pub fb_id: __u32,
#[doc = " @width: Width of the frame-buffer."]
pub width: __u32,
#[doc = " @height: Height of the frame-buffer."]
pub height: __u32,
#[doc = " @pixel_format: FourCC format code, see ``DRM_FORMAT_*`` constants in\n ``drm_fourcc.h``."]
pub pixel_format: __u32,
#[doc = " @flags: Frame-buffer flags (see &DRM_MODE_FB_INTERLACED and\n &DRM_MODE_FB_MODIFIERS)."]
pub flags: __u32,
#[doc = " @handles: GEM buffer handle, one per plane. Set to 0 if the plane is\n unused. The same handle can be used for multiple planes."]
pub handles: [__u32; 4usize],
#[doc = " @pitches: Pitch (aka. stride) in bytes, one per plane."]
pub pitches: [__u32; 4usize],
#[doc = " @offsets: Offset into the buffer in bytes, one per plane."]
pub offsets: [__u32; 4usize],
#[doc = " @modifier: Format modifier, one per plane. See ``DRM_FORMAT_MOD_*``\n constants in ``drm_fourcc.h``. All planes must use the same\n modifier. Ignored unless &DRM_MODE_FB_MODIFIERS is set in @flags."]
pub modifier: [__u64; 4usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_mode_fb_cmd2"][::core::mem::size_of::<drm_mode_fb_cmd2>() - 104usize];
["Alignment of drm_mode_fb_cmd2"][::core::mem::align_of::<drm_mode_fb_cmd2>() - 8usize];
["Offset of field: drm_mode_fb_cmd2::fb_id"]
[::core::mem::offset_of!(drm_mode_fb_cmd2, fb_id) - 0usize];
["Offset of field: drm_mode_fb_cmd2::width"]
[::core::mem::offset_of!(drm_mode_fb_cmd2, width) - 4usize];
["Offset of field: drm_mode_fb_cmd2::height"]
[::core::mem::offset_of!(drm_mode_fb_cmd2, height) - 8usize];
["Offset of field: drm_mode_fb_cmd2::pixel_format"]
[::core::mem::offset_of!(drm_mode_fb_cmd2, pixel_format) - 12usize];
["Offset of field: drm_mode_fb_cmd2::flags"]
[::core::mem::offset_of!(drm_mode_fb_cmd2, flags) - 16usize];
["Offset of field: drm_mode_fb_cmd2::handles"]
[::core::mem::offset_of!(drm_mode_fb_cmd2, handles) - 20usize];
["Offset of field: drm_mode_fb_cmd2::pitches"]
[::core::mem::offset_of!(drm_mode_fb_cmd2, pitches) - 36usize];
["Offset of field: drm_mode_fb_cmd2::offsets"]
[::core::mem::offset_of!(drm_mode_fb_cmd2, offsets) - 52usize];
["Offset of field: drm_mode_fb_cmd2::modifier"]
[::core::mem::offset_of!(drm_mode_fb_cmd2, modifier) - 72usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_mode_fb_dirty_cmd {
pub fb_id: __u32,
pub flags: __u32,
pub color: __u32,
pub num_clips: __u32,
pub clips_ptr: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_mode_fb_dirty_cmd"][::core::mem::size_of::<drm_mode_fb_dirty_cmd>() - 24usize];
["Alignment of drm_mode_fb_dirty_cmd"]
[::core::mem::align_of::<drm_mode_fb_dirty_cmd>() - 8usize];
["Offset of field: drm_mode_fb_dirty_cmd::fb_id"]
[::core::mem::offset_of!(drm_mode_fb_dirty_cmd, fb_id) - 0usize];
["Offset of field: drm_mode_fb_dirty_cmd::flags"]
[::core::mem::offset_of!(drm_mode_fb_dirty_cmd, flags) - 4usize];
["Offset of field: drm_mode_fb_dirty_cmd::color"]
[::core::mem::offset_of!(drm_mode_fb_dirty_cmd, color) - 8usize];
["Offset of field: drm_mode_fb_dirty_cmd::num_clips"]
[::core::mem::offset_of!(drm_mode_fb_dirty_cmd, num_clips) - 12usize];
["Offset of field: drm_mode_fb_dirty_cmd::clips_ptr"]
[::core::mem::offset_of!(drm_mode_fb_dirty_cmd, clips_ptr) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_mode_mode_cmd {
pub connector_id: __u32,
pub mode: drm_mode_modeinfo,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_mode_mode_cmd"][::core::mem::size_of::<drm_mode_mode_cmd>() - 72usize];
["Alignment of drm_mode_mode_cmd"][::core::mem::align_of::<drm_mode_mode_cmd>() - 4usize];
["Offset of field: drm_mode_mode_cmd::connector_id"]
[::core::mem::offset_of!(drm_mode_mode_cmd, connector_id) - 0usize];
["Offset of field: drm_mode_mode_cmd::mode"]
[::core::mem::offset_of!(drm_mode_mode_cmd, mode) - 4usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_mode_cursor {
pub flags: __u32,
pub crtc_id: __u32,
pub x: __s32,
pub y: __s32,
pub width: __u32,
pub height: __u32,
pub handle: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_mode_cursor"][::core::mem::size_of::<drm_mode_cursor>() - 28usize];
["Alignment of drm_mode_cursor"][::core::mem::align_of::<drm_mode_cursor>() - 4usize];
["Offset of field: drm_mode_cursor::flags"]
[::core::mem::offset_of!(drm_mode_cursor, flags) - 0usize];
["Offset of field: drm_mode_cursor::crtc_id"]
[::core::mem::offset_of!(drm_mode_cursor, crtc_id) - 4usize];
["Offset of field: drm_mode_cursor::x"][::core::mem::offset_of!(drm_mode_cursor, x) - 8usize];
["Offset of field: drm_mode_cursor::y"][::core::mem::offset_of!(drm_mode_cursor, y) - 12usize];
["Offset of field: drm_mode_cursor::width"]
[::core::mem::offset_of!(drm_mode_cursor, width) - 16usize];
["Offset of field: drm_mode_cursor::height"]
[::core::mem::offset_of!(drm_mode_cursor, height) - 20usize];
["Offset of field: drm_mode_cursor::handle"]
[::core::mem::offset_of!(drm_mode_cursor, handle) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_mode_cursor2 {
pub flags: __u32,
pub crtc_id: __u32,
pub x: __s32,
pub y: __s32,
pub width: __u32,
pub height: __u32,
pub handle: __u32,
pub hot_x: __s32,
pub hot_y: __s32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_mode_cursor2"][::core::mem::size_of::<drm_mode_cursor2>() - 36usize];
["Alignment of drm_mode_cursor2"][::core::mem::align_of::<drm_mode_cursor2>() - 4usize];
["Offset of field: drm_mode_cursor2::flags"]
[::core::mem::offset_of!(drm_mode_cursor2, flags) - 0usize];
["Offset of field: drm_mode_cursor2::crtc_id"]
[::core::mem::offset_of!(drm_mode_cursor2, crtc_id) - 4usize];
["Offset of field: drm_mode_cursor2::x"][::core::mem::offset_of!(drm_mode_cursor2, x) - 8usize];
["Offset of field: drm_mode_cursor2::y"]
[::core::mem::offset_of!(drm_mode_cursor2, y) - 12usize];
["Offset of field: drm_mode_cursor2::width"]
[::core::mem::offset_of!(drm_mode_cursor2, width) - 16usize];
["Offset of field: drm_mode_cursor2::height"]
[::core::mem::offset_of!(drm_mode_cursor2, height) - 20usize];
["Offset of field: drm_mode_cursor2::handle"]
[::core::mem::offset_of!(drm_mode_cursor2, handle) - 24usize];
["Offset of field: drm_mode_cursor2::hot_x"]
[::core::mem::offset_of!(drm_mode_cursor2, hot_x) - 28usize];
["Offset of field: drm_mode_cursor2::hot_y"]
[::core::mem::offset_of!(drm_mode_cursor2, hot_y) - 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_mode_crtc_lut {
pub crtc_id: __u32,
pub gamma_size: __u32,
pub red: __u64,
pub green: __u64,
pub blue: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_mode_crtc_lut"][::core::mem::size_of::<drm_mode_crtc_lut>() - 32usize];
["Alignment of drm_mode_crtc_lut"][::core::mem::align_of::<drm_mode_crtc_lut>() - 8usize];
["Offset of field: drm_mode_crtc_lut::crtc_id"]
[::core::mem::offset_of!(drm_mode_crtc_lut, crtc_id) - 0usize];
["Offset of field: drm_mode_crtc_lut::gamma_size"]
[::core::mem::offset_of!(drm_mode_crtc_lut, gamma_size) - 4usize];
["Offset of field: drm_mode_crtc_lut::red"]
[::core::mem::offset_of!(drm_mode_crtc_lut, red) - 8usize];
["Offset of field: drm_mode_crtc_lut::green"]
[::core::mem::offset_of!(drm_mode_crtc_lut, green) - 16usize];
["Offset of field: drm_mode_crtc_lut::blue"]
[::core::mem::offset_of!(drm_mode_crtc_lut, blue) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_color_ctm {
pub matrix: [__u64; 9usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_color_ctm"][::core::mem::size_of::<drm_color_ctm>() - 72usize];
["Alignment of drm_color_ctm"][::core::mem::align_of::<drm_color_ctm>() - 8usize];
["Offset of field: drm_color_ctm::matrix"]
[::core::mem::offset_of!(drm_color_ctm, matrix) - 0usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_color_lut {
pub red: __u16,
pub green: __u16,
pub blue: __u16,
pub reserved: __u16,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_color_lut"][::core::mem::size_of::<drm_color_lut>() - 8usize];
["Alignment of drm_color_lut"][::core::mem::align_of::<drm_color_lut>() - 2usize];
["Offset of field: drm_color_lut::red"][::core::mem::offset_of!(drm_color_lut, red) - 0usize];
["Offset of field: drm_color_lut::green"]
[::core::mem::offset_of!(drm_color_lut, green) - 2usize];
["Offset of field: drm_color_lut::blue"][::core::mem::offset_of!(drm_color_lut, blue) - 4usize];
["Offset of field: drm_color_lut::reserved"]
[::core::mem::offset_of!(drm_color_lut, reserved) - 6usize];
};
#[doc = " struct drm_plane_size_hint - Plane size hints\n @width: The width of the plane in pixel\n @height: The height of the plane in pixel\n\n The plane SIZE_HINTS property blob contains an\n array of struct drm_plane_size_hint."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_plane_size_hint {
pub width: __u16,
pub height: __u16,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_plane_size_hint"][::core::mem::size_of::<drm_plane_size_hint>() - 4usize];
["Alignment of drm_plane_size_hint"][::core::mem::align_of::<drm_plane_size_hint>() - 2usize];
["Offset of field: drm_plane_size_hint::width"]
[::core::mem::offset_of!(drm_plane_size_hint, width) - 0usize];
["Offset of field: drm_plane_size_hint::height"]
[::core::mem::offset_of!(drm_plane_size_hint, height) - 2usize];
};
#[doc = " struct hdr_metadata_infoframe - HDR Metadata Infoframe Data.\n\n HDR Metadata Infoframe as per CTA 861.G spec. This is expected\n to match exactly with the spec.\n\n Userspace is expected to pass the metadata information as per\n the format described in this structure."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct hdr_metadata_infoframe {
#[doc = " @eotf: Electro-Optical Transfer Function (EOTF)\n used in the stream."]
pub eotf: __u8,
#[doc = " @metadata_type: Static_Metadata_Descriptor_ID."]
pub metadata_type: __u8,
pub display_primaries: [hdr_metadata_infoframe__bindgen_ty_1; 3usize],
pub white_point: hdr_metadata_infoframe__bindgen_ty_2,
#[doc = " @max_display_mastering_luminance: Max Mastering Display Luminance.\n This value is coded as an unsigned 16-bit value in units of 1 cd/m2,\n where 0x0001 represents 1 cd/m2 and 0xFFFF represents 65535 cd/m2."]
pub max_display_mastering_luminance: __u16,
#[doc = " @min_display_mastering_luminance: Min Mastering Display Luminance.\n This value is coded as an unsigned 16-bit value in units of\n 0.0001 cd/m2, where 0x0001 represents 0.0001 cd/m2 and 0xFFFF\n represents 6.5535 cd/m2."]
pub min_display_mastering_luminance: __u16,
#[doc = " @max_cll: Max Content Light Level.\n This value is coded as an unsigned 16-bit value in units of 1 cd/m2,\n where 0x0001 represents 1 cd/m2 and 0xFFFF represents 65535 cd/m2."]
pub max_cll: __u16,
#[doc = " @max_fall: Max Frame Average Light Level.\n This value is coded as an unsigned 16-bit value in units of 1 cd/m2,\n where 0x0001 represents 1 cd/m2 and 0xFFFF represents 65535 cd/m2."]
pub max_fall: __u16,
}
#[doc = " @display_primaries: Color Primaries of the Data.\n These are coded as unsigned 16-bit values in units of\n 0.00002, where 0x0000 represents zero and 0xC350\n represents 1.0000.\n @display_primaries.x: X coordinate of color primary.\n @display_primaries.y: Y coordinate of color primary."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct hdr_metadata_infoframe__bindgen_ty_1 {
pub x: __u16,
pub y: __u16,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of hdr_metadata_infoframe__bindgen_ty_1"]
[::core::mem::size_of::<hdr_metadata_infoframe__bindgen_ty_1>() - 4usize];
["Alignment of hdr_metadata_infoframe__bindgen_ty_1"]
[::core::mem::align_of::<hdr_metadata_infoframe__bindgen_ty_1>() - 2usize];
["Offset of field: hdr_metadata_infoframe__bindgen_ty_1::x"]
[::core::mem::offset_of!(hdr_metadata_infoframe__bindgen_ty_1, x) - 0usize];
["Offset of field: hdr_metadata_infoframe__bindgen_ty_1::y"]
[::core::mem::offset_of!(hdr_metadata_infoframe__bindgen_ty_1, y) - 2usize];
};
#[doc = " @white_point: White Point of Colorspace Data.\n These are coded as unsigned 16-bit values in units of\n 0.00002, where 0x0000 represents zero and 0xC350\n represents 1.0000.\n @white_point.x: X coordinate of whitepoint of color primary.\n @white_point.y: Y coordinate of whitepoint of color primary."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct hdr_metadata_infoframe__bindgen_ty_2 {
pub x: __u16,
pub y: __u16,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of hdr_metadata_infoframe__bindgen_ty_2"]
[::core::mem::size_of::<hdr_metadata_infoframe__bindgen_ty_2>() - 4usize];
["Alignment of hdr_metadata_infoframe__bindgen_ty_2"]
[::core::mem::align_of::<hdr_metadata_infoframe__bindgen_ty_2>() - 2usize];
["Offset of field: hdr_metadata_infoframe__bindgen_ty_2::x"]
[::core::mem::offset_of!(hdr_metadata_infoframe__bindgen_ty_2, x) - 0usize];
["Offset of field: hdr_metadata_infoframe__bindgen_ty_2::y"]
[::core::mem::offset_of!(hdr_metadata_infoframe__bindgen_ty_2, y) - 2usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of hdr_metadata_infoframe"][::core::mem::size_of::<hdr_metadata_infoframe>() - 26usize];
["Alignment of hdr_metadata_infoframe"]
[::core::mem::align_of::<hdr_metadata_infoframe>() - 2usize];
["Offset of field: hdr_metadata_infoframe::eotf"]
[::core::mem::offset_of!(hdr_metadata_infoframe, eotf) - 0usize];
["Offset of field: hdr_metadata_infoframe::metadata_type"]
[::core::mem::offset_of!(hdr_metadata_infoframe, metadata_type) - 1usize];
["Offset of field: hdr_metadata_infoframe::display_primaries"]
[::core::mem::offset_of!(hdr_metadata_infoframe, display_primaries) - 2usize];
["Offset of field: hdr_metadata_infoframe::white_point"]
[::core::mem::offset_of!(hdr_metadata_infoframe, white_point) - 14usize];
["Offset of field: hdr_metadata_infoframe::max_display_mastering_luminance"][::core::mem::offset_of!(
hdr_metadata_infoframe,
max_display_mastering_luminance
) - 18usize];
["Offset of field: hdr_metadata_infoframe::min_display_mastering_luminance"][::core::mem::offset_of!(
hdr_metadata_infoframe,
min_display_mastering_luminance
) - 20usize];
["Offset of field: hdr_metadata_infoframe::max_cll"]
[::core::mem::offset_of!(hdr_metadata_infoframe, max_cll) - 22usize];
["Offset of field: hdr_metadata_infoframe::max_fall"]
[::core::mem::offset_of!(hdr_metadata_infoframe, max_fall) - 24usize];
};
#[doc = " struct hdr_output_metadata - HDR output metadata\n\n Metadata Information to be passed from userspace"]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct hdr_output_metadata {
#[doc = " @metadata_type: Static_Metadata_Descriptor_ID."]
pub metadata_type: __u32,
pub __bindgen_anon_1: hdr_output_metadata__bindgen_ty_1,
}
#[doc = " @hdmi_metadata_type1: HDR Metadata Infoframe."]
#[repr(C)]
#[derive(Copy, Clone)]
pub union hdr_output_metadata__bindgen_ty_1 {
pub hdmi_metadata_type1: hdr_metadata_infoframe,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of hdr_output_metadata__bindgen_ty_1"]
[::core::mem::size_of::<hdr_output_metadata__bindgen_ty_1>() - 26usize];
["Alignment of hdr_output_metadata__bindgen_ty_1"]
[::core::mem::align_of::<hdr_output_metadata__bindgen_ty_1>() - 2usize];
["Offset of field: hdr_output_metadata__bindgen_ty_1::hdmi_metadata_type1"]
[::core::mem::offset_of!(hdr_output_metadata__bindgen_ty_1, hdmi_metadata_type1) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of hdr_output_metadata"][::core::mem::size_of::<hdr_output_metadata>() - 32usize];
["Alignment of hdr_output_metadata"][::core::mem::align_of::<hdr_output_metadata>() - 4usize];
["Offset of field: hdr_output_metadata::metadata_type"]
[::core::mem::offset_of!(hdr_output_metadata, metadata_type) - 0usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_mode_crtc_page_flip {
pub crtc_id: __u32,
pub fb_id: __u32,
pub flags: __u32,
pub reserved: __u32,
pub user_data: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_mode_crtc_page_flip"]
[::core::mem::size_of::<drm_mode_crtc_page_flip>() - 24usize];
["Alignment of drm_mode_crtc_page_flip"]
[::core::mem::align_of::<drm_mode_crtc_page_flip>() - 8usize];
["Offset of field: drm_mode_crtc_page_flip::crtc_id"]
[::core::mem::offset_of!(drm_mode_crtc_page_flip, crtc_id) - 0usize];
["Offset of field: drm_mode_crtc_page_flip::fb_id"]
[::core::mem::offset_of!(drm_mode_crtc_page_flip, fb_id) - 4usize];
["Offset of field: drm_mode_crtc_page_flip::flags"]
[::core::mem::offset_of!(drm_mode_crtc_page_flip, flags) - 8usize];
["Offset of field: drm_mode_crtc_page_flip::reserved"]
[::core::mem::offset_of!(drm_mode_crtc_page_flip, reserved) - 12usize];
["Offset of field: drm_mode_crtc_page_flip::user_data"]
[::core::mem::offset_of!(drm_mode_crtc_page_flip, user_data) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_mode_crtc_page_flip_target {
pub crtc_id: __u32,
pub fb_id: __u32,
pub flags: __u32,
pub sequence: __u32,
pub user_data: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_mode_crtc_page_flip_target"]
[::core::mem::size_of::<drm_mode_crtc_page_flip_target>() - 24usize];
["Alignment of drm_mode_crtc_page_flip_target"]
[::core::mem::align_of::<drm_mode_crtc_page_flip_target>() - 8usize];
["Offset of field: drm_mode_crtc_page_flip_target::crtc_id"]
[::core::mem::offset_of!(drm_mode_crtc_page_flip_target, crtc_id) - 0usize];
["Offset of field: drm_mode_crtc_page_flip_target::fb_id"]
[::core::mem::offset_of!(drm_mode_crtc_page_flip_target, fb_id) - 4usize];
["Offset of field: drm_mode_crtc_page_flip_target::flags"]
[::core::mem::offset_of!(drm_mode_crtc_page_flip_target, flags) - 8usize];
["Offset of field: drm_mode_crtc_page_flip_target::sequence"]
[::core::mem::offset_of!(drm_mode_crtc_page_flip_target, sequence) - 12usize];
["Offset of field: drm_mode_crtc_page_flip_target::user_data"]
[::core::mem::offset_of!(drm_mode_crtc_page_flip_target, user_data) - 16usize];
};
#[doc = " struct drm_mode_create_dumb - Create a KMS dumb buffer for scanout.\n @height: buffer height in pixels\n @width: buffer width in pixels\n @bpp: bits per pixel\n @flags: must be zero\n @handle: buffer object handle\n @pitch: number of bytes between two consecutive lines\n @size: size of the whole buffer in bytes\n\n User-space fills @height, @width, @bpp and @flags. If the IOCTL succeeds,\n the kernel fills @handle, @pitch and @size."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_mode_create_dumb {
pub height: __u32,
pub width: __u32,
pub bpp: __u32,
pub flags: __u32,
pub handle: __u32,
pub pitch: __u32,
pub size: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_mode_create_dumb"][::core::mem::size_of::<drm_mode_create_dumb>() - 32usize];
["Alignment of drm_mode_create_dumb"][::core::mem::align_of::<drm_mode_create_dumb>() - 8usize];
["Offset of field: drm_mode_create_dumb::height"]
[::core::mem::offset_of!(drm_mode_create_dumb, height) - 0usize];
["Offset of field: drm_mode_create_dumb::width"]
[::core::mem::offset_of!(drm_mode_create_dumb, width) - 4usize];
["Offset of field: drm_mode_create_dumb::bpp"]
[::core::mem::offset_of!(drm_mode_create_dumb, bpp) - 8usize];
["Offset of field: drm_mode_create_dumb::flags"]
[::core::mem::offset_of!(drm_mode_create_dumb, flags) - 12usize];
["Offset of field: drm_mode_create_dumb::handle"]
[::core::mem::offset_of!(drm_mode_create_dumb, handle) - 16usize];
["Offset of field: drm_mode_create_dumb::pitch"]
[::core::mem::offset_of!(drm_mode_create_dumb, pitch) - 20usize];
["Offset of field: drm_mode_create_dumb::size"]
[::core::mem::offset_of!(drm_mode_create_dumb, size) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_mode_map_dumb {
#[doc = " Handle for the object being mapped."]
pub handle: __u32,
pub pad: __u32,
#[doc = " Fake offset to use for subsequent mmap call\n\n This is a fixed-size type for 32/64 compatibility."]
pub offset: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_mode_map_dumb"][::core::mem::size_of::<drm_mode_map_dumb>() - 16usize];
["Alignment of drm_mode_map_dumb"][::core::mem::align_of::<drm_mode_map_dumb>() - 8usize];
["Offset of field: drm_mode_map_dumb::handle"]
[::core::mem::offset_of!(drm_mode_map_dumb, handle) - 0usize];
["Offset of field: drm_mode_map_dumb::pad"]
[::core::mem::offset_of!(drm_mode_map_dumb, pad) - 4usize];
["Offset of field: drm_mode_map_dumb::offset"]
[::core::mem::offset_of!(drm_mode_map_dumb, offset) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_mode_destroy_dumb {
pub handle: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_mode_destroy_dumb"][::core::mem::size_of::<drm_mode_destroy_dumb>() - 4usize];
["Alignment of drm_mode_destroy_dumb"]
[::core::mem::align_of::<drm_mode_destroy_dumb>() - 4usize];
["Offset of field: drm_mode_destroy_dumb::handle"]
[::core::mem::offset_of!(drm_mode_destroy_dumb, handle) - 0usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_mode_atomic {
pub flags: __u32,
pub count_objs: __u32,
pub objs_ptr: __u64,
pub count_props_ptr: __u64,
pub props_ptr: __u64,
pub prop_values_ptr: __u64,
pub reserved: __u64,
pub user_data: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_mode_atomic"][::core::mem::size_of::<drm_mode_atomic>() - 56usize];
["Alignment of drm_mode_atomic"][::core::mem::align_of::<drm_mode_atomic>() - 8usize];
["Offset of field: drm_mode_atomic::flags"]
[::core::mem::offset_of!(drm_mode_atomic, flags) - 0usize];
["Offset of field: drm_mode_atomic::count_objs"]
[::core::mem::offset_of!(drm_mode_atomic, count_objs) - 4usize];
["Offset of field: drm_mode_atomic::objs_ptr"]
[::core::mem::offset_of!(drm_mode_atomic, objs_ptr) - 8usize];
["Offset of field: drm_mode_atomic::count_props_ptr"]
[::core::mem::offset_of!(drm_mode_atomic, count_props_ptr) - 16usize];
["Offset of field: drm_mode_atomic::props_ptr"]
[::core::mem::offset_of!(drm_mode_atomic, props_ptr) - 24usize];
["Offset of field: drm_mode_atomic::prop_values_ptr"]
[::core::mem::offset_of!(drm_mode_atomic, prop_values_ptr) - 32usize];
["Offset of field: drm_mode_atomic::reserved"]
[::core::mem::offset_of!(drm_mode_atomic, reserved) - 40usize];
["Offset of field: drm_mode_atomic::user_data"]
[::core::mem::offset_of!(drm_mode_atomic, user_data) - 48usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_format_modifier_blob {
pub version: __u32,
pub flags: __u32,
pub count_formats: __u32,
pub formats_offset: __u32,
pub count_modifiers: __u32,
pub modifiers_offset: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_format_modifier_blob"]
[::core::mem::size_of::<drm_format_modifier_blob>() - 24usize];
["Alignment of drm_format_modifier_blob"]
[::core::mem::align_of::<drm_format_modifier_blob>() - 4usize];
["Offset of field: drm_format_modifier_blob::version"]
[::core::mem::offset_of!(drm_format_modifier_blob, version) - 0usize];
["Offset of field: drm_format_modifier_blob::flags"]
[::core::mem::offset_of!(drm_format_modifier_blob, flags) - 4usize];
["Offset of field: drm_format_modifier_blob::count_formats"]
[::core::mem::offset_of!(drm_format_modifier_blob, count_formats) - 8usize];
["Offset of field: drm_format_modifier_blob::formats_offset"]
[::core::mem::offset_of!(drm_format_modifier_blob, formats_offset) - 12usize];
["Offset of field: drm_format_modifier_blob::count_modifiers"]
[::core::mem::offset_of!(drm_format_modifier_blob, count_modifiers) - 16usize];
["Offset of field: drm_format_modifier_blob::modifiers_offset"]
[::core::mem::offset_of!(drm_format_modifier_blob, modifiers_offset) - 20usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_format_modifier {
pub formats: __u64,
pub offset: __u32,
pub pad: __u32,
pub modifier: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_format_modifier"][::core::mem::size_of::<drm_format_modifier>() - 24usize];
["Alignment of drm_format_modifier"][::core::mem::align_of::<drm_format_modifier>() - 8usize];
["Offset of field: drm_format_modifier::formats"]
[::core::mem::offset_of!(drm_format_modifier, formats) - 0usize];
["Offset of field: drm_format_modifier::offset"]
[::core::mem::offset_of!(drm_format_modifier, offset) - 8usize];
["Offset of field: drm_format_modifier::pad"]
[::core::mem::offset_of!(drm_format_modifier, pad) - 12usize];
["Offset of field: drm_format_modifier::modifier"]
[::core::mem::offset_of!(drm_format_modifier, modifier) - 16usize];
};
#[doc = " struct drm_mode_create_blob - Create New blob property\n\n Create a new 'blob' data property, copying length bytes from data pointer,\n and returning new blob ID."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_mode_create_blob {
#[doc = " @data: Pointer to data to copy."]
pub data: __u64,
#[doc = " @length: Length of data to copy."]
pub length: __u32,
#[doc = " @blob_id: Return: new property ID."]
pub blob_id: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_mode_create_blob"][::core::mem::size_of::<drm_mode_create_blob>() - 16usize];
["Alignment of drm_mode_create_blob"][::core::mem::align_of::<drm_mode_create_blob>() - 8usize];
["Offset of field: drm_mode_create_blob::data"]
[::core::mem::offset_of!(drm_mode_create_blob, data) - 0usize];
["Offset of field: drm_mode_create_blob::length"]
[::core::mem::offset_of!(drm_mode_create_blob, length) - 8usize];
["Offset of field: drm_mode_create_blob::blob_id"]
[::core::mem::offset_of!(drm_mode_create_blob, blob_id) - 12usize];
};
#[doc = " struct drm_mode_destroy_blob - Destroy user blob\n @blob_id: blob_id to destroy\n\n Destroy a user-created blob property.\n\n User-space can release blobs as soon as they do not need to refer to them by\n their blob object ID. For instance, if you are using a MODE_ID blob in an\n atomic commit and you will not make another commit re-using the same ID, you\n can destroy the blob as soon as the commit has been issued, without waiting\n for it to complete."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_mode_destroy_blob {
pub blob_id: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_mode_destroy_blob"][::core::mem::size_of::<drm_mode_destroy_blob>() - 4usize];
["Alignment of drm_mode_destroy_blob"]
[::core::mem::align_of::<drm_mode_destroy_blob>() - 4usize];
["Offset of field: drm_mode_destroy_blob::blob_id"]
[::core::mem::offset_of!(drm_mode_destroy_blob, blob_id) - 0usize];
};
#[doc = " struct drm_mode_create_lease - Create lease\n\n Lease mode resources, creating another drm_master.\n\n The @object_ids array must reference at least one CRTC, one connector and\n one plane if &DRM_CLIENT_CAP_UNIVERSAL_PLANES is enabled. Alternatively,\n the lease can be completely empty."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_mode_create_lease {
#[doc = " @object_ids: Pointer to array of object ids (__u32)"]
pub object_ids: __u64,
#[doc = " @object_count: Number of object ids"]
pub object_count: __u32,
#[doc = " @flags: flags for new FD (O_CLOEXEC, etc)"]
pub flags: __u32,
#[doc = " @lessee_id: Return: unique identifier for lessee."]
pub lessee_id: __u32,
#[doc = " @fd: Return: file descriptor to new drm_master file"]
pub fd: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_mode_create_lease"][::core::mem::size_of::<drm_mode_create_lease>() - 24usize];
["Alignment of drm_mode_create_lease"]
[::core::mem::align_of::<drm_mode_create_lease>() - 8usize];
["Offset of field: drm_mode_create_lease::object_ids"]
[::core::mem::offset_of!(drm_mode_create_lease, object_ids) - 0usize];
["Offset of field: drm_mode_create_lease::object_count"]
[::core::mem::offset_of!(drm_mode_create_lease, object_count) - 8usize];
["Offset of field: drm_mode_create_lease::flags"]
[::core::mem::offset_of!(drm_mode_create_lease, flags) - 12usize];
["Offset of field: drm_mode_create_lease::lessee_id"]
[::core::mem::offset_of!(drm_mode_create_lease, lessee_id) - 16usize];
["Offset of field: drm_mode_create_lease::fd"]
[::core::mem::offset_of!(drm_mode_create_lease, fd) - 20usize];
};
#[doc = " struct drm_mode_list_lessees - List lessees\n\n List lesses from a drm_master."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_mode_list_lessees {
#[doc = " @count_lessees: Number of lessees.\n\n On input, provides length of the array.\n On output, provides total number. No\n more than the input number will be written\n back, so two calls can be used to get\n the size and then the data."]
pub count_lessees: __u32,
#[doc = " @pad: Padding."]
pub pad: __u32,
#[doc = " @lessees_ptr: Pointer to lessees.\n\n Pointer to __u64 array of lessee ids"]
pub lessees_ptr: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_mode_list_lessees"][::core::mem::size_of::<drm_mode_list_lessees>() - 16usize];
["Alignment of drm_mode_list_lessees"]
[::core::mem::align_of::<drm_mode_list_lessees>() - 8usize];
["Offset of field: drm_mode_list_lessees::count_lessees"]
[::core::mem::offset_of!(drm_mode_list_lessees, count_lessees) - 0usize];
["Offset of field: drm_mode_list_lessees::pad"]
[::core::mem::offset_of!(drm_mode_list_lessees, pad) - 4usize];
["Offset of field: drm_mode_list_lessees::lessees_ptr"]
[::core::mem::offset_of!(drm_mode_list_lessees, lessees_ptr) - 8usize];
};
#[doc = " struct drm_mode_get_lease - Get Lease\n\n Get leased objects."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_mode_get_lease {
#[doc = " @count_objects: Number of leased objects.\n\n On input, provides length of the array.\n On output, provides total number. No\n more than the input number will be written\n back, so two calls can be used to get\n the size and then the data."]
pub count_objects: __u32,
#[doc = " @pad: Padding."]
pub pad: __u32,
#[doc = " @objects_ptr: Pointer to objects.\n\n Pointer to __u32 array of object ids."]
pub objects_ptr: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_mode_get_lease"][::core::mem::size_of::<drm_mode_get_lease>() - 16usize];
["Alignment of drm_mode_get_lease"][::core::mem::align_of::<drm_mode_get_lease>() - 8usize];
["Offset of field: drm_mode_get_lease::count_objects"]
[::core::mem::offset_of!(drm_mode_get_lease, count_objects) - 0usize];
["Offset of field: drm_mode_get_lease::pad"]
[::core::mem::offset_of!(drm_mode_get_lease, pad) - 4usize];
["Offset of field: drm_mode_get_lease::objects_ptr"]
[::core::mem::offset_of!(drm_mode_get_lease, objects_ptr) - 8usize];
};
#[doc = " struct drm_mode_revoke_lease - Revoke lease"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_mode_revoke_lease {
#[doc = " @lessee_id: Unique ID of lessee"]
pub lessee_id: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_mode_revoke_lease"][::core::mem::size_of::<drm_mode_revoke_lease>() - 4usize];
["Alignment of drm_mode_revoke_lease"]
[::core::mem::align_of::<drm_mode_revoke_lease>() - 4usize];
["Offset of field: drm_mode_revoke_lease::lessee_id"]
[::core::mem::offset_of!(drm_mode_revoke_lease, lessee_id) - 0usize];
};
#[doc = " struct drm_mode_rect - Two dimensional rectangle.\n @x1: Horizontal starting coordinate (inclusive).\n @y1: Vertical starting coordinate (inclusive).\n @x2: Horizontal ending coordinate (exclusive).\n @y2: Vertical ending coordinate (exclusive).\n\n With drm subsystem using struct drm_rect to manage rectangular area this\n export it to user-space.\n\n Currently used by drm_mode_atomic blob property FB_DAMAGE_CLIPS."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_mode_rect {
pub x1: __s32,
pub y1: __s32,
pub x2: __s32,
pub y2: __s32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_mode_rect"][::core::mem::size_of::<drm_mode_rect>() - 16usize];
["Alignment of drm_mode_rect"][::core::mem::align_of::<drm_mode_rect>() - 4usize];
["Offset of field: drm_mode_rect::x1"][::core::mem::offset_of!(drm_mode_rect, x1) - 0usize];
["Offset of field: drm_mode_rect::y1"][::core::mem::offset_of!(drm_mode_rect, y1) - 4usize];
["Offset of field: drm_mode_rect::x2"][::core::mem::offset_of!(drm_mode_rect, x2) - 8usize];
["Offset of field: drm_mode_rect::y2"][::core::mem::offset_of!(drm_mode_rect, y2) - 12usize];
};
#[doc = " struct drm_mode_closefb\n @fb_id: Framebuffer ID.\n @pad: Must be zero."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_mode_closefb {
pub fb_id: __u32,
pub pad: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_mode_closefb"][::core::mem::size_of::<drm_mode_closefb>() - 8usize];
["Alignment of drm_mode_closefb"][::core::mem::align_of::<drm_mode_closefb>() - 4usize];
["Offset of field: drm_mode_closefb::fb_id"]
[::core::mem::offset_of!(drm_mode_closefb, fb_id) - 0usize];
["Offset of field: drm_mode_closefb::pad"]
[::core::mem::offset_of!(drm_mode_closefb, pad) - 4usize];
};
#[doc = " struct drm_event - Header for DRM events\n @type: event type.\n @length: total number of payload bytes (including header).\n\n This struct is a header for events written back to user-space on the DRM FD.\n A read on the DRM FD will always only return complete events: e.g. if the\n read buffer is 100 bytes large and there are two 64 byte events pending,\n only one will be returned.\n\n Event types 0 - 0x7fffffff are generic DRM events, 0x80000000 and\n up are chipset specific. Generic DRM events include &DRM_EVENT_VBLANK,\n &DRM_EVENT_FLIP_COMPLETE and &DRM_EVENT_CRTC_SEQUENCE."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_event {
pub type_: __u32,
pub length: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_event"][::core::mem::size_of::<drm_event>() - 8usize];
["Alignment of drm_event"][::core::mem::align_of::<drm_event>() - 4usize];
["Offset of field: drm_event::type_"][::core::mem::offset_of!(drm_event, type_) - 0usize];
["Offset of field: drm_event::length"][::core::mem::offset_of!(drm_event, length) - 4usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_event_vblank {
pub base: drm_event,
pub user_data: __u64,
pub tv_sec: __u32,
pub tv_usec: __u32,
pub sequence: __u32,
pub crtc_id: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_event_vblank"][::core::mem::size_of::<drm_event_vblank>() - 32usize];
["Alignment of drm_event_vblank"][::core::mem::align_of::<drm_event_vblank>() - 8usize];
["Offset of field: drm_event_vblank::base"]
[::core::mem::offset_of!(drm_event_vblank, base) - 0usize];
["Offset of field: drm_event_vblank::user_data"]
[::core::mem::offset_of!(drm_event_vblank, user_data) - 8usize];
["Offset of field: drm_event_vblank::tv_sec"]
[::core::mem::offset_of!(drm_event_vblank, tv_sec) - 16usize];
["Offset of field: drm_event_vblank::tv_usec"]
[::core::mem::offset_of!(drm_event_vblank, tv_usec) - 20usize];
["Offset of field: drm_event_vblank::sequence"]
[::core::mem::offset_of!(drm_event_vblank, sequence) - 24usize];
["Offset of field: drm_event_vblank::crtc_id"]
[::core::mem::offset_of!(drm_event_vblank, crtc_id) - 28usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_event_crtc_sequence {
pub base: drm_event,
pub user_data: __u64,
pub time_ns: __s64,
pub sequence: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of drm_event_crtc_sequence"]
[::core::mem::size_of::<drm_event_crtc_sequence>() - 32usize];
["Alignment of drm_event_crtc_sequence"]
[::core::mem::align_of::<drm_event_crtc_sequence>() - 8usize];
["Offset of field: drm_event_crtc_sequence::base"]
[::core::mem::offset_of!(drm_event_crtc_sequence, base) - 0usize];
["Offset of field: drm_event_crtc_sequence::user_data"]
[::core::mem::offset_of!(drm_event_crtc_sequence, user_data) - 8usize];
["Offset of field: drm_event_crtc_sequence::time_ns"]
[::core::mem::offset_of!(drm_event_crtc_sequence, time_ns) - 16usize];
["Offset of field: drm_event_crtc_sequence::sequence"]
[::core::mem::offset_of!(drm_event_crtc_sequence, sequence) - 24usize];
};
pub type drm_clip_rect_t = drm_clip_rect;
pub type drm_drawable_info_t = drm_drawable_info;
pub type drm_tex_region_t = drm_tex_region;
pub type drm_hw_lock_t = drm_hw_lock;
pub type drm_version_t = drm_version;
pub type drm_unique_t = drm_unique;
pub type drm_list_t = drm_list;
pub type drm_block_t = drm_block;
pub type drm_control_t = drm_control;
pub use self::drm_map_flags as drm_map_flags_t;
pub use self::drm_map_type as drm_map_type_t;
pub type drm_ctx_priv_map_t = drm_ctx_priv_map;
pub type drm_map_t = drm_map;
pub type drm_client_t = drm_client;
pub use self::drm_stat_type as drm_stat_type_t;
pub type drm_stats_t = drm_stats;
pub use self::drm_lock_flags as drm_lock_flags_t;
pub type drm_lock_t = drm_lock;
pub use self::drm_dma_flags as drm_dma_flags_t;
pub type drm_buf_desc_t = drm_buf_desc;
pub type drm_buf_info_t = drm_buf_info;
pub type drm_buf_free_t = drm_buf_free;
pub type drm_buf_pub_t = drm_buf_pub;
pub type drm_buf_map_t = drm_buf_map;
pub type drm_dma_t = drm_dma;
pub type drm_wait_vblank_t = drm_wait_vblank;
pub type drm_agp_mode_t = drm_agp_mode;
pub use self::drm_ctx_flags as drm_ctx_flags_t;
pub type drm_ctx_t = drm_ctx;
pub type drm_ctx_res_t = drm_ctx_res;
pub type drm_draw_t = drm_draw;
pub type drm_update_draw_t = drm_update_draw;
pub type drm_auth_t = drm_auth;
pub type drm_irq_busid_t = drm_irq_busid;
pub use self::drm_vblank_seq_type as drm_vblank_seq_type_t;
pub type drm_agp_buffer_t = drm_agp_buffer;
pub type drm_agp_binding_t = drm_agp_binding;
pub type drm_agp_info_t = drm_agp_info;
pub type drm_scatter_gather_t = drm_scatter_gather;
pub type drm_set_version_t = drm_set_version;