/* automatically generated by rust-bindgen 0.72.1 */

#[repr(C)]
#[derive(Default)]
pub struct __IncompleteArrayField<T>(::std::marker::PhantomData<T>, [T; 0]);
impl<T> __IncompleteArrayField<T> {
    #[inline]
    pub const fn new() -> Self {
        __IncompleteArrayField(::std::marker::PhantomData, [])
    }
    #[inline]
    pub fn as_ptr(&self) -> *const T {
        self as *const _ as *const T
    }
    #[inline]
    pub fn as_mut_ptr(&mut self) -> *mut T {
        self as *mut _ as *mut T
    }
    #[inline]
    pub unsafe fn as_slice(&self, len: usize) -> &[T] {
        ::std::slice::from_raw_parts(self.as_ptr(), len)
    }
    #[inline]
    pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] {
        ::std::slice::from_raw_parts_mut(self.as_mut_ptr(), len)
    }
}
impl<T> ::std::fmt::Debug for __IncompleteArrayField<T> {
    fn fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        fmt.write_str("__IncompleteArrayField")
    }
}
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_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_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_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 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 const DRM_I915_INIT: u32 = 0;
pub const DRM_I915_FLUSH: u32 = 1;
pub const DRM_I915_FLIP: u32 = 2;
pub const DRM_I915_BATCHBUFFER: u32 = 3;
pub const DRM_I915_IRQ_EMIT: u32 = 4;
pub const DRM_I915_IRQ_WAIT: u32 = 5;
pub const DRM_I915_GETPARAM: u32 = 6;
pub const DRM_I915_SETPARAM: u32 = 7;
pub const DRM_I915_ALLOC: u32 = 8;
pub const DRM_I915_FREE: u32 = 9;
pub const DRM_I915_INIT_HEAP: u32 = 10;
pub const DRM_I915_CMDBUFFER: u32 = 11;
pub const DRM_I915_DESTROY_HEAP: u32 = 12;
pub const DRM_I915_SET_VBLANK_PIPE: u32 = 13;
pub const DRM_I915_GET_VBLANK_PIPE: u32 = 14;
pub const DRM_I915_VBLANK_SWAP: u32 = 15;
pub const DRM_I915_HWS_ADDR: u32 = 17;
pub const DRM_I915_GEM_INIT: u32 = 19;
pub const DRM_I915_GEM_EXECBUFFER: u32 = 20;
pub const DRM_I915_GEM_PIN: u32 = 21;
pub const DRM_I915_GEM_UNPIN: u32 = 22;
pub const DRM_I915_GEM_BUSY: u32 = 23;
pub const DRM_I915_GEM_THROTTLE: u32 = 24;
pub const DRM_I915_GEM_ENTERVT: u32 = 25;
pub const DRM_I915_GEM_LEAVEVT: u32 = 26;
pub const DRM_I915_GEM_CREATE: u32 = 27;
pub const DRM_I915_GEM_PREAD: u32 = 28;
pub const DRM_I915_GEM_PWRITE: u32 = 29;
pub const DRM_I915_GEM_MMAP: u32 = 30;
pub const DRM_I915_GEM_SET_DOMAIN: u32 = 31;
pub const DRM_I915_GEM_SW_FINISH: u32 = 32;
pub const DRM_I915_GEM_SET_TILING: u32 = 33;
pub const DRM_I915_GEM_GET_TILING: u32 = 34;
pub const DRM_I915_GEM_GET_APERTURE: u32 = 35;
pub const DRM_I915_GEM_MMAP_GTT: u32 = 36;
pub const DRM_I915_GET_PIPE_FROM_CRTC_ID: u32 = 37;
pub const DRM_I915_GEM_MADVISE: u32 = 38;
pub const DRM_I915_OVERLAY_PUT_IMAGE: u32 = 39;
pub const DRM_I915_OVERLAY_ATTRS: u32 = 40;
pub const DRM_I915_GEM_EXECBUFFER2: u32 = 41;
pub const DRM_I915_GEM_EXECBUFFER2_WR: u32 = 41;
pub const DRM_I915_GET_SPRITE_COLORKEY: u32 = 42;
pub const DRM_I915_SET_SPRITE_COLORKEY: u32 = 43;
pub const DRM_I915_GEM_WAIT: u32 = 44;
pub const DRM_I915_GEM_CONTEXT_CREATE: u32 = 45;
pub const DRM_I915_GEM_CONTEXT_DESTROY: u32 = 46;
pub const DRM_I915_GEM_SET_CACHING: u32 = 47;
pub const DRM_I915_GEM_GET_CACHING: u32 = 48;
pub const DRM_I915_REG_READ: u32 = 49;
pub const DRM_I915_GET_RESET_STATS: u32 = 50;
pub const DRM_I915_GEM_USERPTR: u32 = 51;
pub const DRM_I915_GEM_CONTEXT_GETPARAM: u32 = 52;
pub const DRM_I915_GEM_CONTEXT_SETPARAM: u32 = 53;
pub const DRM_I915_PERF_OPEN: u32 = 54;
pub const DRM_I915_PERF_ADD_CONFIG: u32 = 55;
pub const DRM_I915_PERF_REMOVE_CONFIG: u32 = 56;
pub const DRM_I915_QUERY: u32 = 57;
pub const DRM_I915_GEM_VM_CREATE: u32 = 58;
pub const DRM_I915_GEM_VM_DESTROY: u32 = 59;
pub const DRM_I915_GEM_CREATE_EXT: u32 = 60;
pub const DRM_I915_VBLANK_PIPE_A: u32 = 1;
pub const DRM_I915_VBLANK_PIPE_B: u32 = 2;
pub const DRM_I915_GEM_EXECBUFFER_EXT_TIMELINE_FENCES: u32 = 0;
pub const DRM_I915_QUERY_TOPOLOGY_INFO: u32 = 1;
pub const DRM_I915_QUERY_ENGINE_INFO: u32 = 2;
pub const DRM_I915_QUERY_PERF_CONFIG: u32 = 3;
pub const DRM_I915_QUERY_MEMORY_REGIONS: u32 = 4;
pub const DRM_I915_QUERY_HWCONFIG_BLOB: u32 = 5;
pub const DRM_I915_QUERY_GEOMETRY_SUBSLICES: u32 = 6;
pub const DRM_I915_QUERY_GUC_SUBMISSION_VERSION: u32 = 7;
pub const DRM_I915_QUERY_PERF_CONFIG_LIST: u32 = 1;
pub const DRM_I915_QUERY_PERF_CONFIG_DATA_FOR_UUID: u32 = 2;
pub const DRM_I915_QUERY_PERF_CONFIG_DATA_FOR_ID: u32 = 3;
pub const DRM_XE_DEVICE_QUERY: u32 = 0;
pub const DRM_XE_GEM_CREATE: u32 = 1;
pub const DRM_XE_GEM_MMAP_OFFSET: u32 = 2;
pub const DRM_XE_VM_CREATE: u32 = 3;
pub const DRM_XE_VM_DESTROY: u32 = 4;
pub const DRM_XE_VM_BIND: u32 = 5;
pub const DRM_XE_EXEC_QUEUE_CREATE: u32 = 6;
pub const DRM_XE_EXEC_QUEUE_DESTROY: u32 = 7;
pub const DRM_XE_EXEC_QUEUE_GET_PROPERTY: u32 = 8;
pub const DRM_XE_EXEC: u32 = 9;
pub const DRM_XE_WAIT_USER_FENCE: u32 = 10;
pub const DRM_XE_OBSERVATION: u32 = 11;
pub const DRM_XE_ENGINE_CLASS_RENDER: u32 = 0;
pub const DRM_XE_ENGINE_CLASS_COPY: u32 = 1;
pub const DRM_XE_ENGINE_CLASS_VIDEO_DECODE: u32 = 2;
pub const DRM_XE_ENGINE_CLASS_VIDEO_ENHANCE: u32 = 3;
pub const DRM_XE_ENGINE_CLASS_COMPUTE: u32 = 4;
pub const DRM_XE_ENGINE_CLASS_VM_BIND: u32 = 5;
pub const DRM_XE_QUERY_CONFIG_REV_AND_DEVICE_ID: u32 = 0;
pub const DRM_XE_QUERY_CONFIG_FLAGS: u32 = 1;
pub const DRM_XE_QUERY_CONFIG_FLAG_HAS_VRAM: u32 = 1;
pub const DRM_XE_QUERY_CONFIG_MIN_ALIGNMENT: u32 = 2;
pub const DRM_XE_QUERY_CONFIG_VA_BITS: u32 = 3;
pub const DRM_XE_QUERY_CONFIG_MAX_EXEC_QUEUE_PRIORITY: u32 = 4;
pub const DRM_XE_QUERY_GT_TYPE_MAIN: u32 = 0;
pub const DRM_XE_QUERY_GT_TYPE_MEDIA: u32 = 1;
pub const DRM_XE_TOPO_DSS_GEOMETRY: u32 = 1;
pub const DRM_XE_TOPO_DSS_COMPUTE: u32 = 2;
pub const DRM_XE_TOPO_L3_BANK: u32 = 3;
pub const DRM_XE_TOPO_EU_PER_DSS: u32 = 4;
pub const DRM_XE_TOPO_SIMD16_EU_PER_DSS: u32 = 5;
pub const DRM_XE_DEVICE_QUERY_ENGINES: u32 = 0;
pub const DRM_XE_DEVICE_QUERY_MEM_REGIONS: u32 = 1;
pub const DRM_XE_DEVICE_QUERY_CONFIG: u32 = 2;
pub const DRM_XE_DEVICE_QUERY_GT_LIST: u32 = 3;
pub const DRM_XE_DEVICE_QUERY_HWCONFIG: u32 = 4;
pub const DRM_XE_DEVICE_QUERY_GT_TOPOLOGY: u32 = 5;
pub const DRM_XE_DEVICE_QUERY_ENGINE_CYCLES: u32 = 6;
pub const DRM_XE_DEVICE_QUERY_UC_FW_VERSION: u32 = 7;
pub const DRM_XE_DEVICE_QUERY_OA_UNITS: u32 = 8;
pub const DRM_XE_GEM_CREATE_FLAG_DEFER_BACKING: u32 = 1;
pub const DRM_XE_GEM_CREATE_FLAG_SCANOUT: u32 = 2;
pub const DRM_XE_GEM_CREATE_FLAG_NEEDS_VISIBLE_VRAM: u32 = 4;
pub const DRM_XE_GEM_CPU_CACHING_WB: u32 = 1;
pub const DRM_XE_GEM_CPU_CACHING_WC: u32 = 2;
pub const DRM_XE_VM_CREATE_FLAG_SCRATCH_PAGE: u32 = 1;
pub const DRM_XE_VM_CREATE_FLAG_LR_MODE: u32 = 2;
pub const DRM_XE_VM_CREATE_FLAG_FAULT_MODE: u32 = 4;
pub const DRM_XE_VM_BIND_OP_MAP: u32 = 0;
pub const DRM_XE_VM_BIND_OP_UNMAP: u32 = 1;
pub const DRM_XE_VM_BIND_OP_MAP_USERPTR: u32 = 2;
pub const DRM_XE_VM_BIND_OP_UNMAP_ALL: u32 = 3;
pub const DRM_XE_VM_BIND_OP_PREFETCH: u32 = 4;
pub const DRM_XE_VM_BIND_FLAG_READONLY: u32 = 1;
pub const DRM_XE_VM_BIND_FLAG_IMMEDIATE: u32 = 2;
pub const DRM_XE_VM_BIND_FLAG_NULL: u32 = 4;
pub const DRM_XE_VM_BIND_FLAG_DUMPABLE: u32 = 8;
pub const DRM_XE_EXEC_QUEUE_EXTENSION_SET_PROPERTY: u32 = 0;
pub const DRM_XE_EXEC_QUEUE_SET_PROPERTY_PRIORITY: u32 = 0;
pub const DRM_XE_EXEC_QUEUE_SET_PROPERTY_TIMESLICE: u32 = 1;
pub const DRM_XE_EXEC_QUEUE_GET_PROPERTY_BAN: u32 = 0;
pub const DRM_XE_SYNC_TYPE_SYNCOBJ: u32 = 0;
pub const DRM_XE_SYNC_TYPE_TIMELINE_SYNCOBJ: u32 = 1;
pub const DRM_XE_SYNC_TYPE_USER_FENCE: u32 = 2;
pub const DRM_XE_SYNC_FLAG_SIGNAL: u32 = 1;
pub const DRM_XE_UFENCE_WAIT_OP_EQ: u32 = 0;
pub const DRM_XE_UFENCE_WAIT_OP_NEQ: u32 = 1;
pub const DRM_XE_UFENCE_WAIT_OP_GT: u32 = 2;
pub const DRM_XE_UFENCE_WAIT_OP_GTE: u32 = 3;
pub const DRM_XE_UFENCE_WAIT_OP_LT: u32 = 4;
pub const DRM_XE_UFENCE_WAIT_OP_LTE: u32 = 5;
pub const DRM_XE_UFENCE_WAIT_FLAG_ABSTIME: u32 = 1;
pub const DRM_XE_OA_CAPS_BASE: u32 = 1;
pub const DRM_XE_OA_EXTENSION_SET_PROPERTY: u32 = 0;
pub const DRM_XE_OA_FORMAT_MASK_FMT_TYPE: u32 = 255;
pub const DRM_XE_OA_FORMAT_MASK_COUNTER_SEL: u32 = 65280;
pub const DRM_XE_OA_FORMAT_MASK_COUNTER_SIZE: u32 = 16711680;
pub const DRM_XE_OA_FORMAT_MASK_BC_REPORT: u32 = 4278190080;
pub const DRM_XE_OASTATUS_MMIO_TRG_Q_FULL: u32 = 8;
pub const DRM_XE_OASTATUS_COUNTER_OVERFLOW: u32 = 4;
pub const DRM_XE_OASTATUS_BUFFER_OVERFLOW: u32 = 2;
pub const DRM_XE_OASTATUS_REPORT_LOST: u32 = 1;
pub type __u8 = ::std::os::raw::c_uchar;
pub type __u16 = ::std::os::raw::c_ushort;
pub type __s32 = ::std::os::raw::c_int;
pub type __u32 = ::std::os::raw::c_uint;
pub type __s64 = ::std::os::raw::c_longlong;
pub type __u64 = ::std::os::raw::c_ulonglong;
pub type __kernel_ulong_t = ::std::os::raw::c_ulong;
pub type __kernel_size_t = __kernel_ulong_t;
pub type drm_handle_t = ::std::os::raw::c_uint;
pub type drm_context_t = ::std::os::raw::c_uint;
pub type drm_drawable_t = ::std::os::raw::c_uint;
pub type drm_magic_t = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_clip_rect {
    pub x1: ::std::os::raw::c_ushort,
    pub y1: ::std::os::raw::c_ushort,
    pub x2: ::std::os::raw::c_ushort,
    pub y2: ::std::os::raw::c_ushort,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_clip_rect"][::std::mem::size_of::<drm_clip_rect>() - 8usize];
    ["Alignment of drm_clip_rect"][::std::mem::align_of::<drm_clip_rect>() - 2usize];
    ["Offset of field: drm_clip_rect::x1"][::std::mem::offset_of!(drm_clip_rect, x1) - 0usize];
    ["Offset of field: drm_clip_rect::y1"][::std::mem::offset_of!(drm_clip_rect, y1) - 2usize];
    ["Offset of field: drm_clip_rect::x2"][::std::mem::offset_of!(drm_clip_rect, x2) - 4usize];
    ["Offset of field: drm_clip_rect::y2"][::std::mem::offset_of!(drm_clip_rect, y2) - 6usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_drawable_info {
    pub num_rects: ::std::os::raw::c_uint,
    pub rects: *mut drm_clip_rect,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_drawable_info"][::std::mem::size_of::<drm_drawable_info>() - 16usize];
    ["Alignment of drm_drawable_info"][::std::mem::align_of::<drm_drawable_info>() - 8usize];
    ["Offset of field: drm_drawable_info::num_rects"]
        [::std::mem::offset_of!(drm_drawable_info, num_rects) - 0usize];
    ["Offset of field: drm_drawable_info::rects"]
        [::std::mem::offset_of!(drm_drawable_info, rects) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_tex_region {
    pub next: ::std::os::raw::c_uchar,
    pub prev: ::std::os::raw::c_uchar,
    pub in_use: ::std::os::raw::c_uchar,
    pub padding: ::std::os::raw::c_uchar,
    pub age: ::std::os::raw::c_uint,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_tex_region"][::std::mem::size_of::<drm_tex_region>() - 8usize];
    ["Alignment of drm_tex_region"][::std::mem::align_of::<drm_tex_region>() - 4usize];
    ["Offset of field: drm_tex_region::next"]
        [::std::mem::offset_of!(drm_tex_region, next) - 0usize];
    ["Offset of field: drm_tex_region::prev"]
        [::std::mem::offset_of!(drm_tex_region, prev) - 1usize];
    ["Offset of field: drm_tex_region::in_use"]
        [::std::mem::offset_of!(drm_tex_region, in_use) - 2usize];
    ["Offset of field: drm_tex_region::padding"]
        [::std::mem::offset_of!(drm_tex_region, padding) - 3usize];
    ["Offset of field: drm_tex_region::age"][::std::mem::offset_of!(drm_tex_region, age) - 4usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_hw_lock {
    pub lock: ::std::os::raw::c_uint,
    pub padding: [::std::os::raw::c_char; 60usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_hw_lock"][::std::mem::size_of::<drm_hw_lock>() - 64usize];
    ["Alignment of drm_hw_lock"][::std::mem::align_of::<drm_hw_lock>() - 4usize];
    ["Offset of field: drm_hw_lock::lock"][::std::mem::offset_of!(drm_hw_lock, lock) - 0usize];
    ["Offset of field: drm_hw_lock::padding"]
        [::std::mem::offset_of!(drm_hw_lock, padding) - 4usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_version {
    pub version_major: ::std::os::raw::c_int,
    pub version_minor: ::std::os::raw::c_int,
    pub version_patchlevel: ::std::os::raw::c_int,
    pub name_len: __kernel_size_t,
    pub name: *mut ::std::os::raw::c_char,
    pub date_len: __kernel_size_t,
    pub date: *mut ::std::os::raw::c_char,
    pub desc_len: __kernel_size_t,
    pub desc: *mut ::std::os::raw::c_char,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_version"][::std::mem::size_of::<drm_version>() - 64usize];
    ["Alignment of drm_version"][::std::mem::align_of::<drm_version>() - 8usize];
    ["Offset of field: drm_version::version_major"]
        [::std::mem::offset_of!(drm_version, version_major) - 0usize];
    ["Offset of field: drm_version::version_minor"]
        [::std::mem::offset_of!(drm_version, version_minor) - 4usize];
    ["Offset of field: drm_version::version_patchlevel"]
        [::std::mem::offset_of!(drm_version, version_patchlevel) - 8usize];
    ["Offset of field: drm_version::name_len"]
        [::std::mem::offset_of!(drm_version, name_len) - 16usize];
    ["Offset of field: drm_version::name"][::std::mem::offset_of!(drm_version, name) - 24usize];
    ["Offset of field: drm_version::date_len"]
        [::std::mem::offset_of!(drm_version, date_len) - 32usize];
    ["Offset of field: drm_version::date"][::std::mem::offset_of!(drm_version, date) - 40usize];
    ["Offset of field: drm_version::desc_len"]
        [::std::mem::offset_of!(drm_version, desc_len) - 48usize];
    ["Offset of field: drm_version::desc"][::std::mem::offset_of!(drm_version, desc) - 56usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_unique {
    pub unique_len: __kernel_size_t,
    pub unique: *mut ::std::os::raw::c_char,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_unique"][::std::mem::size_of::<drm_unique>() - 16usize];
    ["Alignment of drm_unique"][::std::mem::align_of::<drm_unique>() - 8usize];
    ["Offset of field: drm_unique::unique_len"]
        [::std::mem::offset_of!(drm_unique, unique_len) - 0usize];
    ["Offset of field: drm_unique::unique"][::std::mem::offset_of!(drm_unique, unique) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_list {
    pub count: ::std::os::raw::c_int,
    pub version: *mut drm_version,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_list"][::std::mem::size_of::<drm_list>() - 16usize];
    ["Alignment of drm_list"][::std::mem::align_of::<drm_list>() - 8usize];
    ["Offset of field: drm_list::count"][::std::mem::offset_of!(drm_list, count) - 0usize];
    ["Offset of field: drm_list::version"][::std::mem::offset_of!(drm_list, version) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_block {
    pub unused: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_block"][::std::mem::size_of::<drm_block>() - 4usize];
    ["Alignment of drm_block"][::std::mem::align_of::<drm_block>() - 4usize];
    ["Offset of field: drm_block::unused"][::std::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: ::std::os::raw::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 = ::std::os::raw::c_uint;
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_control"][::std::mem::size_of::<drm_control>() - 8usize];
    ["Alignment of drm_control"][::std::mem::align_of::<drm_control>() - 4usize];
    ["Offset of field: drm_control::func"][::std::mem::offset_of!(drm_control, func) - 0usize];
    ["Offset of field: drm_control::irq"][::std::mem::offset_of!(drm_control, irq) - 4usize];
};
pub const drm_map_type__DRM_FRAME_BUFFER: drm_map_type = 0;
pub const drm_map_type__DRM_REGISTERS: drm_map_type = 1;
pub const drm_map_type__DRM_SHM: drm_map_type = 2;
pub const drm_map_type__DRM_AGP: drm_map_type = 3;
pub const drm_map_type__DRM_SCATTER_GATHER: drm_map_type = 4;
pub const drm_map_type__DRM_CONSISTENT: drm_map_type = 5;
pub type drm_map_type = ::std::os::raw::c_uint;
pub const drm_map_flags__DRM_RESTRICTED: drm_map_flags = 1;
pub const drm_map_flags__DRM_READ_ONLY: drm_map_flags = 2;
pub const drm_map_flags__DRM_LOCKED: drm_map_flags = 4;
pub const drm_map_flags__DRM_KERNEL: drm_map_flags = 8;
pub const drm_map_flags__DRM_WRITE_COMBINING: drm_map_flags = 16;
pub const drm_map_flags__DRM_CONTAINS_LOCK: drm_map_flags = 32;
pub const drm_map_flags__DRM_REMOVABLE: drm_map_flags = 64;
pub const drm_map_flags__DRM_DRIVER: drm_map_flags = 128;
pub type drm_map_flags = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_ctx_priv_map {
    pub ctx_id: ::std::os::raw::c_uint,
    pub handle: *mut ::std::os::raw::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_ctx_priv_map"][::std::mem::size_of::<drm_ctx_priv_map>() - 16usize];
    ["Alignment of drm_ctx_priv_map"][::std::mem::align_of::<drm_ctx_priv_map>() - 8usize];
    ["Offset of field: drm_ctx_priv_map::ctx_id"]
        [::std::mem::offset_of!(drm_ctx_priv_map, ctx_id) - 0usize];
    ["Offset of field: drm_ctx_priv_map::handle"]
        [::std::mem::offset_of!(drm_ctx_priv_map, handle) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_map {
    pub offset: ::std::os::raw::c_ulong,
    pub size: ::std::os::raw::c_ulong,
    pub type_: drm_map_type,
    pub flags: drm_map_flags,
    pub handle: *mut ::std::os::raw::c_void,
    pub mtrr: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_map"][::std::mem::size_of::<drm_map>() - 40usize];
    ["Alignment of drm_map"][::std::mem::align_of::<drm_map>() - 8usize];
    ["Offset of field: drm_map::offset"][::std::mem::offset_of!(drm_map, offset) - 0usize];
    ["Offset of field: drm_map::size"][::std::mem::offset_of!(drm_map, size) - 8usize];
    ["Offset of field: drm_map::type_"][::std::mem::offset_of!(drm_map, type_) - 16usize];
    ["Offset of field: drm_map::flags"][::std::mem::offset_of!(drm_map, flags) - 20usize];
    ["Offset of field: drm_map::handle"][::std::mem::offset_of!(drm_map, handle) - 24usize];
    ["Offset of field: drm_map::mtrr"][::std::mem::offset_of!(drm_map, mtrr) - 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_client {
    pub idx: ::std::os::raw::c_int,
    pub auth: ::std::os::raw::c_int,
    pub pid: ::std::os::raw::c_ulong,
    pub uid: ::std::os::raw::c_ulong,
    pub magic: ::std::os::raw::c_ulong,
    pub iocs: ::std::os::raw::c_ulong,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_client"][::std::mem::size_of::<drm_client>() - 40usize];
    ["Alignment of drm_client"][::std::mem::align_of::<drm_client>() - 8usize];
    ["Offset of field: drm_client::idx"][::std::mem::offset_of!(drm_client, idx) - 0usize];
    ["Offset of field: drm_client::auth"][::std::mem::offset_of!(drm_client, auth) - 4usize];
    ["Offset of field: drm_client::pid"][::std::mem::offset_of!(drm_client, pid) - 8usize];
    ["Offset of field: drm_client::uid"][::std::mem::offset_of!(drm_client, uid) - 16usize];
    ["Offset of field: drm_client::magic"][::std::mem::offset_of!(drm_client, magic) - 24usize];
    ["Offset of field: drm_client::iocs"][::std::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;
pub const drm_stat_type__DRM_STAT_VALUE: drm_stat_type = 6;
pub const drm_stat_type__DRM_STAT_BYTE: drm_stat_type = 7;
pub const drm_stat_type__DRM_STAT_COUNT: drm_stat_type = 8;
pub const drm_stat_type__DRM_STAT_IRQ: drm_stat_type = 9;
pub const drm_stat_type__DRM_STAT_PRIMARY: drm_stat_type = 10;
pub const drm_stat_type__DRM_STAT_SECONDARY: drm_stat_type = 11;
pub const drm_stat_type__DRM_STAT_DMA: drm_stat_type = 12;
pub const drm_stat_type__DRM_STAT_SPECIAL: drm_stat_type = 13;
pub const drm_stat_type__DRM_STAT_MISSED: drm_stat_type = 14;
pub type drm_stat_type = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_stats {
    pub count: ::std::os::raw::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: ::std::os::raw::c_ulong,
    pub type_: drm_stat_type,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_stats__bindgen_ty_1"][::std::mem::size_of::<drm_stats__bindgen_ty_1>() - 16usize];
    ["Alignment of drm_stats__bindgen_ty_1"]
        [::std::mem::align_of::<drm_stats__bindgen_ty_1>() - 8usize];
    ["Offset of field: drm_stats__bindgen_ty_1::value"]
        [::std::mem::offset_of!(drm_stats__bindgen_ty_1, value) - 0usize];
    ["Offset of field: drm_stats__bindgen_ty_1::type_"]
        [::std::mem::offset_of!(drm_stats__bindgen_ty_1, type_) - 8usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_stats"][::std::mem::size_of::<drm_stats>() - 248usize];
    ["Alignment of drm_stats"][::std::mem::align_of::<drm_stats>() - 8usize];
    ["Offset of field: drm_stats::count"][::std::mem::offset_of!(drm_stats, count) - 0usize];
    ["Offset of field: drm_stats::data"][::std::mem::offset_of!(drm_stats, data) - 8usize];
};
pub const drm_lock_flags__DRM_LOCK_READY: drm_lock_flags = 1;
pub const drm_lock_flags__DRM_LOCK_QUIESCENT: drm_lock_flags = 2;
pub const drm_lock_flags__DRM_LOCK_FLUSH: drm_lock_flags = 4;
pub const drm_lock_flags__DRM_LOCK_FLUSH_ALL: drm_lock_flags = 8;
pub const drm_lock_flags__DRM_HALT_ALL_QUEUES: drm_lock_flags = 16;
pub const drm_lock_flags__DRM_HALT_CUR_QUEUES: drm_lock_flags = 32;
pub type drm_lock_flags = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_lock {
    pub context: ::std::os::raw::c_int,
    pub flags: drm_lock_flags,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_lock"][::std::mem::size_of::<drm_lock>() - 8usize];
    ["Alignment of drm_lock"][::std::mem::align_of::<drm_lock>() - 4usize];
    ["Offset of field: drm_lock::context"][::std::mem::offset_of!(drm_lock, context) - 0usize];
    ["Offset of field: drm_lock::flags"][::std::mem::offset_of!(drm_lock, flags) - 4usize];
};
pub const drm_dma_flags__DRM_DMA_BLOCK: drm_dma_flags = 1;
pub const drm_dma_flags__DRM_DMA_WHILE_LOCKED: drm_dma_flags = 2;
pub const drm_dma_flags__DRM_DMA_PRIORITY: drm_dma_flags = 4;
pub const drm_dma_flags__DRM_DMA_WAIT: drm_dma_flags = 16;
pub const drm_dma_flags__DRM_DMA_SMALLER_OK: drm_dma_flags = 32;
pub const drm_dma_flags__DRM_DMA_LARGER_OK: drm_dma_flags = 64;
pub type drm_dma_flags = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_buf_desc {
    pub count: ::std::os::raw::c_int,
    pub size: ::std::os::raw::c_int,
    pub low_mark: ::std::os::raw::c_int,
    pub high_mark: ::std::os::raw::c_int,
    pub flags: drm_buf_desc__bindgen_ty_1,
    pub agp_start: ::std::os::raw::c_ulong,
}
pub const drm_buf_desc__DRM_PAGE_ALIGN: drm_buf_desc__bindgen_ty_1 = 1;
pub const drm_buf_desc__DRM_AGP_BUFFER: drm_buf_desc__bindgen_ty_1 = 2;
pub const drm_buf_desc__DRM_SG_BUFFER: drm_buf_desc__bindgen_ty_1 = 4;
pub const drm_buf_desc__DRM_FB_BUFFER: drm_buf_desc__bindgen_ty_1 = 8;
pub const drm_buf_desc__DRM_PCI_BUFFER_RO: drm_buf_desc__bindgen_ty_1 = 16;
pub type drm_buf_desc__bindgen_ty_1 = ::std::os::raw::c_uint;
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_buf_desc"][::std::mem::size_of::<drm_buf_desc>() - 32usize];
    ["Alignment of drm_buf_desc"][::std::mem::align_of::<drm_buf_desc>() - 8usize];
    ["Offset of field: drm_buf_desc::count"][::std::mem::offset_of!(drm_buf_desc, count) - 0usize];
    ["Offset of field: drm_buf_desc::size"][::std::mem::offset_of!(drm_buf_desc, size) - 4usize];
    ["Offset of field: drm_buf_desc::low_mark"]
        [::std::mem::offset_of!(drm_buf_desc, low_mark) - 8usize];
    ["Offset of field: drm_buf_desc::high_mark"]
        [::std::mem::offset_of!(drm_buf_desc, high_mark) - 12usize];
    ["Offset of field: drm_buf_desc::flags"][::std::mem::offset_of!(drm_buf_desc, flags) - 16usize];
    ["Offset of field: drm_buf_desc::agp_start"]
        [::std::mem::offset_of!(drm_buf_desc, agp_start) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_buf_info {
    pub count: ::std::os::raw::c_int,
    pub list: *mut drm_buf_desc,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_buf_info"][::std::mem::size_of::<drm_buf_info>() - 16usize];
    ["Alignment of drm_buf_info"][::std::mem::align_of::<drm_buf_info>() - 8usize];
    ["Offset of field: drm_buf_info::count"][::std::mem::offset_of!(drm_buf_info, count) - 0usize];
    ["Offset of field: drm_buf_info::list"][::std::mem::offset_of!(drm_buf_info, list) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_buf_free {
    pub count: ::std::os::raw::c_int,
    pub list: *mut ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_buf_free"][::std::mem::size_of::<drm_buf_free>() - 16usize];
    ["Alignment of drm_buf_free"][::std::mem::align_of::<drm_buf_free>() - 8usize];
    ["Offset of field: drm_buf_free::count"][::std::mem::offset_of!(drm_buf_free, count) - 0usize];
    ["Offset of field: drm_buf_free::list"][::std::mem::offset_of!(drm_buf_free, list) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_buf_pub {
    pub idx: ::std::os::raw::c_int,
    pub total: ::std::os::raw::c_int,
    pub used: ::std::os::raw::c_int,
    pub address: *mut ::std::os::raw::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_buf_pub"][::std::mem::size_of::<drm_buf_pub>() - 24usize];
    ["Alignment of drm_buf_pub"][::std::mem::align_of::<drm_buf_pub>() - 8usize];
    ["Offset of field: drm_buf_pub::idx"][::std::mem::offset_of!(drm_buf_pub, idx) - 0usize];
    ["Offset of field: drm_buf_pub::total"][::std::mem::offset_of!(drm_buf_pub, total) - 4usize];
    ["Offset of field: drm_buf_pub::used"][::std::mem::offset_of!(drm_buf_pub, used) - 8usize];
    ["Offset of field: drm_buf_pub::address"]
        [::std::mem::offset_of!(drm_buf_pub, address) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_buf_map {
    pub count: ::std::os::raw::c_int,
    pub virtual_: *mut ::std::os::raw::c_void,
    pub list: *mut drm_buf_pub,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_buf_map"][::std::mem::size_of::<drm_buf_map>() - 24usize];
    ["Alignment of drm_buf_map"][::std::mem::align_of::<drm_buf_map>() - 8usize];
    ["Offset of field: drm_buf_map::count"][::std::mem::offset_of!(drm_buf_map, count) - 0usize];
    ["Offset of field: drm_buf_map::virtual_"]
        [::std::mem::offset_of!(drm_buf_map, virtual_) - 8usize];
    ["Offset of field: drm_buf_map::list"][::std::mem::offset_of!(drm_buf_map, list) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_dma {
    pub context: ::std::os::raw::c_int,
    pub send_count: ::std::os::raw::c_int,
    pub send_indices: *mut ::std::os::raw::c_int,
    pub send_sizes: *mut ::std::os::raw::c_int,
    pub flags: drm_dma_flags,
    pub request_count: ::std::os::raw::c_int,
    pub request_size: ::std::os::raw::c_int,
    pub request_indices: *mut ::std::os::raw::c_int,
    pub request_sizes: *mut ::std::os::raw::c_int,
    pub granted_count: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_dma"][::std::mem::size_of::<drm_dma>() - 64usize];
    ["Alignment of drm_dma"][::std::mem::align_of::<drm_dma>() - 8usize];
    ["Offset of field: drm_dma::context"][::std::mem::offset_of!(drm_dma, context) - 0usize];
    ["Offset of field: drm_dma::send_count"][::std::mem::offset_of!(drm_dma, send_count) - 4usize];
    ["Offset of field: drm_dma::send_indices"]
        [::std::mem::offset_of!(drm_dma, send_indices) - 8usize];
    ["Offset of field: drm_dma::send_sizes"][::std::mem::offset_of!(drm_dma, send_sizes) - 16usize];
    ["Offset of field: drm_dma::flags"][::std::mem::offset_of!(drm_dma, flags) - 24usize];
    ["Offset of field: drm_dma::request_count"]
        [::std::mem::offset_of!(drm_dma, request_count) - 28usize];
    ["Offset of field: drm_dma::request_size"]
        [::std::mem::offset_of!(drm_dma, request_size) - 32usize];
    ["Offset of field: drm_dma::request_indices"]
        [::std::mem::offset_of!(drm_dma, request_indices) - 40usize];
    ["Offset of field: drm_dma::request_sizes"]
        [::std::mem::offset_of!(drm_dma, request_sizes) - 48usize];
    ["Offset of field: drm_dma::granted_count"]
        [::std::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 = ::std::os::raw::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"][::std::mem::size_of::<drm_ctx>() - 8usize];
    ["Alignment of drm_ctx"][::std::mem::align_of::<drm_ctx>() - 4usize];
    ["Offset of field: drm_ctx::handle"][::std::mem::offset_of!(drm_ctx, handle) - 0usize];
    ["Offset of field: drm_ctx::flags"][::std::mem::offset_of!(drm_ctx, flags) - 4usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_ctx_res {
    pub count: ::std::os::raw::c_int,
    pub contexts: *mut drm_ctx,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_ctx_res"][::std::mem::size_of::<drm_ctx_res>() - 16usize];
    ["Alignment of drm_ctx_res"][::std::mem::align_of::<drm_ctx_res>() - 8usize];
    ["Offset of field: drm_ctx_res::count"][::std::mem::offset_of!(drm_ctx_res, count) - 0usize];
    ["Offset of field: drm_ctx_res::contexts"]
        [::std::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"][::std::mem::size_of::<drm_draw>() - 4usize];
    ["Alignment of drm_draw"][::std::mem::align_of::<drm_draw>() - 4usize];
    ["Offset of field: drm_draw::handle"][::std::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 = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_update_draw {
    pub handle: drm_drawable_t,
    pub type_: ::std::os::raw::c_uint,
    pub num: ::std::os::raw::c_uint,
    pub data: ::std::os::raw::c_ulonglong,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_update_draw"][::std::mem::size_of::<drm_update_draw>() - 24usize];
    ["Alignment of drm_update_draw"][::std::mem::align_of::<drm_update_draw>() - 8usize];
    ["Offset of field: drm_update_draw::handle"]
        [::std::mem::offset_of!(drm_update_draw, handle) - 0usize];
    ["Offset of field: drm_update_draw::type_"]
        [::std::mem::offset_of!(drm_update_draw, type_) - 4usize];
    ["Offset of field: drm_update_draw::num"]
        [::std::mem::offset_of!(drm_update_draw, num) - 8usize];
    ["Offset of field: drm_update_draw::data"]
        [::std::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"][::std::mem::size_of::<drm_auth>() - 4usize];
    ["Alignment of drm_auth"][::std::mem::align_of::<drm_auth>() - 4usize];
    ["Offset of field: drm_auth::magic"][::std::mem::offset_of!(drm_auth, magic) - 0usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_irq_busid {
    pub irq: ::std::os::raw::c_int,
    pub busnum: ::std::os::raw::c_int,
    pub devnum: ::std::os::raw::c_int,
    pub funcnum: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_irq_busid"][::std::mem::size_of::<drm_irq_busid>() - 16usize];
    ["Alignment of drm_irq_busid"][::std::mem::align_of::<drm_irq_busid>() - 4usize];
    ["Offset of field: drm_irq_busid::irq"][::std::mem::offset_of!(drm_irq_busid, irq) - 0usize];
    ["Offset of field: drm_irq_busid::busnum"]
        [::std::mem::offset_of!(drm_irq_busid, busnum) - 4usize];
    ["Offset of field: drm_irq_busid::devnum"]
        [::std::mem::offset_of!(drm_irq_busid, devnum) - 8usize];
    ["Offset of field: drm_irq_busid::funcnum"]
        [::std::mem::offset_of!(drm_irq_busid, funcnum) - 12usize];
};
pub const drm_vblank_seq_type__DRM_VBLANK_ABSOLUTE: drm_vblank_seq_type = 0;
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;
pub const drm_vblank_seq_type__DRM_VBLANK_EVENT: drm_vblank_seq_type = 67108864;
pub const drm_vblank_seq_type__DRM_VBLANK_FLIP: drm_vblank_seq_type = 134217728;
pub const drm_vblank_seq_type__DRM_VBLANK_NEXTONMISS: drm_vblank_seq_type = 268435456;
pub const drm_vblank_seq_type__DRM_VBLANK_SECONDARY: drm_vblank_seq_type = 536870912;
pub const drm_vblank_seq_type__DRM_VBLANK_SIGNAL: drm_vblank_seq_type = 1073741824;
pub type drm_vblank_seq_type = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_wait_vblank_request {
    pub type_: drm_vblank_seq_type,
    pub sequence: ::std::os::raw::c_uint,
    pub signal: ::std::os::raw::c_ulong,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_wait_vblank_request"][::std::mem::size_of::<drm_wait_vblank_request>() - 16usize];
    ["Alignment of drm_wait_vblank_request"]
        [::std::mem::align_of::<drm_wait_vblank_request>() - 8usize];
    ["Offset of field: drm_wait_vblank_request::type_"]
        [::std::mem::offset_of!(drm_wait_vblank_request, type_) - 0usize];
    ["Offset of field: drm_wait_vblank_request::sequence"]
        [::std::mem::offset_of!(drm_wait_vblank_request, sequence) - 4usize];
    ["Offset of field: drm_wait_vblank_request::signal"]
        [::std::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: ::std::os::raw::c_uint,
    pub tval_sec: ::std::os::raw::c_long,
    pub tval_usec: ::std::os::raw::c_long,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_wait_vblank_reply"][::std::mem::size_of::<drm_wait_vblank_reply>() - 24usize];
    ["Alignment of drm_wait_vblank_reply"]
        [::std::mem::align_of::<drm_wait_vblank_reply>() - 8usize];
    ["Offset of field: drm_wait_vblank_reply::type_"]
        [::std::mem::offset_of!(drm_wait_vblank_reply, type_) - 0usize];
    ["Offset of field: drm_wait_vblank_reply::sequence"]
        [::std::mem::offset_of!(drm_wait_vblank_reply, sequence) - 4usize];
    ["Offset of field: drm_wait_vblank_reply::tval_sec"]
        [::std::mem::offset_of!(drm_wait_vblank_reply, tval_sec) - 8usize];
    ["Offset of field: drm_wait_vblank_reply::tval_usec"]
        [::std::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"][::std::mem::size_of::<drm_wait_vblank>() - 24usize];
    ["Alignment of drm_wait_vblank"][::std::mem::align_of::<drm_wait_vblank>() - 8usize];
    ["Offset of field: drm_wait_vblank::request"]
        [::std::mem::offset_of!(drm_wait_vblank, request) - 0usize];
    ["Offset of field: drm_wait_vblank::reply"]
        [::std::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"][::std::mem::size_of::<drm_modeset_ctl>() - 8usize];
    ["Alignment of drm_modeset_ctl"][::std::mem::align_of::<drm_modeset_ctl>() - 4usize];
    ["Offset of field: drm_modeset_ctl::crtc"]
        [::std::mem::offset_of!(drm_modeset_ctl, crtc) - 0usize];
    ["Offset of field: drm_modeset_ctl::cmd"]
        [::std::mem::offset_of!(drm_modeset_ctl, cmd) - 4usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_agp_mode {
    pub mode: ::std::os::raw::c_ulong,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_agp_mode"][::std::mem::size_of::<drm_agp_mode>() - 8usize];
    ["Alignment of drm_agp_mode"][::std::mem::align_of::<drm_agp_mode>() - 8usize];
    ["Offset of field: drm_agp_mode::mode"][::std::mem::offset_of!(drm_agp_mode, mode) - 0usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_agp_buffer {
    pub size: ::std::os::raw::c_ulong,
    pub handle: ::std::os::raw::c_ulong,
    pub type_: ::std::os::raw::c_ulong,
    pub physical: ::std::os::raw::c_ulong,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_agp_buffer"][::std::mem::size_of::<drm_agp_buffer>() - 32usize];
    ["Alignment of drm_agp_buffer"][::std::mem::align_of::<drm_agp_buffer>() - 8usize];
    ["Offset of field: drm_agp_buffer::size"]
        [::std::mem::offset_of!(drm_agp_buffer, size) - 0usize];
    ["Offset of field: drm_agp_buffer::handle"]
        [::std::mem::offset_of!(drm_agp_buffer, handle) - 8usize];
    ["Offset of field: drm_agp_buffer::type_"]
        [::std::mem::offset_of!(drm_agp_buffer, type_) - 16usize];
    ["Offset of field: drm_agp_buffer::physical"]
        [::std::mem::offset_of!(drm_agp_buffer, physical) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_agp_binding {
    pub handle: ::std::os::raw::c_ulong,
    pub offset: ::std::os::raw::c_ulong,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_agp_binding"][::std::mem::size_of::<drm_agp_binding>() - 16usize];
    ["Alignment of drm_agp_binding"][::std::mem::align_of::<drm_agp_binding>() - 8usize];
    ["Offset of field: drm_agp_binding::handle"]
        [::std::mem::offset_of!(drm_agp_binding, handle) - 0usize];
    ["Offset of field: drm_agp_binding::offset"]
        [::std::mem::offset_of!(drm_agp_binding, offset) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_agp_info {
    pub agp_version_major: ::std::os::raw::c_int,
    pub agp_version_minor: ::std::os::raw::c_int,
    pub mode: ::std::os::raw::c_ulong,
    pub aperture_base: ::std::os::raw::c_ulong,
    pub aperture_size: ::std::os::raw::c_ulong,
    pub memory_allowed: ::std::os::raw::c_ulong,
    pub memory_used: ::std::os::raw::c_ulong,
    pub id_vendor: ::std::os::raw::c_ushort,
    pub id_device: ::std::os::raw::c_ushort,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_agp_info"][::std::mem::size_of::<drm_agp_info>() - 56usize];
    ["Alignment of drm_agp_info"][::std::mem::align_of::<drm_agp_info>() - 8usize];
    ["Offset of field: drm_agp_info::agp_version_major"]
        [::std::mem::offset_of!(drm_agp_info, agp_version_major) - 0usize];
    ["Offset of field: drm_agp_info::agp_version_minor"]
        [::std::mem::offset_of!(drm_agp_info, agp_version_minor) - 4usize];
    ["Offset of field: drm_agp_info::mode"][::std::mem::offset_of!(drm_agp_info, mode) - 8usize];
    ["Offset of field: drm_agp_info::aperture_base"]
        [::std::mem::offset_of!(drm_agp_info, aperture_base) - 16usize];
    ["Offset of field: drm_agp_info::aperture_size"]
        [::std::mem::offset_of!(drm_agp_info, aperture_size) - 24usize];
    ["Offset of field: drm_agp_info::memory_allowed"]
        [::std::mem::offset_of!(drm_agp_info, memory_allowed) - 32usize];
    ["Offset of field: drm_agp_info::memory_used"]
        [::std::mem::offset_of!(drm_agp_info, memory_used) - 40usize];
    ["Offset of field: drm_agp_info::id_vendor"]
        [::std::mem::offset_of!(drm_agp_info, id_vendor) - 48usize];
    ["Offset of field: drm_agp_info::id_device"]
        [::std::mem::offset_of!(drm_agp_info, id_device) - 50usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_scatter_gather {
    pub size: ::std::os::raw::c_ulong,
    pub handle: ::std::os::raw::c_ulong,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_scatter_gather"][::std::mem::size_of::<drm_scatter_gather>() - 16usize];
    ["Alignment of drm_scatter_gather"][::std::mem::align_of::<drm_scatter_gather>() - 8usize];
    ["Offset of field: drm_scatter_gather::size"]
        [::std::mem::offset_of!(drm_scatter_gather, size) - 0usize];
    ["Offset of field: drm_scatter_gather::handle"]
        [::std::mem::offset_of!(drm_scatter_gather, handle) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_set_version {
    pub drm_di_major: ::std::os::raw::c_int,
    pub drm_di_minor: ::std::os::raw::c_int,
    pub drm_dd_major: ::std::os::raw::c_int,
    pub drm_dd_minor: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_set_version"][::std::mem::size_of::<drm_set_version>() - 16usize];
    ["Alignment of drm_set_version"][::std::mem::align_of::<drm_set_version>() - 4usize];
    ["Offset of field: drm_set_version::drm_di_major"]
        [::std::mem::offset_of!(drm_set_version, drm_di_major) - 0usize];
    ["Offset of field: drm_set_version::drm_di_minor"]
        [::std::mem::offset_of!(drm_set_version, drm_di_minor) - 4usize];
    ["Offset of field: drm_set_version::drm_dd_major"]
        [::std::mem::offset_of!(drm_set_version, drm_dd_major) - 8usize];
    ["Offset of field: drm_set_version::drm_dd_minor"]
        [::std::mem::offset_of!(drm_set_version, drm_dd_minor) - 12usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_gem_close {
    pub handle: __u32,
    pub pad: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_gem_close"][::std::mem::size_of::<drm_gem_close>() - 8usize];
    ["Alignment of drm_gem_close"][::std::mem::align_of::<drm_gem_close>() - 4usize];
    ["Offset of field: drm_gem_close::handle"]
        [::std::mem::offset_of!(drm_gem_close, handle) - 0usize];
    ["Offset of field: drm_gem_close::pad"][::std::mem::offset_of!(drm_gem_close, pad) - 4usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_gem_flink {
    pub handle: __u32,
    pub name: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_gem_flink"][::std::mem::size_of::<drm_gem_flink>() - 8usize];
    ["Alignment of drm_gem_flink"][::std::mem::align_of::<drm_gem_flink>() - 4usize];
    ["Offset of field: drm_gem_flink::handle"]
        [::std::mem::offset_of!(drm_gem_flink, handle) - 0usize];
    ["Offset of field: drm_gem_flink::name"][::std::mem::offset_of!(drm_gem_flink, name) - 4usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_gem_open {
    pub name: __u32,
    pub handle: __u32,
    pub size: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_gem_open"][::std::mem::size_of::<drm_gem_open>() - 16usize];
    ["Alignment of drm_gem_open"][::std::mem::align_of::<drm_gem_open>() - 8usize];
    ["Offset of field: drm_gem_open::name"][::std::mem::offset_of!(drm_gem_open, name) - 0usize];
    ["Offset of field: drm_gem_open::handle"]
        [::std::mem::offset_of!(drm_gem_open, handle) - 4usize];
    ["Offset of field: drm_gem_open::size"][::std::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"][::std::mem::size_of::<drm_get_cap>() - 16usize];
    ["Alignment of drm_get_cap"][::std::mem::align_of::<drm_get_cap>() - 8usize];
    ["Offset of field: drm_get_cap::capability"]
        [::std::mem::offset_of!(drm_get_cap, capability) - 0usize];
    ["Offset of field: drm_get_cap::value"][::std::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"][::std::mem::size_of::<drm_set_client_cap>() - 16usize];
    ["Alignment of drm_set_client_cap"][::std::mem::align_of::<drm_set_client_cap>() - 8usize];
    ["Offset of field: drm_set_client_cap::capability"]
        [::std::mem::offset_of!(drm_set_client_cap, capability) - 0usize];
    ["Offset of field: drm_set_client_cap::value"]
        [::std::mem::offset_of!(drm_set_client_cap, value) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_prime_handle {
    pub handle: __u32,
    pub flags: __u32,
    pub fd: __s32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_prime_handle"][::std::mem::size_of::<drm_prime_handle>() - 12usize];
    ["Alignment of drm_prime_handle"][::std::mem::align_of::<drm_prime_handle>() - 4usize];
    ["Offset of field: drm_prime_handle::handle"]
        [::std::mem::offset_of!(drm_prime_handle, handle) - 0usize];
    ["Offset of field: drm_prime_handle::flags"]
        [::std::mem::offset_of!(drm_prime_handle, flags) - 4usize];
    ["Offset of field: drm_prime_handle::fd"]
        [::std::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"][::std::mem::size_of::<drm_syncobj_create>() - 8usize];
    ["Alignment of drm_syncobj_create"][::std::mem::align_of::<drm_syncobj_create>() - 4usize];
    ["Offset of field: drm_syncobj_create::handle"]
        [::std::mem::offset_of!(drm_syncobj_create, handle) - 0usize];
    ["Offset of field: drm_syncobj_create::flags"]
        [::std::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"][::std::mem::size_of::<drm_syncobj_destroy>() - 8usize];
    ["Alignment of drm_syncobj_destroy"][::std::mem::align_of::<drm_syncobj_destroy>() - 4usize];
    ["Offset of field: drm_syncobj_destroy::handle"]
        [::std::mem::offset_of!(drm_syncobj_destroy, handle) - 0usize];
    ["Offset of field: drm_syncobj_destroy::pad"]
        [::std::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"][::std::mem::size_of::<drm_syncobj_handle>() - 16usize];
    ["Alignment of drm_syncobj_handle"][::std::mem::align_of::<drm_syncobj_handle>() - 4usize];
    ["Offset of field: drm_syncobj_handle::handle"]
        [::std::mem::offset_of!(drm_syncobj_handle, handle) - 0usize];
    ["Offset of field: drm_syncobj_handle::flags"]
        [::std::mem::offset_of!(drm_syncobj_handle, flags) - 4usize];
    ["Offset of field: drm_syncobj_handle::fd"]
        [::std::mem::offset_of!(drm_syncobj_handle, fd) - 8usize];
    ["Offset of field: drm_syncobj_handle::pad"]
        [::std::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"][::std::mem::size_of::<drm_syncobj_transfer>() - 32usize];
    ["Alignment of drm_syncobj_transfer"][::std::mem::align_of::<drm_syncobj_transfer>() - 8usize];
    ["Offset of field: drm_syncobj_transfer::src_handle"]
        [::std::mem::offset_of!(drm_syncobj_transfer, src_handle) - 0usize];
    ["Offset of field: drm_syncobj_transfer::dst_handle"]
        [::std::mem::offset_of!(drm_syncobj_transfer, dst_handle) - 4usize];
    ["Offset of field: drm_syncobj_transfer::src_point"]
        [::std::mem::offset_of!(drm_syncobj_transfer, src_point) - 8usize];
    ["Offset of field: drm_syncobj_transfer::dst_point"]
        [::std::mem::offset_of!(drm_syncobj_transfer, dst_point) - 16usize];
    ["Offset of field: drm_syncobj_transfer::flags"]
        [::std::mem::offset_of!(drm_syncobj_transfer, flags) - 24usize];
    ["Offset of field: drm_syncobj_transfer::pad"]
        [::std::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,
    pub deadline_nsec: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_syncobj_wait"][::std::mem::size_of::<drm_syncobj_wait>() - 40usize];
    ["Alignment of drm_syncobj_wait"][::std::mem::align_of::<drm_syncobj_wait>() - 8usize];
    ["Offset of field: drm_syncobj_wait::handles"]
        [::std::mem::offset_of!(drm_syncobj_wait, handles) - 0usize];
    ["Offset of field: drm_syncobj_wait::timeout_nsec"]
        [::std::mem::offset_of!(drm_syncobj_wait, timeout_nsec) - 8usize];
    ["Offset of field: drm_syncobj_wait::count_handles"]
        [::std::mem::offset_of!(drm_syncobj_wait, count_handles) - 16usize];
    ["Offset of field: drm_syncobj_wait::flags"]
        [::std::mem::offset_of!(drm_syncobj_wait, flags) - 20usize];
    ["Offset of field: drm_syncobj_wait::first_signaled"]
        [::std::mem::offset_of!(drm_syncobj_wait, first_signaled) - 24usize];
    ["Offset of field: drm_syncobj_wait::pad"]
        [::std::mem::offset_of!(drm_syncobj_wait, pad) - 28usize];
    ["Offset of field: drm_syncobj_wait::deadline_nsec"]
        [::std::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,
    pub deadline_nsec: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_syncobj_timeline_wait"]
        [::std::mem::size_of::<drm_syncobj_timeline_wait>() - 48usize];
    ["Alignment of drm_syncobj_timeline_wait"]
        [::std::mem::align_of::<drm_syncobj_timeline_wait>() - 8usize];
    ["Offset of field: drm_syncobj_timeline_wait::handles"]
        [::std::mem::offset_of!(drm_syncobj_timeline_wait, handles) - 0usize];
    ["Offset of field: drm_syncobj_timeline_wait::points"]
        [::std::mem::offset_of!(drm_syncobj_timeline_wait, points) - 8usize];
    ["Offset of field: drm_syncobj_timeline_wait::timeout_nsec"]
        [::std::mem::offset_of!(drm_syncobj_timeline_wait, timeout_nsec) - 16usize];
    ["Offset of field: drm_syncobj_timeline_wait::count_handles"]
        [::std::mem::offset_of!(drm_syncobj_timeline_wait, count_handles) - 24usize];
    ["Offset of field: drm_syncobj_timeline_wait::flags"]
        [::std::mem::offset_of!(drm_syncobj_timeline_wait, flags) - 28usize];
    ["Offset of field: drm_syncobj_timeline_wait::first_signaled"]
        [::std::mem::offset_of!(drm_syncobj_timeline_wait, first_signaled) - 32usize];
    ["Offset of field: drm_syncobj_timeline_wait::pad"]
        [::std::mem::offset_of!(drm_syncobj_timeline_wait, pad) - 36usize];
    ["Offset of field: drm_syncobj_timeline_wait::deadline_nsec"]
        [::std::mem::offset_of!(drm_syncobj_timeline_wait, deadline_nsec) - 40usize];
};
#[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"][::std::mem::size_of::<drm_syncobj_eventfd>() - 24usize];
    ["Alignment of drm_syncobj_eventfd"][::std::mem::align_of::<drm_syncobj_eventfd>() - 8usize];
    ["Offset of field: drm_syncobj_eventfd::handle"]
        [::std::mem::offset_of!(drm_syncobj_eventfd, handle) - 0usize];
    ["Offset of field: drm_syncobj_eventfd::flags"]
        [::std::mem::offset_of!(drm_syncobj_eventfd, flags) - 4usize];
    ["Offset of field: drm_syncobj_eventfd::point"]
        [::std::mem::offset_of!(drm_syncobj_eventfd, point) - 8usize];
    ["Offset of field: drm_syncobj_eventfd::fd"]
        [::std::mem::offset_of!(drm_syncobj_eventfd, fd) - 16usize];
    ["Offset of field: drm_syncobj_eventfd::pad"]
        [::std::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"][::std::mem::size_of::<drm_syncobj_array>() - 16usize];
    ["Alignment of drm_syncobj_array"][::std::mem::align_of::<drm_syncobj_array>() - 8usize];
    ["Offset of field: drm_syncobj_array::handles"]
        [::std::mem::offset_of!(drm_syncobj_array, handles) - 0usize];
    ["Offset of field: drm_syncobj_array::count_handles"]
        [::std::mem::offset_of!(drm_syncobj_array, count_handles) - 8usize];
    ["Offset of field: drm_syncobj_array::pad"]
        [::std::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"]
        [::std::mem::size_of::<drm_syncobj_timeline_array>() - 24usize];
    ["Alignment of drm_syncobj_timeline_array"]
        [::std::mem::align_of::<drm_syncobj_timeline_array>() - 8usize];
    ["Offset of field: drm_syncobj_timeline_array::handles"]
        [::std::mem::offset_of!(drm_syncobj_timeline_array, handles) - 0usize];
    ["Offset of field: drm_syncobj_timeline_array::points"]
        [::std::mem::offset_of!(drm_syncobj_timeline_array, points) - 8usize];
    ["Offset of field: drm_syncobj_timeline_array::count_handles"]
        [::std::mem::offset_of!(drm_syncobj_timeline_array, count_handles) - 16usize];
    ["Offset of field: drm_syncobj_timeline_array::flags"]
        [::std::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"][::std::mem::size_of::<drm_crtc_get_sequence>() - 24usize];
    ["Alignment of drm_crtc_get_sequence"]
        [::std::mem::align_of::<drm_crtc_get_sequence>() - 8usize];
    ["Offset of field: drm_crtc_get_sequence::crtc_id"]
        [::std::mem::offset_of!(drm_crtc_get_sequence, crtc_id) - 0usize];
    ["Offset of field: drm_crtc_get_sequence::active"]
        [::std::mem::offset_of!(drm_crtc_get_sequence, active) - 4usize];
    ["Offset of field: drm_crtc_get_sequence::sequence"]
        [::std::mem::offset_of!(drm_crtc_get_sequence, sequence) - 8usize];
    ["Offset of field: drm_crtc_get_sequence::sequence_ns"]
        [::std::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"][::std::mem::size_of::<drm_crtc_queue_sequence>() - 24usize];
    ["Alignment of drm_crtc_queue_sequence"]
        [::std::mem::align_of::<drm_crtc_queue_sequence>() - 8usize];
    ["Offset of field: drm_crtc_queue_sequence::crtc_id"]
        [::std::mem::offset_of!(drm_crtc_queue_sequence, crtc_id) - 0usize];
    ["Offset of field: drm_crtc_queue_sequence::flags"]
        [::std::mem::offset_of!(drm_crtc_queue_sequence, flags) - 4usize];
    ["Offset of field: drm_crtc_queue_sequence::sequence"]
        [::std::mem::offset_of!(drm_crtc_queue_sequence, sequence) - 8usize];
    ["Offset of field: drm_crtc_queue_sequence::user_data"]
        [::std::mem::offset_of!(drm_crtc_queue_sequence, user_data) - 16usize];
};
#[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: [::std::os::raw::c_char; 32usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_mode_modeinfo"][::std::mem::size_of::<drm_mode_modeinfo>() - 68usize];
    ["Alignment of drm_mode_modeinfo"][::std::mem::align_of::<drm_mode_modeinfo>() - 4usize];
    ["Offset of field: drm_mode_modeinfo::clock"]
        [::std::mem::offset_of!(drm_mode_modeinfo, clock) - 0usize];
    ["Offset of field: drm_mode_modeinfo::hdisplay"]
        [::std::mem::offset_of!(drm_mode_modeinfo, hdisplay) - 4usize];
    ["Offset of field: drm_mode_modeinfo::hsync_start"]
        [::std::mem::offset_of!(drm_mode_modeinfo, hsync_start) - 6usize];
    ["Offset of field: drm_mode_modeinfo::hsync_end"]
        [::std::mem::offset_of!(drm_mode_modeinfo, hsync_end) - 8usize];
    ["Offset of field: drm_mode_modeinfo::htotal"]
        [::std::mem::offset_of!(drm_mode_modeinfo, htotal) - 10usize];
    ["Offset of field: drm_mode_modeinfo::hskew"]
        [::std::mem::offset_of!(drm_mode_modeinfo, hskew) - 12usize];
    ["Offset of field: drm_mode_modeinfo::vdisplay"]
        [::std::mem::offset_of!(drm_mode_modeinfo, vdisplay) - 14usize];
    ["Offset of field: drm_mode_modeinfo::vsync_start"]
        [::std::mem::offset_of!(drm_mode_modeinfo, vsync_start) - 16usize];
    ["Offset of field: drm_mode_modeinfo::vsync_end"]
        [::std::mem::offset_of!(drm_mode_modeinfo, vsync_end) - 18usize];
    ["Offset of field: drm_mode_modeinfo::vtotal"]
        [::std::mem::offset_of!(drm_mode_modeinfo, vtotal) - 20usize];
    ["Offset of field: drm_mode_modeinfo::vscan"]
        [::std::mem::offset_of!(drm_mode_modeinfo, vscan) - 22usize];
    ["Offset of field: drm_mode_modeinfo::vrefresh"]
        [::std::mem::offset_of!(drm_mode_modeinfo, vrefresh) - 24usize];
    ["Offset of field: drm_mode_modeinfo::flags"]
        [::std::mem::offset_of!(drm_mode_modeinfo, flags) - 28usize];
    ["Offset of field: drm_mode_modeinfo::type_"]
        [::std::mem::offset_of!(drm_mode_modeinfo, type_) - 32usize];
    ["Offset of field: drm_mode_modeinfo::name"]
        [::std::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"][::std::mem::size_of::<drm_mode_card_res>() - 64usize];
    ["Alignment of drm_mode_card_res"][::std::mem::align_of::<drm_mode_card_res>() - 8usize];
    ["Offset of field: drm_mode_card_res::fb_id_ptr"]
        [::std::mem::offset_of!(drm_mode_card_res, fb_id_ptr) - 0usize];
    ["Offset of field: drm_mode_card_res::crtc_id_ptr"]
        [::std::mem::offset_of!(drm_mode_card_res, crtc_id_ptr) - 8usize];
    ["Offset of field: drm_mode_card_res::connector_id_ptr"]
        [::std::mem::offset_of!(drm_mode_card_res, connector_id_ptr) - 16usize];
    ["Offset of field: drm_mode_card_res::encoder_id_ptr"]
        [::std::mem::offset_of!(drm_mode_card_res, encoder_id_ptr) - 24usize];
    ["Offset of field: drm_mode_card_res::count_fbs"]
        [::std::mem::offset_of!(drm_mode_card_res, count_fbs) - 32usize];
    ["Offset of field: drm_mode_card_res::count_crtcs"]
        [::std::mem::offset_of!(drm_mode_card_res, count_crtcs) - 36usize];
    ["Offset of field: drm_mode_card_res::count_connectors"]
        [::std::mem::offset_of!(drm_mode_card_res, count_connectors) - 40usize];
    ["Offset of field: drm_mode_card_res::count_encoders"]
        [::std::mem::offset_of!(drm_mode_card_res, count_encoders) - 44usize];
    ["Offset of field: drm_mode_card_res::min_width"]
        [::std::mem::offset_of!(drm_mode_card_res, min_width) - 48usize];
    ["Offset of field: drm_mode_card_res::max_width"]
        [::std::mem::offset_of!(drm_mode_card_res, max_width) - 52usize];
    ["Offset of field: drm_mode_card_res::min_height"]
        [::std::mem::offset_of!(drm_mode_card_res, min_height) - 56usize];
    ["Offset of field: drm_mode_card_res::max_height"]
        [::std::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,
    pub crtc_id: __u32,
    pub fb_id: __u32,
    pub x: __u32,
    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"][::std::mem::size_of::<drm_mode_crtc>() - 104usize];
    ["Alignment of drm_mode_crtc"][::std::mem::align_of::<drm_mode_crtc>() - 8usize];
    ["Offset of field: drm_mode_crtc::set_connectors_ptr"]
        [::std::mem::offset_of!(drm_mode_crtc, set_connectors_ptr) - 0usize];
    ["Offset of field: drm_mode_crtc::count_connectors"]
        [::std::mem::offset_of!(drm_mode_crtc, count_connectors) - 8usize];
    ["Offset of field: drm_mode_crtc::crtc_id"]
        [::std::mem::offset_of!(drm_mode_crtc, crtc_id) - 12usize];
    ["Offset of field: drm_mode_crtc::fb_id"]
        [::std::mem::offset_of!(drm_mode_crtc, fb_id) - 16usize];
    ["Offset of field: drm_mode_crtc::x"][::std::mem::offset_of!(drm_mode_crtc, x) - 20usize];
    ["Offset of field: drm_mode_crtc::y"][::std::mem::offset_of!(drm_mode_crtc, y) - 24usize];
    ["Offset of field: drm_mode_crtc::gamma_size"]
        [::std::mem::offset_of!(drm_mode_crtc, gamma_size) - 28usize];
    ["Offset of field: drm_mode_crtc::mode_valid"]
        [::std::mem::offset_of!(drm_mode_crtc, mode_valid) - 32usize];
    ["Offset of field: drm_mode_crtc::mode"][::std::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"][::std::mem::size_of::<drm_mode_set_plane>() - 48usize];
    ["Alignment of drm_mode_set_plane"][::std::mem::align_of::<drm_mode_set_plane>() - 4usize];
    ["Offset of field: drm_mode_set_plane::plane_id"]
        [::std::mem::offset_of!(drm_mode_set_plane, plane_id) - 0usize];
    ["Offset of field: drm_mode_set_plane::crtc_id"]
        [::std::mem::offset_of!(drm_mode_set_plane, crtc_id) - 4usize];
    ["Offset of field: drm_mode_set_plane::fb_id"]
        [::std::mem::offset_of!(drm_mode_set_plane, fb_id) - 8usize];
    ["Offset of field: drm_mode_set_plane::flags"]
        [::std::mem::offset_of!(drm_mode_set_plane, flags) - 12usize];
    ["Offset of field: drm_mode_set_plane::crtc_x"]
        [::std::mem::offset_of!(drm_mode_set_plane, crtc_x) - 16usize];
    ["Offset of field: drm_mode_set_plane::crtc_y"]
        [::std::mem::offset_of!(drm_mode_set_plane, crtc_y) - 20usize];
    ["Offset of field: drm_mode_set_plane::crtc_w"]
        [::std::mem::offset_of!(drm_mode_set_plane, crtc_w) - 24usize];
    ["Offset of field: drm_mode_set_plane::crtc_h"]
        [::std::mem::offset_of!(drm_mode_set_plane, crtc_h) - 28usize];
    ["Offset of field: drm_mode_set_plane::src_x"]
        [::std::mem::offset_of!(drm_mode_set_plane, src_x) - 32usize];
    ["Offset of field: drm_mode_set_plane::src_y"]
        [::std::mem::offset_of!(drm_mode_set_plane, src_y) - 36usize];
    ["Offset of field: drm_mode_set_plane::src_h"]
        [::std::mem::offset_of!(drm_mode_set_plane, src_h) - 40usize];
    ["Offset of field: drm_mode_set_plane::src_w"]
        [::std::mem::offset_of!(drm_mode_set_plane, src_w) - 44usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_mode_get_plane {
    pub plane_id: __u32,
    pub crtc_id: __u32,
    pub fb_id: __u32,
    pub possible_crtcs: __u32,
    pub gamma_size: __u32,
    pub count_format_types: __u32,
    pub format_type_ptr: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_mode_get_plane"][::std::mem::size_of::<drm_mode_get_plane>() - 32usize];
    ["Alignment of drm_mode_get_plane"][::std::mem::align_of::<drm_mode_get_plane>() - 8usize];
    ["Offset of field: drm_mode_get_plane::plane_id"]
        [::std::mem::offset_of!(drm_mode_get_plane, plane_id) - 0usize];
    ["Offset of field: drm_mode_get_plane::crtc_id"]
        [::std::mem::offset_of!(drm_mode_get_plane, crtc_id) - 4usize];
    ["Offset of field: drm_mode_get_plane::fb_id"]
        [::std::mem::offset_of!(drm_mode_get_plane, fb_id) - 8usize];
    ["Offset of field: drm_mode_get_plane::possible_crtcs"]
        [::std::mem::offset_of!(drm_mode_get_plane, possible_crtcs) - 12usize];
    ["Offset of field: drm_mode_get_plane::gamma_size"]
        [::std::mem::offset_of!(drm_mode_get_plane, gamma_size) - 16usize];
    ["Offset of field: drm_mode_get_plane::count_format_types"]
        [::std::mem::offset_of!(drm_mode_get_plane, count_format_types) - 20usize];
    ["Offset of field: drm_mode_get_plane::format_type_ptr"]
        [::std::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"][::std::mem::size_of::<drm_mode_get_plane_res>() - 16usize];
    ["Alignment of drm_mode_get_plane_res"]
        [::std::mem::align_of::<drm_mode_get_plane_res>() - 8usize];
    ["Offset of field: drm_mode_get_plane_res::plane_id_ptr"]
        [::std::mem::offset_of!(drm_mode_get_plane_res, plane_id_ptr) - 0usize];
    ["Offset of field: drm_mode_get_plane_res::count_planes"]
        [::std::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,
    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"][::std::mem::size_of::<drm_mode_get_encoder>() - 20usize];
    ["Alignment of drm_mode_get_encoder"][::std::mem::align_of::<drm_mode_get_encoder>() - 4usize];
    ["Offset of field: drm_mode_get_encoder::encoder_id"]
        [::std::mem::offset_of!(drm_mode_get_encoder, encoder_id) - 0usize];
    ["Offset of field: drm_mode_get_encoder::encoder_type"]
        [::std::mem::offset_of!(drm_mode_get_encoder, encoder_type) - 4usize];
    ["Offset of field: drm_mode_get_encoder::crtc_id"]
        [::std::mem::offset_of!(drm_mode_get_encoder, crtc_id) - 8usize];
    ["Offset of field: drm_mode_get_encoder::possible_crtcs"]
        [::std::mem::offset_of!(drm_mode_get_encoder, possible_crtcs) - 12usize];
    ["Offset of field: drm_mode_get_encoder::possible_clones"]
        [::std::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 = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_mode_get_connector {
    pub encoders_ptr: __u64,
    pub modes_ptr: __u64,
    pub props_ptr: __u64,
    pub prop_values_ptr: __u64,
    pub count_modes: __u32,
    pub count_props: __u32,
    pub count_encoders: __u32,
    pub encoder_id: __u32,
    pub connector_id: __u32,
    pub connector_type: __u32,
    pub connector_type_id: __u32,
    pub connection: __u32,
    pub mm_width: __u32,
    pub mm_height: __u32,
    pub subpixel: __u32,
    pub pad: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_mode_get_connector"][::std::mem::size_of::<drm_mode_get_connector>() - 80usize];
    ["Alignment of drm_mode_get_connector"]
        [::std::mem::align_of::<drm_mode_get_connector>() - 8usize];
    ["Offset of field: drm_mode_get_connector::encoders_ptr"]
        [::std::mem::offset_of!(drm_mode_get_connector, encoders_ptr) - 0usize];
    ["Offset of field: drm_mode_get_connector::modes_ptr"]
        [::std::mem::offset_of!(drm_mode_get_connector, modes_ptr) - 8usize];
    ["Offset of field: drm_mode_get_connector::props_ptr"]
        [::std::mem::offset_of!(drm_mode_get_connector, props_ptr) - 16usize];
    ["Offset of field: drm_mode_get_connector::prop_values_ptr"]
        [::std::mem::offset_of!(drm_mode_get_connector, prop_values_ptr) - 24usize];
    ["Offset of field: drm_mode_get_connector::count_modes"]
        [::std::mem::offset_of!(drm_mode_get_connector, count_modes) - 32usize];
    ["Offset of field: drm_mode_get_connector::count_props"]
        [::std::mem::offset_of!(drm_mode_get_connector, count_props) - 36usize];
    ["Offset of field: drm_mode_get_connector::count_encoders"]
        [::std::mem::offset_of!(drm_mode_get_connector, count_encoders) - 40usize];
    ["Offset of field: drm_mode_get_connector::encoder_id"]
        [::std::mem::offset_of!(drm_mode_get_connector, encoder_id) - 44usize];
    ["Offset of field: drm_mode_get_connector::connector_id"]
        [::std::mem::offset_of!(drm_mode_get_connector, connector_id) - 48usize];
    ["Offset of field: drm_mode_get_connector::connector_type"]
        [::std::mem::offset_of!(drm_mode_get_connector, connector_type) - 52usize];
    ["Offset of field: drm_mode_get_connector::connector_type_id"]
        [::std::mem::offset_of!(drm_mode_get_connector, connector_type_id) - 56usize];
    ["Offset of field: drm_mode_get_connector::connection"]
        [::std::mem::offset_of!(drm_mode_get_connector, connection) - 60usize];
    ["Offset of field: drm_mode_get_connector::mm_width"]
        [::std::mem::offset_of!(drm_mode_get_connector, mm_width) - 64usize];
    ["Offset of field: drm_mode_get_connector::mm_height"]
        [::std::mem::offset_of!(drm_mode_get_connector, mm_height) - 68usize];
    ["Offset of field: drm_mode_get_connector::subpixel"]
        [::std::mem::offset_of!(drm_mode_get_connector, subpixel) - 72usize];
    ["Offset of field: drm_mode_get_connector::pad"]
        [::std::mem::offset_of!(drm_mode_get_connector, pad) - 76usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_mode_property_enum {
    pub value: __u64,
    pub name: [::std::os::raw::c_char; 32usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_mode_property_enum"][::std::mem::size_of::<drm_mode_property_enum>() - 40usize];
    ["Alignment of drm_mode_property_enum"]
        [::std::mem::align_of::<drm_mode_property_enum>() - 8usize];
    ["Offset of field: drm_mode_property_enum::value"]
        [::std::mem::offset_of!(drm_mode_property_enum, value) - 0usize];
    ["Offset of field: drm_mode_property_enum::name"]
        [::std::mem::offset_of!(drm_mode_property_enum, name) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_mode_get_property {
    pub values_ptr: __u64,
    pub enum_blob_ptr: __u64,
    pub prop_id: __u32,
    pub flags: __u32,
    pub name: [::std::os::raw::c_char; 32usize],
    pub count_values: __u32,
    pub count_enum_blobs: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_mode_get_property"][::std::mem::size_of::<drm_mode_get_property>() - 64usize];
    ["Alignment of drm_mode_get_property"]
        [::std::mem::align_of::<drm_mode_get_property>() - 8usize];
    ["Offset of field: drm_mode_get_property::values_ptr"]
        [::std::mem::offset_of!(drm_mode_get_property, values_ptr) - 0usize];
    ["Offset of field: drm_mode_get_property::enum_blob_ptr"]
        [::std::mem::offset_of!(drm_mode_get_property, enum_blob_ptr) - 8usize];
    ["Offset of field: drm_mode_get_property::prop_id"]
        [::std::mem::offset_of!(drm_mode_get_property, prop_id) - 16usize];
    ["Offset of field: drm_mode_get_property::flags"]
        [::std::mem::offset_of!(drm_mode_get_property, flags) - 20usize];
    ["Offset of field: drm_mode_get_property::name"]
        [::std::mem::offset_of!(drm_mode_get_property, name) - 24usize];
    ["Offset of field: drm_mode_get_property::count_values"]
        [::std::mem::offset_of!(drm_mode_get_property, count_values) - 56usize];
    ["Offset of field: drm_mode_get_property::count_enum_blobs"]
        [::std::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"]
        [::std::mem::size_of::<drm_mode_connector_set_property>() - 16usize];
    ["Alignment of drm_mode_connector_set_property"]
        [::std::mem::align_of::<drm_mode_connector_set_property>() - 8usize];
    ["Offset of field: drm_mode_connector_set_property::value"]
        [::std::mem::offset_of!(drm_mode_connector_set_property, value) - 0usize];
    ["Offset of field: drm_mode_connector_set_property::prop_id"]
        [::std::mem::offset_of!(drm_mode_connector_set_property, prop_id) - 8usize];
    ["Offset of field: drm_mode_connector_set_property::connector_id"]
        [::std::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"]
        [::std::mem::size_of::<drm_mode_obj_get_properties>() - 32usize];
    ["Alignment of drm_mode_obj_get_properties"]
        [::std::mem::align_of::<drm_mode_obj_get_properties>() - 8usize];
    ["Offset of field: drm_mode_obj_get_properties::props_ptr"]
        [::std::mem::offset_of!(drm_mode_obj_get_properties, props_ptr) - 0usize];
    ["Offset of field: drm_mode_obj_get_properties::prop_values_ptr"]
        [::std::mem::offset_of!(drm_mode_obj_get_properties, prop_values_ptr) - 8usize];
    ["Offset of field: drm_mode_obj_get_properties::count_props"]
        [::std::mem::offset_of!(drm_mode_obj_get_properties, count_props) - 16usize];
    ["Offset of field: drm_mode_obj_get_properties::obj_id"]
        [::std::mem::offset_of!(drm_mode_obj_get_properties, obj_id) - 20usize];
    ["Offset of field: drm_mode_obj_get_properties::obj_type"]
        [::std::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"]
        [::std::mem::size_of::<drm_mode_obj_set_property>() - 24usize];
    ["Alignment of drm_mode_obj_set_property"]
        [::std::mem::align_of::<drm_mode_obj_set_property>() - 8usize];
    ["Offset of field: drm_mode_obj_set_property::value"]
        [::std::mem::offset_of!(drm_mode_obj_set_property, value) - 0usize];
    ["Offset of field: drm_mode_obj_set_property::prop_id"]
        [::std::mem::offset_of!(drm_mode_obj_set_property, prop_id) - 8usize];
    ["Offset of field: drm_mode_obj_set_property::obj_id"]
        [::std::mem::offset_of!(drm_mode_obj_set_property, obj_id) - 12usize];
    ["Offset of field: drm_mode_obj_set_property::obj_type"]
        [::std::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"][::std::mem::size_of::<drm_mode_get_blob>() - 16usize];
    ["Alignment of drm_mode_get_blob"][::std::mem::align_of::<drm_mode_get_blob>() - 8usize];
    ["Offset of field: drm_mode_get_blob::blob_id"]
        [::std::mem::offset_of!(drm_mode_get_blob, blob_id) - 0usize];
    ["Offset of field: drm_mode_get_blob::length"]
        [::std::mem::offset_of!(drm_mode_get_blob, length) - 4usize];
    ["Offset of field: drm_mode_get_blob::data"]
        [::std::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"][::std::mem::size_of::<drm_mode_fb_cmd>() - 28usize];
    ["Alignment of drm_mode_fb_cmd"][::std::mem::align_of::<drm_mode_fb_cmd>() - 4usize];
    ["Offset of field: drm_mode_fb_cmd::fb_id"]
        [::std::mem::offset_of!(drm_mode_fb_cmd, fb_id) - 0usize];
    ["Offset of field: drm_mode_fb_cmd::width"]
        [::std::mem::offset_of!(drm_mode_fb_cmd, width) - 4usize];
    ["Offset of field: drm_mode_fb_cmd::height"]
        [::std::mem::offset_of!(drm_mode_fb_cmd, height) - 8usize];
    ["Offset of field: drm_mode_fb_cmd::pitch"]
        [::std::mem::offset_of!(drm_mode_fb_cmd, pitch) - 12usize];
    ["Offset of field: drm_mode_fb_cmd::bpp"]
        [::std::mem::offset_of!(drm_mode_fb_cmd, bpp) - 16usize];
    ["Offset of field: drm_mode_fb_cmd::depth"]
        [::std::mem::offset_of!(drm_mode_fb_cmd, depth) - 20usize];
    ["Offset of field: drm_mode_fb_cmd::handle"]
        [::std::mem::offset_of!(drm_mode_fb_cmd, handle) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_mode_fb_cmd2 {
    pub fb_id: __u32,
    pub width: __u32,
    pub height: __u32,
    pub pixel_format: __u32,
    pub flags: __u32,
    pub handles: [__u32; 4usize],
    pub pitches: [__u32; 4usize],
    pub offsets: [__u32; 4usize],
    pub modifier: [__u64; 4usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_mode_fb_cmd2"][::std::mem::size_of::<drm_mode_fb_cmd2>() - 104usize];
    ["Alignment of drm_mode_fb_cmd2"][::std::mem::align_of::<drm_mode_fb_cmd2>() - 8usize];
    ["Offset of field: drm_mode_fb_cmd2::fb_id"]
        [::std::mem::offset_of!(drm_mode_fb_cmd2, fb_id) - 0usize];
    ["Offset of field: drm_mode_fb_cmd2::width"]
        [::std::mem::offset_of!(drm_mode_fb_cmd2, width) - 4usize];
    ["Offset of field: drm_mode_fb_cmd2::height"]
        [::std::mem::offset_of!(drm_mode_fb_cmd2, height) - 8usize];
    ["Offset of field: drm_mode_fb_cmd2::pixel_format"]
        [::std::mem::offset_of!(drm_mode_fb_cmd2, pixel_format) - 12usize];
    ["Offset of field: drm_mode_fb_cmd2::flags"]
        [::std::mem::offset_of!(drm_mode_fb_cmd2, flags) - 16usize];
    ["Offset of field: drm_mode_fb_cmd2::handles"]
        [::std::mem::offset_of!(drm_mode_fb_cmd2, handles) - 20usize];
    ["Offset of field: drm_mode_fb_cmd2::pitches"]
        [::std::mem::offset_of!(drm_mode_fb_cmd2, pitches) - 36usize];
    ["Offset of field: drm_mode_fb_cmd2::offsets"]
        [::std::mem::offset_of!(drm_mode_fb_cmd2, offsets) - 52usize];
    ["Offset of field: drm_mode_fb_cmd2::modifier"]
        [::std::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"][::std::mem::size_of::<drm_mode_fb_dirty_cmd>() - 24usize];
    ["Alignment of drm_mode_fb_dirty_cmd"]
        [::std::mem::align_of::<drm_mode_fb_dirty_cmd>() - 8usize];
    ["Offset of field: drm_mode_fb_dirty_cmd::fb_id"]
        [::std::mem::offset_of!(drm_mode_fb_dirty_cmd, fb_id) - 0usize];
    ["Offset of field: drm_mode_fb_dirty_cmd::flags"]
        [::std::mem::offset_of!(drm_mode_fb_dirty_cmd, flags) - 4usize];
    ["Offset of field: drm_mode_fb_dirty_cmd::color"]
        [::std::mem::offset_of!(drm_mode_fb_dirty_cmd, color) - 8usize];
    ["Offset of field: drm_mode_fb_dirty_cmd::num_clips"]
        [::std::mem::offset_of!(drm_mode_fb_dirty_cmd, num_clips) - 12usize];
    ["Offset of field: drm_mode_fb_dirty_cmd::clips_ptr"]
        [::std::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"][::std::mem::size_of::<drm_mode_mode_cmd>() - 72usize];
    ["Alignment of drm_mode_mode_cmd"][::std::mem::align_of::<drm_mode_mode_cmd>() - 4usize];
    ["Offset of field: drm_mode_mode_cmd::connector_id"]
        [::std::mem::offset_of!(drm_mode_mode_cmd, connector_id) - 0usize];
    ["Offset of field: drm_mode_mode_cmd::mode"]
        [::std::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"][::std::mem::size_of::<drm_mode_cursor>() - 28usize];
    ["Alignment of drm_mode_cursor"][::std::mem::align_of::<drm_mode_cursor>() - 4usize];
    ["Offset of field: drm_mode_cursor::flags"]
        [::std::mem::offset_of!(drm_mode_cursor, flags) - 0usize];
    ["Offset of field: drm_mode_cursor::crtc_id"]
        [::std::mem::offset_of!(drm_mode_cursor, crtc_id) - 4usize];
    ["Offset of field: drm_mode_cursor::x"][::std::mem::offset_of!(drm_mode_cursor, x) - 8usize];
    ["Offset of field: drm_mode_cursor::y"][::std::mem::offset_of!(drm_mode_cursor, y) - 12usize];
    ["Offset of field: drm_mode_cursor::width"]
        [::std::mem::offset_of!(drm_mode_cursor, width) - 16usize];
    ["Offset of field: drm_mode_cursor::height"]
        [::std::mem::offset_of!(drm_mode_cursor, height) - 20usize];
    ["Offset of field: drm_mode_cursor::handle"]
        [::std::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"][::std::mem::size_of::<drm_mode_cursor2>() - 36usize];
    ["Alignment of drm_mode_cursor2"][::std::mem::align_of::<drm_mode_cursor2>() - 4usize];
    ["Offset of field: drm_mode_cursor2::flags"]
        [::std::mem::offset_of!(drm_mode_cursor2, flags) - 0usize];
    ["Offset of field: drm_mode_cursor2::crtc_id"]
        [::std::mem::offset_of!(drm_mode_cursor2, crtc_id) - 4usize];
    ["Offset of field: drm_mode_cursor2::x"][::std::mem::offset_of!(drm_mode_cursor2, x) - 8usize];
    ["Offset of field: drm_mode_cursor2::y"][::std::mem::offset_of!(drm_mode_cursor2, y) - 12usize];
    ["Offset of field: drm_mode_cursor2::width"]
        [::std::mem::offset_of!(drm_mode_cursor2, width) - 16usize];
    ["Offset of field: drm_mode_cursor2::height"]
        [::std::mem::offset_of!(drm_mode_cursor2, height) - 20usize];
    ["Offset of field: drm_mode_cursor2::handle"]
        [::std::mem::offset_of!(drm_mode_cursor2, handle) - 24usize];
    ["Offset of field: drm_mode_cursor2::hot_x"]
        [::std::mem::offset_of!(drm_mode_cursor2, hot_x) - 28usize];
    ["Offset of field: drm_mode_cursor2::hot_y"]
        [::std::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"][::std::mem::size_of::<drm_mode_crtc_lut>() - 32usize];
    ["Alignment of drm_mode_crtc_lut"][::std::mem::align_of::<drm_mode_crtc_lut>() - 8usize];
    ["Offset of field: drm_mode_crtc_lut::crtc_id"]
        [::std::mem::offset_of!(drm_mode_crtc_lut, crtc_id) - 0usize];
    ["Offset of field: drm_mode_crtc_lut::gamma_size"]
        [::std::mem::offset_of!(drm_mode_crtc_lut, gamma_size) - 4usize];
    ["Offset of field: drm_mode_crtc_lut::red"]
        [::std::mem::offset_of!(drm_mode_crtc_lut, red) - 8usize];
    ["Offset of field: drm_mode_crtc_lut::green"]
        [::std::mem::offset_of!(drm_mode_crtc_lut, green) - 16usize];
    ["Offset of field: drm_mode_crtc_lut::blue"]
        [::std::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"][::std::mem::size_of::<drm_color_ctm>() - 72usize];
    ["Alignment of drm_color_ctm"][::std::mem::align_of::<drm_color_ctm>() - 8usize];
    ["Offset of field: drm_color_ctm::matrix"]
        [::std::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"][::std::mem::size_of::<drm_color_lut>() - 8usize];
    ["Alignment of drm_color_lut"][::std::mem::align_of::<drm_color_lut>() - 2usize];
    ["Offset of field: drm_color_lut::red"][::std::mem::offset_of!(drm_color_lut, red) - 0usize];
    ["Offset of field: drm_color_lut::green"]
        [::std::mem::offset_of!(drm_color_lut, green) - 2usize];
    ["Offset of field: drm_color_lut::blue"][::std::mem::offset_of!(drm_color_lut, blue) - 4usize];
    ["Offset of field: drm_color_lut::reserved"]
        [::std::mem::offset_of!(drm_color_lut, reserved) - 6usize];
};
#[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"][::std::mem::size_of::<drm_plane_size_hint>() - 4usize];
    ["Alignment of drm_plane_size_hint"][::std::mem::align_of::<drm_plane_size_hint>() - 2usize];
    ["Offset of field: drm_plane_size_hint::width"]
        [::std::mem::offset_of!(drm_plane_size_hint, width) - 0usize];
    ["Offset of field: drm_plane_size_hint::height"]
        [::std::mem::offset_of!(drm_plane_size_hint, height) - 2usize];
};
#[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"][::std::mem::size_of::<drm_mode_crtc_page_flip>() - 24usize];
    ["Alignment of drm_mode_crtc_page_flip"]
        [::std::mem::align_of::<drm_mode_crtc_page_flip>() - 8usize];
    ["Offset of field: drm_mode_crtc_page_flip::crtc_id"]
        [::std::mem::offset_of!(drm_mode_crtc_page_flip, crtc_id) - 0usize];
    ["Offset of field: drm_mode_crtc_page_flip::fb_id"]
        [::std::mem::offset_of!(drm_mode_crtc_page_flip, fb_id) - 4usize];
    ["Offset of field: drm_mode_crtc_page_flip::flags"]
        [::std::mem::offset_of!(drm_mode_crtc_page_flip, flags) - 8usize];
    ["Offset of field: drm_mode_crtc_page_flip::reserved"]
        [::std::mem::offset_of!(drm_mode_crtc_page_flip, reserved) - 12usize];
    ["Offset of field: drm_mode_crtc_page_flip::user_data"]
        [::std::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"]
        [::std::mem::size_of::<drm_mode_crtc_page_flip_target>() - 24usize];
    ["Alignment of drm_mode_crtc_page_flip_target"]
        [::std::mem::align_of::<drm_mode_crtc_page_flip_target>() - 8usize];
    ["Offset of field: drm_mode_crtc_page_flip_target::crtc_id"]
        [::std::mem::offset_of!(drm_mode_crtc_page_flip_target, crtc_id) - 0usize];
    ["Offset of field: drm_mode_crtc_page_flip_target::fb_id"]
        [::std::mem::offset_of!(drm_mode_crtc_page_flip_target, fb_id) - 4usize];
    ["Offset of field: drm_mode_crtc_page_flip_target::flags"]
        [::std::mem::offset_of!(drm_mode_crtc_page_flip_target, flags) - 8usize];
    ["Offset of field: drm_mode_crtc_page_flip_target::sequence"]
        [::std::mem::offset_of!(drm_mode_crtc_page_flip_target, sequence) - 12usize];
    ["Offset of field: drm_mode_crtc_page_flip_target::user_data"]
        [::std::mem::offset_of!(drm_mode_crtc_page_flip_target, user_data) - 16usize];
};
#[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"][::std::mem::size_of::<drm_mode_create_dumb>() - 32usize];
    ["Alignment of drm_mode_create_dumb"][::std::mem::align_of::<drm_mode_create_dumb>() - 8usize];
    ["Offset of field: drm_mode_create_dumb::height"]
        [::std::mem::offset_of!(drm_mode_create_dumb, height) - 0usize];
    ["Offset of field: drm_mode_create_dumb::width"]
        [::std::mem::offset_of!(drm_mode_create_dumb, width) - 4usize];
    ["Offset of field: drm_mode_create_dumb::bpp"]
        [::std::mem::offset_of!(drm_mode_create_dumb, bpp) - 8usize];
    ["Offset of field: drm_mode_create_dumb::flags"]
        [::std::mem::offset_of!(drm_mode_create_dumb, flags) - 12usize];
    ["Offset of field: drm_mode_create_dumb::handle"]
        [::std::mem::offset_of!(drm_mode_create_dumb, handle) - 16usize];
    ["Offset of field: drm_mode_create_dumb::pitch"]
        [::std::mem::offset_of!(drm_mode_create_dumb, pitch) - 20usize];
    ["Offset of field: drm_mode_create_dumb::size"]
        [::std::mem::offset_of!(drm_mode_create_dumb, size) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_mode_map_dumb {
    pub handle: __u32,
    pub pad: __u32,
    pub offset: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_mode_map_dumb"][::std::mem::size_of::<drm_mode_map_dumb>() - 16usize];
    ["Alignment of drm_mode_map_dumb"][::std::mem::align_of::<drm_mode_map_dumb>() - 8usize];
    ["Offset of field: drm_mode_map_dumb::handle"]
        [::std::mem::offset_of!(drm_mode_map_dumb, handle) - 0usize];
    ["Offset of field: drm_mode_map_dumb::pad"]
        [::std::mem::offset_of!(drm_mode_map_dumb, pad) - 4usize];
    ["Offset of field: drm_mode_map_dumb::offset"]
        [::std::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"][::std::mem::size_of::<drm_mode_destroy_dumb>() - 4usize];
    ["Alignment of drm_mode_destroy_dumb"]
        [::std::mem::align_of::<drm_mode_destroy_dumb>() - 4usize];
    ["Offset of field: drm_mode_destroy_dumb::handle"]
        [::std::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"][::std::mem::size_of::<drm_mode_atomic>() - 56usize];
    ["Alignment of drm_mode_atomic"][::std::mem::align_of::<drm_mode_atomic>() - 8usize];
    ["Offset of field: drm_mode_atomic::flags"]
        [::std::mem::offset_of!(drm_mode_atomic, flags) - 0usize];
    ["Offset of field: drm_mode_atomic::count_objs"]
        [::std::mem::offset_of!(drm_mode_atomic, count_objs) - 4usize];
    ["Offset of field: drm_mode_atomic::objs_ptr"]
        [::std::mem::offset_of!(drm_mode_atomic, objs_ptr) - 8usize];
    ["Offset of field: drm_mode_atomic::count_props_ptr"]
        [::std::mem::offset_of!(drm_mode_atomic, count_props_ptr) - 16usize];
    ["Offset of field: drm_mode_atomic::props_ptr"]
        [::std::mem::offset_of!(drm_mode_atomic, props_ptr) - 24usize];
    ["Offset of field: drm_mode_atomic::prop_values_ptr"]
        [::std::mem::offset_of!(drm_mode_atomic, prop_values_ptr) - 32usize];
    ["Offset of field: drm_mode_atomic::reserved"]
        [::std::mem::offset_of!(drm_mode_atomic, reserved) - 40usize];
    ["Offset of field: drm_mode_atomic::user_data"]
        [::std::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"]
        [::std::mem::size_of::<drm_format_modifier_blob>() - 24usize];
    ["Alignment of drm_format_modifier_blob"]
        [::std::mem::align_of::<drm_format_modifier_blob>() - 4usize];
    ["Offset of field: drm_format_modifier_blob::version"]
        [::std::mem::offset_of!(drm_format_modifier_blob, version) - 0usize];
    ["Offset of field: drm_format_modifier_blob::flags"]
        [::std::mem::offset_of!(drm_format_modifier_blob, flags) - 4usize];
    ["Offset of field: drm_format_modifier_blob::count_formats"]
        [::std::mem::offset_of!(drm_format_modifier_blob, count_formats) - 8usize];
    ["Offset of field: drm_format_modifier_blob::formats_offset"]
        [::std::mem::offset_of!(drm_format_modifier_blob, formats_offset) - 12usize];
    ["Offset of field: drm_format_modifier_blob::count_modifiers"]
        [::std::mem::offset_of!(drm_format_modifier_blob, count_modifiers) - 16usize];
    ["Offset of field: drm_format_modifier_blob::modifiers_offset"]
        [::std::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"][::std::mem::size_of::<drm_format_modifier>() - 24usize];
    ["Alignment of drm_format_modifier"][::std::mem::align_of::<drm_format_modifier>() - 8usize];
    ["Offset of field: drm_format_modifier::formats"]
        [::std::mem::offset_of!(drm_format_modifier, formats) - 0usize];
    ["Offset of field: drm_format_modifier::offset"]
        [::std::mem::offset_of!(drm_format_modifier, offset) - 8usize];
    ["Offset of field: drm_format_modifier::pad"]
        [::std::mem::offset_of!(drm_format_modifier, pad) - 12usize];
    ["Offset of field: drm_format_modifier::modifier"]
        [::std::mem::offset_of!(drm_format_modifier, modifier) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_mode_create_blob {
    pub data: __u64,
    pub length: __u32,
    pub blob_id: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_mode_create_blob"][::std::mem::size_of::<drm_mode_create_blob>() - 16usize];
    ["Alignment of drm_mode_create_blob"][::std::mem::align_of::<drm_mode_create_blob>() - 8usize];
    ["Offset of field: drm_mode_create_blob::data"]
        [::std::mem::offset_of!(drm_mode_create_blob, data) - 0usize];
    ["Offset of field: drm_mode_create_blob::length"]
        [::std::mem::offset_of!(drm_mode_create_blob, length) - 8usize];
    ["Offset of field: drm_mode_create_blob::blob_id"]
        [::std::mem::offset_of!(drm_mode_create_blob, blob_id) - 12usize];
};
#[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"][::std::mem::size_of::<drm_mode_destroy_blob>() - 4usize];
    ["Alignment of drm_mode_destroy_blob"]
        [::std::mem::align_of::<drm_mode_destroy_blob>() - 4usize];
    ["Offset of field: drm_mode_destroy_blob::blob_id"]
        [::std::mem::offset_of!(drm_mode_destroy_blob, blob_id) - 0usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_mode_create_lease {
    pub object_ids: __u64,
    pub object_count: __u32,
    pub flags: __u32,
    pub lessee_id: __u32,
    pub fd: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_mode_create_lease"][::std::mem::size_of::<drm_mode_create_lease>() - 24usize];
    ["Alignment of drm_mode_create_lease"]
        [::std::mem::align_of::<drm_mode_create_lease>() - 8usize];
    ["Offset of field: drm_mode_create_lease::object_ids"]
        [::std::mem::offset_of!(drm_mode_create_lease, object_ids) - 0usize];
    ["Offset of field: drm_mode_create_lease::object_count"]
        [::std::mem::offset_of!(drm_mode_create_lease, object_count) - 8usize];
    ["Offset of field: drm_mode_create_lease::flags"]
        [::std::mem::offset_of!(drm_mode_create_lease, flags) - 12usize];
    ["Offset of field: drm_mode_create_lease::lessee_id"]
        [::std::mem::offset_of!(drm_mode_create_lease, lessee_id) - 16usize];
    ["Offset of field: drm_mode_create_lease::fd"]
        [::std::mem::offset_of!(drm_mode_create_lease, fd) - 20usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_mode_list_lessees {
    pub count_lessees: __u32,
    pub pad: __u32,
    pub lessees_ptr: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_mode_list_lessees"][::std::mem::size_of::<drm_mode_list_lessees>() - 16usize];
    ["Alignment of drm_mode_list_lessees"]
        [::std::mem::align_of::<drm_mode_list_lessees>() - 8usize];
    ["Offset of field: drm_mode_list_lessees::count_lessees"]
        [::std::mem::offset_of!(drm_mode_list_lessees, count_lessees) - 0usize];
    ["Offset of field: drm_mode_list_lessees::pad"]
        [::std::mem::offset_of!(drm_mode_list_lessees, pad) - 4usize];
    ["Offset of field: drm_mode_list_lessees::lessees_ptr"]
        [::std::mem::offset_of!(drm_mode_list_lessees, lessees_ptr) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_mode_get_lease {
    pub count_objects: __u32,
    pub pad: __u32,
    pub objects_ptr: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_mode_get_lease"][::std::mem::size_of::<drm_mode_get_lease>() - 16usize];
    ["Alignment of drm_mode_get_lease"][::std::mem::align_of::<drm_mode_get_lease>() - 8usize];
    ["Offset of field: drm_mode_get_lease::count_objects"]
        [::std::mem::offset_of!(drm_mode_get_lease, count_objects) - 0usize];
    ["Offset of field: drm_mode_get_lease::pad"]
        [::std::mem::offset_of!(drm_mode_get_lease, pad) - 4usize];
    ["Offset of field: drm_mode_get_lease::objects_ptr"]
        [::std::mem::offset_of!(drm_mode_get_lease, objects_ptr) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_mode_revoke_lease {
    pub lessee_id: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_mode_revoke_lease"][::std::mem::size_of::<drm_mode_revoke_lease>() - 4usize];
    ["Alignment of drm_mode_revoke_lease"]
        [::std::mem::align_of::<drm_mode_revoke_lease>() - 4usize];
    ["Offset of field: drm_mode_revoke_lease::lessee_id"]
        [::std::mem::offset_of!(drm_mode_revoke_lease, lessee_id) - 0usize];
};
#[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"][::std::mem::size_of::<drm_mode_rect>() - 16usize];
    ["Alignment of drm_mode_rect"][::std::mem::align_of::<drm_mode_rect>() - 4usize];
    ["Offset of field: drm_mode_rect::x1"][::std::mem::offset_of!(drm_mode_rect, x1) - 0usize];
    ["Offset of field: drm_mode_rect::y1"][::std::mem::offset_of!(drm_mode_rect, y1) - 4usize];
    ["Offset of field: drm_mode_rect::x2"][::std::mem::offset_of!(drm_mode_rect, x2) - 8usize];
    ["Offset of field: drm_mode_rect::y2"][::std::mem::offset_of!(drm_mode_rect, y2) - 12usize];
};
#[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"][::std::mem::size_of::<drm_mode_closefb>() - 8usize];
    ["Alignment of drm_mode_closefb"][::std::mem::align_of::<drm_mode_closefb>() - 4usize];
    ["Offset of field: drm_mode_closefb::fb_id"]
        [::std::mem::offset_of!(drm_mode_closefb, fb_id) - 0usize];
    ["Offset of field: drm_mode_closefb::pad"]
        [::std::mem::offset_of!(drm_mode_closefb, pad) - 4usize];
};
#[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"][::std::mem::size_of::<drm_event>() - 8usize];
    ["Alignment of drm_event"][::std::mem::align_of::<drm_event>() - 4usize];
    ["Offset of field: drm_event::type_"][::std::mem::offset_of!(drm_event, type_) - 0usize];
    ["Offset of field: drm_event::length"][::std::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"][::std::mem::size_of::<drm_event_vblank>() - 32usize];
    ["Alignment of drm_event_vblank"][::std::mem::align_of::<drm_event_vblank>() - 8usize];
    ["Offset of field: drm_event_vblank::base"]
        [::std::mem::offset_of!(drm_event_vblank, base) - 0usize];
    ["Offset of field: drm_event_vblank::user_data"]
        [::std::mem::offset_of!(drm_event_vblank, user_data) - 8usize];
    ["Offset of field: drm_event_vblank::tv_sec"]
        [::std::mem::offset_of!(drm_event_vblank, tv_sec) - 16usize];
    ["Offset of field: drm_event_vblank::tv_usec"]
        [::std::mem::offset_of!(drm_event_vblank, tv_usec) - 20usize];
    ["Offset of field: drm_event_vblank::sequence"]
        [::std::mem::offset_of!(drm_event_vblank, sequence) - 24usize];
    ["Offset of field: drm_event_vblank::crtc_id"]
        [::std::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"][::std::mem::size_of::<drm_event_crtc_sequence>() - 32usize];
    ["Alignment of drm_event_crtc_sequence"]
        [::std::mem::align_of::<drm_event_crtc_sequence>() - 8usize];
    ["Offset of field: drm_event_crtc_sequence::base"]
        [::std::mem::offset_of!(drm_event_crtc_sequence, base) - 0usize];
    ["Offset of field: drm_event_crtc_sequence::user_data"]
        [::std::mem::offset_of!(drm_event_crtc_sequence, user_data) - 8usize];
    ["Offset of field: drm_event_crtc_sequence::time_ns"]
        [::std::mem::offset_of!(drm_event_crtc_sequence, time_ns) - 16usize];
    ["Offset of field: drm_event_crtc_sequence::sequence"]
        [::std::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;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct i915_user_extension {
    pub next_extension: __u64,
    pub name: __u32,
    pub flags: __u32,
    pub rsvd: [__u32; 4usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of i915_user_extension"][::std::mem::size_of::<i915_user_extension>() - 32usize];
    ["Alignment of i915_user_extension"][::std::mem::align_of::<i915_user_extension>() - 8usize];
    ["Offset of field: i915_user_extension::next_extension"]
        [::std::mem::offset_of!(i915_user_extension, next_extension) - 0usize];
    ["Offset of field: i915_user_extension::name"]
        [::std::mem::offset_of!(i915_user_extension, name) - 8usize];
    ["Offset of field: i915_user_extension::flags"]
        [::std::mem::offset_of!(i915_user_extension, flags) - 12usize];
    ["Offset of field: i915_user_extension::rsvd"]
        [::std::mem::offset_of!(i915_user_extension, rsvd) - 16usize];
};
pub const drm_i915_gem_engine_class_I915_ENGINE_CLASS_RENDER: drm_i915_gem_engine_class = 0;
pub const drm_i915_gem_engine_class_I915_ENGINE_CLASS_COPY: drm_i915_gem_engine_class = 1;
pub const drm_i915_gem_engine_class_I915_ENGINE_CLASS_VIDEO: drm_i915_gem_engine_class = 2;
pub const drm_i915_gem_engine_class_I915_ENGINE_CLASS_VIDEO_ENHANCE: drm_i915_gem_engine_class = 3;
pub const drm_i915_gem_engine_class_I915_ENGINE_CLASS_COMPUTE: drm_i915_gem_engine_class = 4;
pub const drm_i915_gem_engine_class_I915_ENGINE_CLASS_INVALID: drm_i915_gem_engine_class = -1;
pub type drm_i915_gem_engine_class = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct i915_engine_class_instance {
    pub engine_class: __u16,
    pub engine_instance: __u16,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of i915_engine_class_instance"]
        [::std::mem::size_of::<i915_engine_class_instance>() - 4usize];
    ["Alignment of i915_engine_class_instance"]
        [::std::mem::align_of::<i915_engine_class_instance>() - 2usize];
    ["Offset of field: i915_engine_class_instance::engine_class"]
        [::std::mem::offset_of!(i915_engine_class_instance, engine_class) - 0usize];
    ["Offset of field: i915_engine_class_instance::engine_instance"]
        [::std::mem::offset_of!(i915_engine_class_instance, engine_instance) - 2usize];
};
pub const drm_i915_pmu_engine_sample_I915_SAMPLE_BUSY: drm_i915_pmu_engine_sample = 0;
pub const drm_i915_pmu_engine_sample_I915_SAMPLE_WAIT: drm_i915_pmu_engine_sample = 1;
pub const drm_i915_pmu_engine_sample_I915_SAMPLE_SEMA: drm_i915_pmu_engine_sample = 2;
pub type drm_i915_pmu_engine_sample = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _drm_i915_init {
    pub func: _drm_i915_init__bindgen_ty_1,
    pub mmio_offset: ::std::os::raw::c_uint,
    pub sarea_priv_offset: ::std::os::raw::c_int,
    pub ring_start: ::std::os::raw::c_uint,
    pub ring_end: ::std::os::raw::c_uint,
    pub ring_size: ::std::os::raw::c_uint,
    pub front_offset: ::std::os::raw::c_uint,
    pub back_offset: ::std::os::raw::c_uint,
    pub depth_offset: ::std::os::raw::c_uint,
    pub w: ::std::os::raw::c_uint,
    pub h: ::std::os::raw::c_uint,
    pub pitch: ::std::os::raw::c_uint,
    pub pitch_bits: ::std::os::raw::c_uint,
    pub back_pitch: ::std::os::raw::c_uint,
    pub depth_pitch: ::std::os::raw::c_uint,
    pub cpp: ::std::os::raw::c_uint,
    pub chipset: ::std::os::raw::c_uint,
}
pub const _drm_i915_init_I915_INIT_DMA: _drm_i915_init__bindgen_ty_1 = 1;
pub const _drm_i915_init_I915_CLEANUP_DMA: _drm_i915_init__bindgen_ty_1 = 2;
pub const _drm_i915_init_I915_RESUME_DMA: _drm_i915_init__bindgen_ty_1 = 3;
pub type _drm_i915_init__bindgen_ty_1 = ::std::os::raw::c_uint;
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of _drm_i915_init"][::std::mem::size_of::<_drm_i915_init>() - 68usize];
    ["Alignment of _drm_i915_init"][::std::mem::align_of::<_drm_i915_init>() - 4usize];
    ["Offset of field: _drm_i915_init::func"]
        [::std::mem::offset_of!(_drm_i915_init, func) - 0usize];
    ["Offset of field: _drm_i915_init::mmio_offset"]
        [::std::mem::offset_of!(_drm_i915_init, mmio_offset) - 4usize];
    ["Offset of field: _drm_i915_init::sarea_priv_offset"]
        [::std::mem::offset_of!(_drm_i915_init, sarea_priv_offset) - 8usize];
    ["Offset of field: _drm_i915_init::ring_start"]
        [::std::mem::offset_of!(_drm_i915_init, ring_start) - 12usize];
    ["Offset of field: _drm_i915_init::ring_end"]
        [::std::mem::offset_of!(_drm_i915_init, ring_end) - 16usize];
    ["Offset of field: _drm_i915_init::ring_size"]
        [::std::mem::offset_of!(_drm_i915_init, ring_size) - 20usize];
    ["Offset of field: _drm_i915_init::front_offset"]
        [::std::mem::offset_of!(_drm_i915_init, front_offset) - 24usize];
    ["Offset of field: _drm_i915_init::back_offset"]
        [::std::mem::offset_of!(_drm_i915_init, back_offset) - 28usize];
    ["Offset of field: _drm_i915_init::depth_offset"]
        [::std::mem::offset_of!(_drm_i915_init, depth_offset) - 32usize];
    ["Offset of field: _drm_i915_init::w"][::std::mem::offset_of!(_drm_i915_init, w) - 36usize];
    ["Offset of field: _drm_i915_init::h"][::std::mem::offset_of!(_drm_i915_init, h) - 40usize];
    ["Offset of field: _drm_i915_init::pitch"]
        [::std::mem::offset_of!(_drm_i915_init, pitch) - 44usize];
    ["Offset of field: _drm_i915_init::pitch_bits"]
        [::std::mem::offset_of!(_drm_i915_init, pitch_bits) - 48usize];
    ["Offset of field: _drm_i915_init::back_pitch"]
        [::std::mem::offset_of!(_drm_i915_init, back_pitch) - 52usize];
    ["Offset of field: _drm_i915_init::depth_pitch"]
        [::std::mem::offset_of!(_drm_i915_init, depth_pitch) - 56usize];
    ["Offset of field: _drm_i915_init::cpp"][::std::mem::offset_of!(_drm_i915_init, cpp) - 60usize];
    ["Offset of field: _drm_i915_init::chipset"]
        [::std::mem::offset_of!(_drm_i915_init, chipset) - 64usize];
};
pub type drm_i915_init_t = _drm_i915_init;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _drm_i915_sarea {
    pub texList: [drm_tex_region; 256usize],
    pub last_upload: ::std::os::raw::c_int,
    pub last_enqueue: ::std::os::raw::c_int,
    pub last_dispatch: ::std::os::raw::c_int,
    pub ctxOwner: ::std::os::raw::c_int,
    pub texAge: ::std::os::raw::c_int,
    pub pf_enabled: ::std::os::raw::c_int,
    pub pf_active: ::std::os::raw::c_int,
    pub pf_current_page: ::std::os::raw::c_int,
    pub perf_boxes: ::std::os::raw::c_int,
    pub width: ::std::os::raw::c_int,
    pub height: ::std::os::raw::c_int,
    pub front_handle: drm_handle_t,
    pub front_offset: ::std::os::raw::c_int,
    pub front_size: ::std::os::raw::c_int,
    pub back_handle: drm_handle_t,
    pub back_offset: ::std::os::raw::c_int,
    pub back_size: ::std::os::raw::c_int,
    pub depth_handle: drm_handle_t,
    pub depth_offset: ::std::os::raw::c_int,
    pub depth_size: ::std::os::raw::c_int,
    pub tex_handle: drm_handle_t,
    pub tex_offset: ::std::os::raw::c_int,
    pub tex_size: ::std::os::raw::c_int,
    pub log_tex_granularity: ::std::os::raw::c_int,
    pub pitch: ::std::os::raw::c_int,
    pub rotation: ::std::os::raw::c_int,
    pub rotated_offset: ::std::os::raw::c_int,
    pub rotated_size: ::std::os::raw::c_int,
    pub rotated_pitch: ::std::os::raw::c_int,
    pub virtualX: ::std::os::raw::c_int,
    pub virtualY: ::std::os::raw::c_int,
    pub front_tiled: ::std::os::raw::c_uint,
    pub back_tiled: ::std::os::raw::c_uint,
    pub depth_tiled: ::std::os::raw::c_uint,
    pub rotated_tiled: ::std::os::raw::c_uint,
    pub rotated2_tiled: ::std::os::raw::c_uint,
    pub pipeA_x: ::std::os::raw::c_int,
    pub pipeA_y: ::std::os::raw::c_int,
    pub pipeA_w: ::std::os::raw::c_int,
    pub pipeA_h: ::std::os::raw::c_int,
    pub pipeB_x: ::std::os::raw::c_int,
    pub pipeB_y: ::std::os::raw::c_int,
    pub pipeB_w: ::std::os::raw::c_int,
    pub pipeB_h: ::std::os::raw::c_int,
    pub unused_handle: drm_handle_t,
    pub unused1: __u32,
    pub unused2: __u32,
    pub unused3: __u32,
    pub front_bo_handle: __u32,
    pub back_bo_handle: __u32,
    pub unused_bo_handle: __u32,
    pub depth_bo_handle: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of _drm_i915_sarea"][::std::mem::size_of::<_drm_i915_sarea>() - 2256usize];
    ["Alignment of _drm_i915_sarea"][::std::mem::align_of::<_drm_i915_sarea>() - 4usize];
    ["Offset of field: _drm_i915_sarea::texList"]
        [::std::mem::offset_of!(_drm_i915_sarea, texList) - 0usize];
    ["Offset of field: _drm_i915_sarea::last_upload"]
        [::std::mem::offset_of!(_drm_i915_sarea, last_upload) - 2048usize];
    ["Offset of field: _drm_i915_sarea::last_enqueue"]
        [::std::mem::offset_of!(_drm_i915_sarea, last_enqueue) - 2052usize];
    ["Offset of field: _drm_i915_sarea::last_dispatch"]
        [::std::mem::offset_of!(_drm_i915_sarea, last_dispatch) - 2056usize];
    ["Offset of field: _drm_i915_sarea::ctxOwner"]
        [::std::mem::offset_of!(_drm_i915_sarea, ctxOwner) - 2060usize];
    ["Offset of field: _drm_i915_sarea::texAge"]
        [::std::mem::offset_of!(_drm_i915_sarea, texAge) - 2064usize];
    ["Offset of field: _drm_i915_sarea::pf_enabled"]
        [::std::mem::offset_of!(_drm_i915_sarea, pf_enabled) - 2068usize];
    ["Offset of field: _drm_i915_sarea::pf_active"]
        [::std::mem::offset_of!(_drm_i915_sarea, pf_active) - 2072usize];
    ["Offset of field: _drm_i915_sarea::pf_current_page"]
        [::std::mem::offset_of!(_drm_i915_sarea, pf_current_page) - 2076usize];
    ["Offset of field: _drm_i915_sarea::perf_boxes"]
        [::std::mem::offset_of!(_drm_i915_sarea, perf_boxes) - 2080usize];
    ["Offset of field: _drm_i915_sarea::width"]
        [::std::mem::offset_of!(_drm_i915_sarea, width) - 2084usize];
    ["Offset of field: _drm_i915_sarea::height"]
        [::std::mem::offset_of!(_drm_i915_sarea, height) - 2088usize];
    ["Offset of field: _drm_i915_sarea::front_handle"]
        [::std::mem::offset_of!(_drm_i915_sarea, front_handle) - 2092usize];
    ["Offset of field: _drm_i915_sarea::front_offset"]
        [::std::mem::offset_of!(_drm_i915_sarea, front_offset) - 2096usize];
    ["Offset of field: _drm_i915_sarea::front_size"]
        [::std::mem::offset_of!(_drm_i915_sarea, front_size) - 2100usize];
    ["Offset of field: _drm_i915_sarea::back_handle"]
        [::std::mem::offset_of!(_drm_i915_sarea, back_handle) - 2104usize];
    ["Offset of field: _drm_i915_sarea::back_offset"]
        [::std::mem::offset_of!(_drm_i915_sarea, back_offset) - 2108usize];
    ["Offset of field: _drm_i915_sarea::back_size"]
        [::std::mem::offset_of!(_drm_i915_sarea, back_size) - 2112usize];
    ["Offset of field: _drm_i915_sarea::depth_handle"]
        [::std::mem::offset_of!(_drm_i915_sarea, depth_handle) - 2116usize];
    ["Offset of field: _drm_i915_sarea::depth_offset"]
        [::std::mem::offset_of!(_drm_i915_sarea, depth_offset) - 2120usize];
    ["Offset of field: _drm_i915_sarea::depth_size"]
        [::std::mem::offset_of!(_drm_i915_sarea, depth_size) - 2124usize];
    ["Offset of field: _drm_i915_sarea::tex_handle"]
        [::std::mem::offset_of!(_drm_i915_sarea, tex_handle) - 2128usize];
    ["Offset of field: _drm_i915_sarea::tex_offset"]
        [::std::mem::offset_of!(_drm_i915_sarea, tex_offset) - 2132usize];
    ["Offset of field: _drm_i915_sarea::tex_size"]
        [::std::mem::offset_of!(_drm_i915_sarea, tex_size) - 2136usize];
    ["Offset of field: _drm_i915_sarea::log_tex_granularity"]
        [::std::mem::offset_of!(_drm_i915_sarea, log_tex_granularity) - 2140usize];
    ["Offset of field: _drm_i915_sarea::pitch"]
        [::std::mem::offset_of!(_drm_i915_sarea, pitch) - 2144usize];
    ["Offset of field: _drm_i915_sarea::rotation"]
        [::std::mem::offset_of!(_drm_i915_sarea, rotation) - 2148usize];
    ["Offset of field: _drm_i915_sarea::rotated_offset"]
        [::std::mem::offset_of!(_drm_i915_sarea, rotated_offset) - 2152usize];
    ["Offset of field: _drm_i915_sarea::rotated_size"]
        [::std::mem::offset_of!(_drm_i915_sarea, rotated_size) - 2156usize];
    ["Offset of field: _drm_i915_sarea::rotated_pitch"]
        [::std::mem::offset_of!(_drm_i915_sarea, rotated_pitch) - 2160usize];
    ["Offset of field: _drm_i915_sarea::virtualX"]
        [::std::mem::offset_of!(_drm_i915_sarea, virtualX) - 2164usize];
    ["Offset of field: _drm_i915_sarea::virtualY"]
        [::std::mem::offset_of!(_drm_i915_sarea, virtualY) - 2168usize];
    ["Offset of field: _drm_i915_sarea::front_tiled"]
        [::std::mem::offset_of!(_drm_i915_sarea, front_tiled) - 2172usize];
    ["Offset of field: _drm_i915_sarea::back_tiled"]
        [::std::mem::offset_of!(_drm_i915_sarea, back_tiled) - 2176usize];
    ["Offset of field: _drm_i915_sarea::depth_tiled"]
        [::std::mem::offset_of!(_drm_i915_sarea, depth_tiled) - 2180usize];
    ["Offset of field: _drm_i915_sarea::rotated_tiled"]
        [::std::mem::offset_of!(_drm_i915_sarea, rotated_tiled) - 2184usize];
    ["Offset of field: _drm_i915_sarea::rotated2_tiled"]
        [::std::mem::offset_of!(_drm_i915_sarea, rotated2_tiled) - 2188usize];
    ["Offset of field: _drm_i915_sarea::pipeA_x"]
        [::std::mem::offset_of!(_drm_i915_sarea, pipeA_x) - 2192usize];
    ["Offset of field: _drm_i915_sarea::pipeA_y"]
        [::std::mem::offset_of!(_drm_i915_sarea, pipeA_y) - 2196usize];
    ["Offset of field: _drm_i915_sarea::pipeA_w"]
        [::std::mem::offset_of!(_drm_i915_sarea, pipeA_w) - 2200usize];
    ["Offset of field: _drm_i915_sarea::pipeA_h"]
        [::std::mem::offset_of!(_drm_i915_sarea, pipeA_h) - 2204usize];
    ["Offset of field: _drm_i915_sarea::pipeB_x"]
        [::std::mem::offset_of!(_drm_i915_sarea, pipeB_x) - 2208usize];
    ["Offset of field: _drm_i915_sarea::pipeB_y"]
        [::std::mem::offset_of!(_drm_i915_sarea, pipeB_y) - 2212usize];
    ["Offset of field: _drm_i915_sarea::pipeB_w"]
        [::std::mem::offset_of!(_drm_i915_sarea, pipeB_w) - 2216usize];
    ["Offset of field: _drm_i915_sarea::pipeB_h"]
        [::std::mem::offset_of!(_drm_i915_sarea, pipeB_h) - 2220usize];
    ["Offset of field: _drm_i915_sarea::unused_handle"]
        [::std::mem::offset_of!(_drm_i915_sarea, unused_handle) - 2224usize];
    ["Offset of field: _drm_i915_sarea::unused1"]
        [::std::mem::offset_of!(_drm_i915_sarea, unused1) - 2228usize];
    ["Offset of field: _drm_i915_sarea::unused2"]
        [::std::mem::offset_of!(_drm_i915_sarea, unused2) - 2232usize];
    ["Offset of field: _drm_i915_sarea::unused3"]
        [::std::mem::offset_of!(_drm_i915_sarea, unused3) - 2236usize];
    ["Offset of field: _drm_i915_sarea::front_bo_handle"]
        [::std::mem::offset_of!(_drm_i915_sarea, front_bo_handle) - 2240usize];
    ["Offset of field: _drm_i915_sarea::back_bo_handle"]
        [::std::mem::offset_of!(_drm_i915_sarea, back_bo_handle) - 2244usize];
    ["Offset of field: _drm_i915_sarea::unused_bo_handle"]
        [::std::mem::offset_of!(_drm_i915_sarea, unused_bo_handle) - 2248usize];
    ["Offset of field: _drm_i915_sarea::depth_bo_handle"]
        [::std::mem::offset_of!(_drm_i915_sarea, depth_bo_handle) - 2252usize];
};
pub type drm_i915_sarea_t = _drm_i915_sarea;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_batchbuffer {
    pub start: ::std::os::raw::c_int,
    pub used: ::std::os::raw::c_int,
    pub DR1: ::std::os::raw::c_int,
    pub DR4: ::std::os::raw::c_int,
    pub num_cliprects: ::std::os::raw::c_int,
    pub cliprects: *mut drm_clip_rect,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_batchbuffer"][::std::mem::size_of::<drm_i915_batchbuffer>() - 32usize];
    ["Alignment of drm_i915_batchbuffer"][::std::mem::align_of::<drm_i915_batchbuffer>() - 8usize];
    ["Offset of field: drm_i915_batchbuffer::start"]
        [::std::mem::offset_of!(drm_i915_batchbuffer, start) - 0usize];
    ["Offset of field: drm_i915_batchbuffer::used"]
        [::std::mem::offset_of!(drm_i915_batchbuffer, used) - 4usize];
    ["Offset of field: drm_i915_batchbuffer::DR1"]
        [::std::mem::offset_of!(drm_i915_batchbuffer, DR1) - 8usize];
    ["Offset of field: drm_i915_batchbuffer::DR4"]
        [::std::mem::offset_of!(drm_i915_batchbuffer, DR4) - 12usize];
    ["Offset of field: drm_i915_batchbuffer::num_cliprects"]
        [::std::mem::offset_of!(drm_i915_batchbuffer, num_cliprects) - 16usize];
    ["Offset of field: drm_i915_batchbuffer::cliprects"]
        [::std::mem::offset_of!(drm_i915_batchbuffer, cliprects) - 24usize];
};
pub type drm_i915_batchbuffer_t = drm_i915_batchbuffer;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _drm_i915_cmdbuffer {
    pub buf: *mut ::std::os::raw::c_char,
    pub sz: ::std::os::raw::c_int,
    pub DR1: ::std::os::raw::c_int,
    pub DR4: ::std::os::raw::c_int,
    pub num_cliprects: ::std::os::raw::c_int,
    pub cliprects: *mut drm_clip_rect,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of _drm_i915_cmdbuffer"][::std::mem::size_of::<_drm_i915_cmdbuffer>() - 32usize];
    ["Alignment of _drm_i915_cmdbuffer"][::std::mem::align_of::<_drm_i915_cmdbuffer>() - 8usize];
    ["Offset of field: _drm_i915_cmdbuffer::buf"]
        [::std::mem::offset_of!(_drm_i915_cmdbuffer, buf) - 0usize];
    ["Offset of field: _drm_i915_cmdbuffer::sz"]
        [::std::mem::offset_of!(_drm_i915_cmdbuffer, sz) - 8usize];
    ["Offset of field: _drm_i915_cmdbuffer::DR1"]
        [::std::mem::offset_of!(_drm_i915_cmdbuffer, DR1) - 12usize];
    ["Offset of field: _drm_i915_cmdbuffer::DR4"]
        [::std::mem::offset_of!(_drm_i915_cmdbuffer, DR4) - 16usize];
    ["Offset of field: _drm_i915_cmdbuffer::num_cliprects"]
        [::std::mem::offset_of!(_drm_i915_cmdbuffer, num_cliprects) - 20usize];
    ["Offset of field: _drm_i915_cmdbuffer::cliprects"]
        [::std::mem::offset_of!(_drm_i915_cmdbuffer, cliprects) - 24usize];
};
pub type drm_i915_cmdbuffer_t = _drm_i915_cmdbuffer;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_irq_emit {
    pub irq_seq: *mut ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_irq_emit"][::std::mem::size_of::<drm_i915_irq_emit>() - 8usize];
    ["Alignment of drm_i915_irq_emit"][::std::mem::align_of::<drm_i915_irq_emit>() - 8usize];
    ["Offset of field: drm_i915_irq_emit::irq_seq"]
        [::std::mem::offset_of!(drm_i915_irq_emit, irq_seq) - 0usize];
};
pub type drm_i915_irq_emit_t = drm_i915_irq_emit;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_irq_wait {
    pub irq_seq: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_irq_wait"][::std::mem::size_of::<drm_i915_irq_wait>() - 4usize];
    ["Alignment of drm_i915_irq_wait"][::std::mem::align_of::<drm_i915_irq_wait>() - 4usize];
    ["Offset of field: drm_i915_irq_wait::irq_seq"]
        [::std::mem::offset_of!(drm_i915_irq_wait, irq_seq) - 0usize];
};
pub type drm_i915_irq_wait_t = drm_i915_irq_wait;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_getparam {
    pub param: __s32,
    pub value: *mut ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_getparam"][::std::mem::size_of::<drm_i915_getparam>() - 16usize];
    ["Alignment of drm_i915_getparam"][::std::mem::align_of::<drm_i915_getparam>() - 8usize];
    ["Offset of field: drm_i915_getparam::param"]
        [::std::mem::offset_of!(drm_i915_getparam, param) - 0usize];
    ["Offset of field: drm_i915_getparam::value"]
        [::std::mem::offset_of!(drm_i915_getparam, value) - 8usize];
};
pub type drm_i915_getparam_t = drm_i915_getparam;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_setparam {
    pub param: ::std::os::raw::c_int,
    pub value: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_setparam"][::std::mem::size_of::<drm_i915_setparam>() - 8usize];
    ["Alignment of drm_i915_setparam"][::std::mem::align_of::<drm_i915_setparam>() - 4usize];
    ["Offset of field: drm_i915_setparam::param"]
        [::std::mem::offset_of!(drm_i915_setparam, param) - 0usize];
    ["Offset of field: drm_i915_setparam::value"]
        [::std::mem::offset_of!(drm_i915_setparam, value) - 4usize];
};
pub type drm_i915_setparam_t = drm_i915_setparam;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_mem_alloc {
    pub region: ::std::os::raw::c_int,
    pub alignment: ::std::os::raw::c_int,
    pub size: ::std::os::raw::c_int,
    pub region_offset: *mut ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_mem_alloc"][::std::mem::size_of::<drm_i915_mem_alloc>() - 24usize];
    ["Alignment of drm_i915_mem_alloc"][::std::mem::align_of::<drm_i915_mem_alloc>() - 8usize];
    ["Offset of field: drm_i915_mem_alloc::region"]
        [::std::mem::offset_of!(drm_i915_mem_alloc, region) - 0usize];
    ["Offset of field: drm_i915_mem_alloc::alignment"]
        [::std::mem::offset_of!(drm_i915_mem_alloc, alignment) - 4usize];
    ["Offset of field: drm_i915_mem_alloc::size"]
        [::std::mem::offset_of!(drm_i915_mem_alloc, size) - 8usize];
    ["Offset of field: drm_i915_mem_alloc::region_offset"]
        [::std::mem::offset_of!(drm_i915_mem_alloc, region_offset) - 16usize];
};
pub type drm_i915_mem_alloc_t = drm_i915_mem_alloc;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_mem_free {
    pub region: ::std::os::raw::c_int,
    pub region_offset: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_mem_free"][::std::mem::size_of::<drm_i915_mem_free>() - 8usize];
    ["Alignment of drm_i915_mem_free"][::std::mem::align_of::<drm_i915_mem_free>() - 4usize];
    ["Offset of field: drm_i915_mem_free::region"]
        [::std::mem::offset_of!(drm_i915_mem_free, region) - 0usize];
    ["Offset of field: drm_i915_mem_free::region_offset"]
        [::std::mem::offset_of!(drm_i915_mem_free, region_offset) - 4usize];
};
pub type drm_i915_mem_free_t = drm_i915_mem_free;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_mem_init_heap {
    pub region: ::std::os::raw::c_int,
    pub size: ::std::os::raw::c_int,
    pub start: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_mem_init_heap"][::std::mem::size_of::<drm_i915_mem_init_heap>() - 12usize];
    ["Alignment of drm_i915_mem_init_heap"]
        [::std::mem::align_of::<drm_i915_mem_init_heap>() - 4usize];
    ["Offset of field: drm_i915_mem_init_heap::region"]
        [::std::mem::offset_of!(drm_i915_mem_init_heap, region) - 0usize];
    ["Offset of field: drm_i915_mem_init_heap::size"]
        [::std::mem::offset_of!(drm_i915_mem_init_heap, size) - 4usize];
    ["Offset of field: drm_i915_mem_init_heap::start"]
        [::std::mem::offset_of!(drm_i915_mem_init_heap, start) - 8usize];
};
pub type drm_i915_mem_init_heap_t = drm_i915_mem_init_heap;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_mem_destroy_heap {
    pub region: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_mem_destroy_heap"]
        [::std::mem::size_of::<drm_i915_mem_destroy_heap>() - 4usize];
    ["Alignment of drm_i915_mem_destroy_heap"]
        [::std::mem::align_of::<drm_i915_mem_destroy_heap>() - 4usize];
    ["Offset of field: drm_i915_mem_destroy_heap::region"]
        [::std::mem::offset_of!(drm_i915_mem_destroy_heap, region) - 0usize];
};
pub type drm_i915_mem_destroy_heap_t = drm_i915_mem_destroy_heap;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_vblank_pipe {
    pub pipe: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_vblank_pipe"][::std::mem::size_of::<drm_i915_vblank_pipe>() - 4usize];
    ["Alignment of drm_i915_vblank_pipe"][::std::mem::align_of::<drm_i915_vblank_pipe>() - 4usize];
    ["Offset of field: drm_i915_vblank_pipe::pipe"]
        [::std::mem::offset_of!(drm_i915_vblank_pipe, pipe) - 0usize];
};
pub type drm_i915_vblank_pipe_t = drm_i915_vblank_pipe;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_vblank_swap {
    pub drawable: drm_drawable_t,
    pub seqtype: drm_vblank_seq_type,
    pub sequence: ::std::os::raw::c_uint,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_vblank_swap"][::std::mem::size_of::<drm_i915_vblank_swap>() - 12usize];
    ["Alignment of drm_i915_vblank_swap"][::std::mem::align_of::<drm_i915_vblank_swap>() - 4usize];
    ["Offset of field: drm_i915_vblank_swap::drawable"]
        [::std::mem::offset_of!(drm_i915_vblank_swap, drawable) - 0usize];
    ["Offset of field: drm_i915_vblank_swap::seqtype"]
        [::std::mem::offset_of!(drm_i915_vblank_swap, seqtype) - 4usize];
    ["Offset of field: drm_i915_vblank_swap::sequence"]
        [::std::mem::offset_of!(drm_i915_vblank_swap, sequence) - 8usize];
};
pub type drm_i915_vblank_swap_t = drm_i915_vblank_swap;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_hws_addr {
    pub addr: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_hws_addr"][::std::mem::size_of::<drm_i915_hws_addr>() - 8usize];
    ["Alignment of drm_i915_hws_addr"][::std::mem::align_of::<drm_i915_hws_addr>() - 8usize];
    ["Offset of field: drm_i915_hws_addr::addr"]
        [::std::mem::offset_of!(drm_i915_hws_addr, addr) - 0usize];
};
pub type drm_i915_hws_addr_t = drm_i915_hws_addr;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_gem_init {
    pub gtt_start: __u64,
    pub gtt_end: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_gem_init"][::std::mem::size_of::<drm_i915_gem_init>() - 16usize];
    ["Alignment of drm_i915_gem_init"][::std::mem::align_of::<drm_i915_gem_init>() - 8usize];
    ["Offset of field: drm_i915_gem_init::gtt_start"]
        [::std::mem::offset_of!(drm_i915_gem_init, gtt_start) - 0usize];
    ["Offset of field: drm_i915_gem_init::gtt_end"]
        [::std::mem::offset_of!(drm_i915_gem_init, gtt_end) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_gem_create {
    pub size: __u64,
    pub handle: __u32,
    pub pad: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_gem_create"][::std::mem::size_of::<drm_i915_gem_create>() - 16usize];
    ["Alignment of drm_i915_gem_create"][::std::mem::align_of::<drm_i915_gem_create>() - 8usize];
    ["Offset of field: drm_i915_gem_create::size"]
        [::std::mem::offset_of!(drm_i915_gem_create, size) - 0usize];
    ["Offset of field: drm_i915_gem_create::handle"]
        [::std::mem::offset_of!(drm_i915_gem_create, handle) - 8usize];
    ["Offset of field: drm_i915_gem_create::pad"]
        [::std::mem::offset_of!(drm_i915_gem_create, pad) - 12usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_gem_pread {
    pub handle: __u32,
    pub pad: __u32,
    pub offset: __u64,
    pub size: __u64,
    pub data_ptr: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_gem_pread"][::std::mem::size_of::<drm_i915_gem_pread>() - 32usize];
    ["Alignment of drm_i915_gem_pread"][::std::mem::align_of::<drm_i915_gem_pread>() - 8usize];
    ["Offset of field: drm_i915_gem_pread::handle"]
        [::std::mem::offset_of!(drm_i915_gem_pread, handle) - 0usize];
    ["Offset of field: drm_i915_gem_pread::pad"]
        [::std::mem::offset_of!(drm_i915_gem_pread, pad) - 4usize];
    ["Offset of field: drm_i915_gem_pread::offset"]
        [::std::mem::offset_of!(drm_i915_gem_pread, offset) - 8usize];
    ["Offset of field: drm_i915_gem_pread::size"]
        [::std::mem::offset_of!(drm_i915_gem_pread, size) - 16usize];
    ["Offset of field: drm_i915_gem_pread::data_ptr"]
        [::std::mem::offset_of!(drm_i915_gem_pread, data_ptr) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_gem_pwrite {
    pub handle: __u32,
    pub pad: __u32,
    pub offset: __u64,
    pub size: __u64,
    pub data_ptr: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_gem_pwrite"][::std::mem::size_of::<drm_i915_gem_pwrite>() - 32usize];
    ["Alignment of drm_i915_gem_pwrite"][::std::mem::align_of::<drm_i915_gem_pwrite>() - 8usize];
    ["Offset of field: drm_i915_gem_pwrite::handle"]
        [::std::mem::offset_of!(drm_i915_gem_pwrite, handle) - 0usize];
    ["Offset of field: drm_i915_gem_pwrite::pad"]
        [::std::mem::offset_of!(drm_i915_gem_pwrite, pad) - 4usize];
    ["Offset of field: drm_i915_gem_pwrite::offset"]
        [::std::mem::offset_of!(drm_i915_gem_pwrite, offset) - 8usize];
    ["Offset of field: drm_i915_gem_pwrite::size"]
        [::std::mem::offset_of!(drm_i915_gem_pwrite, size) - 16usize];
    ["Offset of field: drm_i915_gem_pwrite::data_ptr"]
        [::std::mem::offset_of!(drm_i915_gem_pwrite, data_ptr) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_gem_mmap {
    pub handle: __u32,
    pub pad: __u32,
    pub offset: __u64,
    pub size: __u64,
    pub addr_ptr: __u64,
    pub flags: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_gem_mmap"][::std::mem::size_of::<drm_i915_gem_mmap>() - 40usize];
    ["Alignment of drm_i915_gem_mmap"][::std::mem::align_of::<drm_i915_gem_mmap>() - 8usize];
    ["Offset of field: drm_i915_gem_mmap::handle"]
        [::std::mem::offset_of!(drm_i915_gem_mmap, handle) - 0usize];
    ["Offset of field: drm_i915_gem_mmap::pad"]
        [::std::mem::offset_of!(drm_i915_gem_mmap, pad) - 4usize];
    ["Offset of field: drm_i915_gem_mmap::offset"]
        [::std::mem::offset_of!(drm_i915_gem_mmap, offset) - 8usize];
    ["Offset of field: drm_i915_gem_mmap::size"]
        [::std::mem::offset_of!(drm_i915_gem_mmap, size) - 16usize];
    ["Offset of field: drm_i915_gem_mmap::addr_ptr"]
        [::std::mem::offset_of!(drm_i915_gem_mmap, addr_ptr) - 24usize];
    ["Offset of field: drm_i915_gem_mmap::flags"]
        [::std::mem::offset_of!(drm_i915_gem_mmap, flags) - 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_gem_mmap_gtt {
    pub handle: __u32,
    pub pad: __u32,
    pub offset: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_gem_mmap_gtt"][::std::mem::size_of::<drm_i915_gem_mmap_gtt>() - 16usize];
    ["Alignment of drm_i915_gem_mmap_gtt"]
        [::std::mem::align_of::<drm_i915_gem_mmap_gtt>() - 8usize];
    ["Offset of field: drm_i915_gem_mmap_gtt::handle"]
        [::std::mem::offset_of!(drm_i915_gem_mmap_gtt, handle) - 0usize];
    ["Offset of field: drm_i915_gem_mmap_gtt::pad"]
        [::std::mem::offset_of!(drm_i915_gem_mmap_gtt, pad) - 4usize];
    ["Offset of field: drm_i915_gem_mmap_gtt::offset"]
        [::std::mem::offset_of!(drm_i915_gem_mmap_gtt, offset) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_gem_mmap_offset {
    pub handle: __u32,
    pub pad: __u32,
    pub offset: __u64,
    pub flags: __u64,
    pub extensions: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_gem_mmap_offset"]
        [::std::mem::size_of::<drm_i915_gem_mmap_offset>() - 32usize];
    ["Alignment of drm_i915_gem_mmap_offset"]
        [::std::mem::align_of::<drm_i915_gem_mmap_offset>() - 8usize];
    ["Offset of field: drm_i915_gem_mmap_offset::handle"]
        [::std::mem::offset_of!(drm_i915_gem_mmap_offset, handle) - 0usize];
    ["Offset of field: drm_i915_gem_mmap_offset::pad"]
        [::std::mem::offset_of!(drm_i915_gem_mmap_offset, pad) - 4usize];
    ["Offset of field: drm_i915_gem_mmap_offset::offset"]
        [::std::mem::offset_of!(drm_i915_gem_mmap_offset, offset) - 8usize];
    ["Offset of field: drm_i915_gem_mmap_offset::flags"]
        [::std::mem::offset_of!(drm_i915_gem_mmap_offset, flags) - 16usize];
    ["Offset of field: drm_i915_gem_mmap_offset::extensions"]
        [::std::mem::offset_of!(drm_i915_gem_mmap_offset, extensions) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_gem_set_domain {
    pub handle: __u32,
    pub read_domains: __u32,
    pub write_domain: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_gem_set_domain"][::std::mem::size_of::<drm_i915_gem_set_domain>() - 12usize];
    ["Alignment of drm_i915_gem_set_domain"]
        [::std::mem::align_of::<drm_i915_gem_set_domain>() - 4usize];
    ["Offset of field: drm_i915_gem_set_domain::handle"]
        [::std::mem::offset_of!(drm_i915_gem_set_domain, handle) - 0usize];
    ["Offset of field: drm_i915_gem_set_domain::read_domains"]
        [::std::mem::offset_of!(drm_i915_gem_set_domain, read_domains) - 4usize];
    ["Offset of field: drm_i915_gem_set_domain::write_domain"]
        [::std::mem::offset_of!(drm_i915_gem_set_domain, write_domain) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_gem_sw_finish {
    pub handle: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_gem_sw_finish"][::std::mem::size_of::<drm_i915_gem_sw_finish>() - 4usize];
    ["Alignment of drm_i915_gem_sw_finish"]
        [::std::mem::align_of::<drm_i915_gem_sw_finish>() - 4usize];
    ["Offset of field: drm_i915_gem_sw_finish::handle"]
        [::std::mem::offset_of!(drm_i915_gem_sw_finish, handle) - 0usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_gem_relocation_entry {
    pub target_handle: __u32,
    pub delta: __u32,
    pub offset: __u64,
    pub presumed_offset: __u64,
    pub read_domains: __u32,
    pub write_domain: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_gem_relocation_entry"]
        [::std::mem::size_of::<drm_i915_gem_relocation_entry>() - 32usize];
    ["Alignment of drm_i915_gem_relocation_entry"]
        [::std::mem::align_of::<drm_i915_gem_relocation_entry>() - 8usize];
    ["Offset of field: drm_i915_gem_relocation_entry::target_handle"]
        [::std::mem::offset_of!(drm_i915_gem_relocation_entry, target_handle) - 0usize];
    ["Offset of field: drm_i915_gem_relocation_entry::delta"]
        [::std::mem::offset_of!(drm_i915_gem_relocation_entry, delta) - 4usize];
    ["Offset of field: drm_i915_gem_relocation_entry::offset"]
        [::std::mem::offset_of!(drm_i915_gem_relocation_entry, offset) - 8usize];
    ["Offset of field: drm_i915_gem_relocation_entry::presumed_offset"]
        [::std::mem::offset_of!(drm_i915_gem_relocation_entry, presumed_offset) - 16usize];
    ["Offset of field: drm_i915_gem_relocation_entry::read_domains"]
        [::std::mem::offset_of!(drm_i915_gem_relocation_entry, read_domains) - 24usize];
    ["Offset of field: drm_i915_gem_relocation_entry::write_domain"]
        [::std::mem::offset_of!(drm_i915_gem_relocation_entry, write_domain) - 28usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_gem_exec_object {
    pub handle: __u32,
    pub relocation_count: __u32,
    pub relocs_ptr: __u64,
    pub alignment: __u64,
    pub offset: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_gem_exec_object"]
        [::std::mem::size_of::<drm_i915_gem_exec_object>() - 32usize];
    ["Alignment of drm_i915_gem_exec_object"]
        [::std::mem::align_of::<drm_i915_gem_exec_object>() - 8usize];
    ["Offset of field: drm_i915_gem_exec_object::handle"]
        [::std::mem::offset_of!(drm_i915_gem_exec_object, handle) - 0usize];
    ["Offset of field: drm_i915_gem_exec_object::relocation_count"]
        [::std::mem::offset_of!(drm_i915_gem_exec_object, relocation_count) - 4usize];
    ["Offset of field: drm_i915_gem_exec_object::relocs_ptr"]
        [::std::mem::offset_of!(drm_i915_gem_exec_object, relocs_ptr) - 8usize];
    ["Offset of field: drm_i915_gem_exec_object::alignment"]
        [::std::mem::offset_of!(drm_i915_gem_exec_object, alignment) - 16usize];
    ["Offset of field: drm_i915_gem_exec_object::offset"]
        [::std::mem::offset_of!(drm_i915_gem_exec_object, offset) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_gem_execbuffer {
    pub buffers_ptr: __u64,
    pub buffer_count: __u32,
    pub batch_start_offset: __u32,
    pub batch_len: __u32,
    pub DR1: __u32,
    pub DR4: __u32,
    pub num_cliprects: __u32,
    pub cliprects_ptr: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_gem_execbuffer"][::std::mem::size_of::<drm_i915_gem_execbuffer>() - 40usize];
    ["Alignment of drm_i915_gem_execbuffer"]
        [::std::mem::align_of::<drm_i915_gem_execbuffer>() - 8usize];
    ["Offset of field: drm_i915_gem_execbuffer::buffers_ptr"]
        [::std::mem::offset_of!(drm_i915_gem_execbuffer, buffers_ptr) - 0usize];
    ["Offset of field: drm_i915_gem_execbuffer::buffer_count"]
        [::std::mem::offset_of!(drm_i915_gem_execbuffer, buffer_count) - 8usize];
    ["Offset of field: drm_i915_gem_execbuffer::batch_start_offset"]
        [::std::mem::offset_of!(drm_i915_gem_execbuffer, batch_start_offset) - 12usize];
    ["Offset of field: drm_i915_gem_execbuffer::batch_len"]
        [::std::mem::offset_of!(drm_i915_gem_execbuffer, batch_len) - 16usize];
    ["Offset of field: drm_i915_gem_execbuffer::DR1"]
        [::std::mem::offset_of!(drm_i915_gem_execbuffer, DR1) - 20usize];
    ["Offset of field: drm_i915_gem_execbuffer::DR4"]
        [::std::mem::offset_of!(drm_i915_gem_execbuffer, DR4) - 24usize];
    ["Offset of field: drm_i915_gem_execbuffer::num_cliprects"]
        [::std::mem::offset_of!(drm_i915_gem_execbuffer, num_cliprects) - 28usize];
    ["Offset of field: drm_i915_gem_execbuffer::cliprects_ptr"]
        [::std::mem::offset_of!(drm_i915_gem_execbuffer, cliprects_ptr) - 32usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct drm_i915_gem_exec_object2 {
    pub handle: __u32,
    pub relocation_count: __u32,
    pub relocs_ptr: __u64,
    pub alignment: __u64,
    pub offset: __u64,
    pub flags: __u64,
    pub __bindgen_anon_1: drm_i915_gem_exec_object2__bindgen_ty_1,
    pub rsvd2: __u64,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union drm_i915_gem_exec_object2__bindgen_ty_1 {
    pub rsvd1: __u64,
    pub pad_to_size: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_gem_exec_object2__bindgen_ty_1"]
        [::std::mem::size_of::<drm_i915_gem_exec_object2__bindgen_ty_1>() - 8usize];
    ["Alignment of drm_i915_gem_exec_object2__bindgen_ty_1"]
        [::std::mem::align_of::<drm_i915_gem_exec_object2__bindgen_ty_1>() - 8usize];
    ["Offset of field: drm_i915_gem_exec_object2__bindgen_ty_1::rsvd1"]
        [::std::mem::offset_of!(drm_i915_gem_exec_object2__bindgen_ty_1, rsvd1) - 0usize];
    ["Offset of field: drm_i915_gem_exec_object2__bindgen_ty_1::pad_to_size"]
        [::std::mem::offset_of!(drm_i915_gem_exec_object2__bindgen_ty_1, pad_to_size) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_gem_exec_object2"]
        [::std::mem::size_of::<drm_i915_gem_exec_object2>() - 56usize];
    ["Alignment of drm_i915_gem_exec_object2"]
        [::std::mem::align_of::<drm_i915_gem_exec_object2>() - 8usize];
    ["Offset of field: drm_i915_gem_exec_object2::handle"]
        [::std::mem::offset_of!(drm_i915_gem_exec_object2, handle) - 0usize];
    ["Offset of field: drm_i915_gem_exec_object2::relocation_count"]
        [::std::mem::offset_of!(drm_i915_gem_exec_object2, relocation_count) - 4usize];
    ["Offset of field: drm_i915_gem_exec_object2::relocs_ptr"]
        [::std::mem::offset_of!(drm_i915_gem_exec_object2, relocs_ptr) - 8usize];
    ["Offset of field: drm_i915_gem_exec_object2::alignment"]
        [::std::mem::offset_of!(drm_i915_gem_exec_object2, alignment) - 16usize];
    ["Offset of field: drm_i915_gem_exec_object2::offset"]
        [::std::mem::offset_of!(drm_i915_gem_exec_object2, offset) - 24usize];
    ["Offset of field: drm_i915_gem_exec_object2::flags"]
        [::std::mem::offset_of!(drm_i915_gem_exec_object2, flags) - 32usize];
    ["Offset of field: drm_i915_gem_exec_object2::rsvd2"]
        [::std::mem::offset_of!(drm_i915_gem_exec_object2, rsvd2) - 48usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_gem_exec_fence {
    pub handle: __u32,
    pub flags: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_gem_exec_fence"][::std::mem::size_of::<drm_i915_gem_exec_fence>() - 8usize];
    ["Alignment of drm_i915_gem_exec_fence"]
        [::std::mem::align_of::<drm_i915_gem_exec_fence>() - 4usize];
    ["Offset of field: drm_i915_gem_exec_fence::handle"]
        [::std::mem::offset_of!(drm_i915_gem_exec_fence, handle) - 0usize];
    ["Offset of field: drm_i915_gem_exec_fence::flags"]
        [::std::mem::offset_of!(drm_i915_gem_exec_fence, flags) - 4usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_gem_execbuffer_ext_timeline_fences {
    pub base: i915_user_extension,
    pub fence_count: __u64,
    pub handles_ptr: __u64,
    pub values_ptr: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_gem_execbuffer_ext_timeline_fences"]
        [::std::mem::size_of::<drm_i915_gem_execbuffer_ext_timeline_fences>() - 56usize];
    ["Alignment of drm_i915_gem_execbuffer_ext_timeline_fences"]
        [::std::mem::align_of::<drm_i915_gem_execbuffer_ext_timeline_fences>() - 8usize];
    ["Offset of field: drm_i915_gem_execbuffer_ext_timeline_fences::base"]
        [::std::mem::offset_of!(drm_i915_gem_execbuffer_ext_timeline_fences, base) - 0usize];
    ["Offset of field: drm_i915_gem_execbuffer_ext_timeline_fences::fence_count"][::std::mem::offset_of!(
        drm_i915_gem_execbuffer_ext_timeline_fences,
        fence_count
    ) - 32usize];
    ["Offset of field: drm_i915_gem_execbuffer_ext_timeline_fences::handles_ptr"][::std::mem::offset_of!(
        drm_i915_gem_execbuffer_ext_timeline_fences,
        handles_ptr
    ) - 40usize];
    ["Offset of field: drm_i915_gem_execbuffer_ext_timeline_fences::values_ptr"]
        [::std::mem::offset_of!(drm_i915_gem_execbuffer_ext_timeline_fences, values_ptr) - 48usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_gem_execbuffer2 {
    pub buffers_ptr: __u64,
    pub buffer_count: __u32,
    pub batch_start_offset: __u32,
    pub batch_len: __u32,
    pub DR1: __u32,
    pub DR4: __u32,
    pub num_cliprects: __u32,
    pub cliprects_ptr: __u64,
    pub flags: __u64,
    pub rsvd1: __u64,
    pub rsvd2: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_gem_execbuffer2"]
        [::std::mem::size_of::<drm_i915_gem_execbuffer2>() - 64usize];
    ["Alignment of drm_i915_gem_execbuffer2"]
        [::std::mem::align_of::<drm_i915_gem_execbuffer2>() - 8usize];
    ["Offset of field: drm_i915_gem_execbuffer2::buffers_ptr"]
        [::std::mem::offset_of!(drm_i915_gem_execbuffer2, buffers_ptr) - 0usize];
    ["Offset of field: drm_i915_gem_execbuffer2::buffer_count"]
        [::std::mem::offset_of!(drm_i915_gem_execbuffer2, buffer_count) - 8usize];
    ["Offset of field: drm_i915_gem_execbuffer2::batch_start_offset"]
        [::std::mem::offset_of!(drm_i915_gem_execbuffer2, batch_start_offset) - 12usize];
    ["Offset of field: drm_i915_gem_execbuffer2::batch_len"]
        [::std::mem::offset_of!(drm_i915_gem_execbuffer2, batch_len) - 16usize];
    ["Offset of field: drm_i915_gem_execbuffer2::DR1"]
        [::std::mem::offset_of!(drm_i915_gem_execbuffer2, DR1) - 20usize];
    ["Offset of field: drm_i915_gem_execbuffer2::DR4"]
        [::std::mem::offset_of!(drm_i915_gem_execbuffer2, DR4) - 24usize];
    ["Offset of field: drm_i915_gem_execbuffer2::num_cliprects"]
        [::std::mem::offset_of!(drm_i915_gem_execbuffer2, num_cliprects) - 28usize];
    ["Offset of field: drm_i915_gem_execbuffer2::cliprects_ptr"]
        [::std::mem::offset_of!(drm_i915_gem_execbuffer2, cliprects_ptr) - 32usize];
    ["Offset of field: drm_i915_gem_execbuffer2::flags"]
        [::std::mem::offset_of!(drm_i915_gem_execbuffer2, flags) - 40usize];
    ["Offset of field: drm_i915_gem_execbuffer2::rsvd1"]
        [::std::mem::offset_of!(drm_i915_gem_execbuffer2, rsvd1) - 48usize];
    ["Offset of field: drm_i915_gem_execbuffer2::rsvd2"]
        [::std::mem::offset_of!(drm_i915_gem_execbuffer2, rsvd2) - 56usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_gem_pin {
    pub handle: __u32,
    pub pad: __u32,
    pub alignment: __u64,
    pub offset: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_gem_pin"][::std::mem::size_of::<drm_i915_gem_pin>() - 24usize];
    ["Alignment of drm_i915_gem_pin"][::std::mem::align_of::<drm_i915_gem_pin>() - 8usize];
    ["Offset of field: drm_i915_gem_pin::handle"]
        [::std::mem::offset_of!(drm_i915_gem_pin, handle) - 0usize];
    ["Offset of field: drm_i915_gem_pin::pad"]
        [::std::mem::offset_of!(drm_i915_gem_pin, pad) - 4usize];
    ["Offset of field: drm_i915_gem_pin::alignment"]
        [::std::mem::offset_of!(drm_i915_gem_pin, alignment) - 8usize];
    ["Offset of field: drm_i915_gem_pin::offset"]
        [::std::mem::offset_of!(drm_i915_gem_pin, offset) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_gem_unpin {
    pub handle: __u32,
    pub pad: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_gem_unpin"][::std::mem::size_of::<drm_i915_gem_unpin>() - 8usize];
    ["Alignment of drm_i915_gem_unpin"][::std::mem::align_of::<drm_i915_gem_unpin>() - 4usize];
    ["Offset of field: drm_i915_gem_unpin::handle"]
        [::std::mem::offset_of!(drm_i915_gem_unpin, handle) - 0usize];
    ["Offset of field: drm_i915_gem_unpin::pad"]
        [::std::mem::offset_of!(drm_i915_gem_unpin, pad) - 4usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_gem_busy {
    pub handle: __u32,
    pub busy: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_gem_busy"][::std::mem::size_of::<drm_i915_gem_busy>() - 8usize];
    ["Alignment of drm_i915_gem_busy"][::std::mem::align_of::<drm_i915_gem_busy>() - 4usize];
    ["Offset of field: drm_i915_gem_busy::handle"]
        [::std::mem::offset_of!(drm_i915_gem_busy, handle) - 0usize];
    ["Offset of field: drm_i915_gem_busy::busy"]
        [::std::mem::offset_of!(drm_i915_gem_busy, busy) - 4usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_gem_caching {
    pub handle: __u32,
    pub caching: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_gem_caching"][::std::mem::size_of::<drm_i915_gem_caching>() - 8usize];
    ["Alignment of drm_i915_gem_caching"][::std::mem::align_of::<drm_i915_gem_caching>() - 4usize];
    ["Offset of field: drm_i915_gem_caching::handle"]
        [::std::mem::offset_of!(drm_i915_gem_caching, handle) - 0usize];
    ["Offset of field: drm_i915_gem_caching::caching"]
        [::std::mem::offset_of!(drm_i915_gem_caching, caching) - 4usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_gem_set_tiling {
    pub handle: __u32,
    pub tiling_mode: __u32,
    pub stride: __u32,
    pub swizzle_mode: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_gem_set_tiling"][::std::mem::size_of::<drm_i915_gem_set_tiling>() - 16usize];
    ["Alignment of drm_i915_gem_set_tiling"]
        [::std::mem::align_of::<drm_i915_gem_set_tiling>() - 4usize];
    ["Offset of field: drm_i915_gem_set_tiling::handle"]
        [::std::mem::offset_of!(drm_i915_gem_set_tiling, handle) - 0usize];
    ["Offset of field: drm_i915_gem_set_tiling::tiling_mode"]
        [::std::mem::offset_of!(drm_i915_gem_set_tiling, tiling_mode) - 4usize];
    ["Offset of field: drm_i915_gem_set_tiling::stride"]
        [::std::mem::offset_of!(drm_i915_gem_set_tiling, stride) - 8usize];
    ["Offset of field: drm_i915_gem_set_tiling::swizzle_mode"]
        [::std::mem::offset_of!(drm_i915_gem_set_tiling, swizzle_mode) - 12usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_gem_get_tiling {
    pub handle: __u32,
    pub tiling_mode: __u32,
    pub swizzle_mode: __u32,
    pub phys_swizzle_mode: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_gem_get_tiling"][::std::mem::size_of::<drm_i915_gem_get_tiling>() - 16usize];
    ["Alignment of drm_i915_gem_get_tiling"]
        [::std::mem::align_of::<drm_i915_gem_get_tiling>() - 4usize];
    ["Offset of field: drm_i915_gem_get_tiling::handle"]
        [::std::mem::offset_of!(drm_i915_gem_get_tiling, handle) - 0usize];
    ["Offset of field: drm_i915_gem_get_tiling::tiling_mode"]
        [::std::mem::offset_of!(drm_i915_gem_get_tiling, tiling_mode) - 4usize];
    ["Offset of field: drm_i915_gem_get_tiling::swizzle_mode"]
        [::std::mem::offset_of!(drm_i915_gem_get_tiling, swizzle_mode) - 8usize];
    ["Offset of field: drm_i915_gem_get_tiling::phys_swizzle_mode"]
        [::std::mem::offset_of!(drm_i915_gem_get_tiling, phys_swizzle_mode) - 12usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_gem_get_aperture {
    pub aper_size: __u64,
    pub aper_available_size: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_gem_get_aperture"]
        [::std::mem::size_of::<drm_i915_gem_get_aperture>() - 16usize];
    ["Alignment of drm_i915_gem_get_aperture"]
        [::std::mem::align_of::<drm_i915_gem_get_aperture>() - 8usize];
    ["Offset of field: drm_i915_gem_get_aperture::aper_size"]
        [::std::mem::offset_of!(drm_i915_gem_get_aperture, aper_size) - 0usize];
    ["Offset of field: drm_i915_gem_get_aperture::aper_available_size"]
        [::std::mem::offset_of!(drm_i915_gem_get_aperture, aper_available_size) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_get_pipe_from_crtc_id {
    pub crtc_id: __u32,
    pub pipe: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_get_pipe_from_crtc_id"]
        [::std::mem::size_of::<drm_i915_get_pipe_from_crtc_id>() - 8usize];
    ["Alignment of drm_i915_get_pipe_from_crtc_id"]
        [::std::mem::align_of::<drm_i915_get_pipe_from_crtc_id>() - 4usize];
    ["Offset of field: drm_i915_get_pipe_from_crtc_id::crtc_id"]
        [::std::mem::offset_of!(drm_i915_get_pipe_from_crtc_id, crtc_id) - 0usize];
    ["Offset of field: drm_i915_get_pipe_from_crtc_id::pipe"]
        [::std::mem::offset_of!(drm_i915_get_pipe_from_crtc_id, pipe) - 4usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_gem_madvise {
    pub handle: __u32,
    pub madv: __u32,
    pub retained: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_gem_madvise"][::std::mem::size_of::<drm_i915_gem_madvise>() - 12usize];
    ["Alignment of drm_i915_gem_madvise"][::std::mem::align_of::<drm_i915_gem_madvise>() - 4usize];
    ["Offset of field: drm_i915_gem_madvise::handle"]
        [::std::mem::offset_of!(drm_i915_gem_madvise, handle) - 0usize];
    ["Offset of field: drm_i915_gem_madvise::madv"]
        [::std::mem::offset_of!(drm_i915_gem_madvise, madv) - 4usize];
    ["Offset of field: drm_i915_gem_madvise::retained"]
        [::std::mem::offset_of!(drm_i915_gem_madvise, retained) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_intel_overlay_put_image {
    pub flags: __u32,
    pub bo_handle: __u32,
    pub stride_Y: __u16,
    pub stride_UV: __u16,
    pub offset_Y: __u32,
    pub offset_U: __u32,
    pub offset_V: __u32,
    pub src_width: __u16,
    pub src_height: __u16,
    pub src_scan_width: __u16,
    pub src_scan_height: __u16,
    pub crtc_id: __u32,
    pub dst_x: __u16,
    pub dst_y: __u16,
    pub dst_width: __u16,
    pub dst_height: __u16,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_intel_overlay_put_image"]
        [::std::mem::size_of::<drm_intel_overlay_put_image>() - 44usize];
    ["Alignment of drm_intel_overlay_put_image"]
        [::std::mem::align_of::<drm_intel_overlay_put_image>() - 4usize];
    ["Offset of field: drm_intel_overlay_put_image::flags"]
        [::std::mem::offset_of!(drm_intel_overlay_put_image, flags) - 0usize];
    ["Offset of field: drm_intel_overlay_put_image::bo_handle"]
        [::std::mem::offset_of!(drm_intel_overlay_put_image, bo_handle) - 4usize];
    ["Offset of field: drm_intel_overlay_put_image::stride_Y"]
        [::std::mem::offset_of!(drm_intel_overlay_put_image, stride_Y) - 8usize];
    ["Offset of field: drm_intel_overlay_put_image::stride_UV"]
        [::std::mem::offset_of!(drm_intel_overlay_put_image, stride_UV) - 10usize];
    ["Offset of field: drm_intel_overlay_put_image::offset_Y"]
        [::std::mem::offset_of!(drm_intel_overlay_put_image, offset_Y) - 12usize];
    ["Offset of field: drm_intel_overlay_put_image::offset_U"]
        [::std::mem::offset_of!(drm_intel_overlay_put_image, offset_U) - 16usize];
    ["Offset of field: drm_intel_overlay_put_image::offset_V"]
        [::std::mem::offset_of!(drm_intel_overlay_put_image, offset_V) - 20usize];
    ["Offset of field: drm_intel_overlay_put_image::src_width"]
        [::std::mem::offset_of!(drm_intel_overlay_put_image, src_width) - 24usize];
    ["Offset of field: drm_intel_overlay_put_image::src_height"]
        [::std::mem::offset_of!(drm_intel_overlay_put_image, src_height) - 26usize];
    ["Offset of field: drm_intel_overlay_put_image::src_scan_width"]
        [::std::mem::offset_of!(drm_intel_overlay_put_image, src_scan_width) - 28usize];
    ["Offset of field: drm_intel_overlay_put_image::src_scan_height"]
        [::std::mem::offset_of!(drm_intel_overlay_put_image, src_scan_height) - 30usize];
    ["Offset of field: drm_intel_overlay_put_image::crtc_id"]
        [::std::mem::offset_of!(drm_intel_overlay_put_image, crtc_id) - 32usize];
    ["Offset of field: drm_intel_overlay_put_image::dst_x"]
        [::std::mem::offset_of!(drm_intel_overlay_put_image, dst_x) - 36usize];
    ["Offset of field: drm_intel_overlay_put_image::dst_y"]
        [::std::mem::offset_of!(drm_intel_overlay_put_image, dst_y) - 38usize];
    ["Offset of field: drm_intel_overlay_put_image::dst_width"]
        [::std::mem::offset_of!(drm_intel_overlay_put_image, dst_width) - 40usize];
    ["Offset of field: drm_intel_overlay_put_image::dst_height"]
        [::std::mem::offset_of!(drm_intel_overlay_put_image, dst_height) - 42usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_intel_overlay_attrs {
    pub flags: __u32,
    pub color_key: __u32,
    pub brightness: __s32,
    pub contrast: __u32,
    pub saturation: __u32,
    pub gamma0: __u32,
    pub gamma1: __u32,
    pub gamma2: __u32,
    pub gamma3: __u32,
    pub gamma4: __u32,
    pub gamma5: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_intel_overlay_attrs"][::std::mem::size_of::<drm_intel_overlay_attrs>() - 44usize];
    ["Alignment of drm_intel_overlay_attrs"]
        [::std::mem::align_of::<drm_intel_overlay_attrs>() - 4usize];
    ["Offset of field: drm_intel_overlay_attrs::flags"]
        [::std::mem::offset_of!(drm_intel_overlay_attrs, flags) - 0usize];
    ["Offset of field: drm_intel_overlay_attrs::color_key"]
        [::std::mem::offset_of!(drm_intel_overlay_attrs, color_key) - 4usize];
    ["Offset of field: drm_intel_overlay_attrs::brightness"]
        [::std::mem::offset_of!(drm_intel_overlay_attrs, brightness) - 8usize];
    ["Offset of field: drm_intel_overlay_attrs::contrast"]
        [::std::mem::offset_of!(drm_intel_overlay_attrs, contrast) - 12usize];
    ["Offset of field: drm_intel_overlay_attrs::saturation"]
        [::std::mem::offset_of!(drm_intel_overlay_attrs, saturation) - 16usize];
    ["Offset of field: drm_intel_overlay_attrs::gamma0"]
        [::std::mem::offset_of!(drm_intel_overlay_attrs, gamma0) - 20usize];
    ["Offset of field: drm_intel_overlay_attrs::gamma1"]
        [::std::mem::offset_of!(drm_intel_overlay_attrs, gamma1) - 24usize];
    ["Offset of field: drm_intel_overlay_attrs::gamma2"]
        [::std::mem::offset_of!(drm_intel_overlay_attrs, gamma2) - 28usize];
    ["Offset of field: drm_intel_overlay_attrs::gamma3"]
        [::std::mem::offset_of!(drm_intel_overlay_attrs, gamma3) - 32usize];
    ["Offset of field: drm_intel_overlay_attrs::gamma4"]
        [::std::mem::offset_of!(drm_intel_overlay_attrs, gamma4) - 36usize];
    ["Offset of field: drm_intel_overlay_attrs::gamma5"]
        [::std::mem::offset_of!(drm_intel_overlay_attrs, gamma5) - 40usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_intel_sprite_colorkey {
    pub plane_id: __u32,
    pub min_value: __u32,
    pub channel_mask: __u32,
    pub max_value: __u32,
    pub flags: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_intel_sprite_colorkey"]
        [::std::mem::size_of::<drm_intel_sprite_colorkey>() - 20usize];
    ["Alignment of drm_intel_sprite_colorkey"]
        [::std::mem::align_of::<drm_intel_sprite_colorkey>() - 4usize];
    ["Offset of field: drm_intel_sprite_colorkey::plane_id"]
        [::std::mem::offset_of!(drm_intel_sprite_colorkey, plane_id) - 0usize];
    ["Offset of field: drm_intel_sprite_colorkey::min_value"]
        [::std::mem::offset_of!(drm_intel_sprite_colorkey, min_value) - 4usize];
    ["Offset of field: drm_intel_sprite_colorkey::channel_mask"]
        [::std::mem::offset_of!(drm_intel_sprite_colorkey, channel_mask) - 8usize];
    ["Offset of field: drm_intel_sprite_colorkey::max_value"]
        [::std::mem::offset_of!(drm_intel_sprite_colorkey, max_value) - 12usize];
    ["Offset of field: drm_intel_sprite_colorkey::flags"]
        [::std::mem::offset_of!(drm_intel_sprite_colorkey, flags) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_gem_wait {
    pub bo_handle: __u32,
    pub flags: __u32,
    pub timeout_ns: __s64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_gem_wait"][::std::mem::size_of::<drm_i915_gem_wait>() - 16usize];
    ["Alignment of drm_i915_gem_wait"][::std::mem::align_of::<drm_i915_gem_wait>() - 8usize];
    ["Offset of field: drm_i915_gem_wait::bo_handle"]
        [::std::mem::offset_of!(drm_i915_gem_wait, bo_handle) - 0usize];
    ["Offset of field: drm_i915_gem_wait::flags"]
        [::std::mem::offset_of!(drm_i915_gem_wait, flags) - 4usize];
    ["Offset of field: drm_i915_gem_wait::timeout_ns"]
        [::std::mem::offset_of!(drm_i915_gem_wait, timeout_ns) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_gem_context_create {
    pub ctx_id: __u32,
    pub pad: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_gem_context_create"]
        [::std::mem::size_of::<drm_i915_gem_context_create>() - 8usize];
    ["Alignment of drm_i915_gem_context_create"]
        [::std::mem::align_of::<drm_i915_gem_context_create>() - 4usize];
    ["Offset of field: drm_i915_gem_context_create::ctx_id"]
        [::std::mem::offset_of!(drm_i915_gem_context_create, ctx_id) - 0usize];
    ["Offset of field: drm_i915_gem_context_create::pad"]
        [::std::mem::offset_of!(drm_i915_gem_context_create, pad) - 4usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_gem_context_create_ext {
    pub ctx_id: __u32,
    pub flags: __u32,
    pub extensions: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_gem_context_create_ext"]
        [::std::mem::size_of::<drm_i915_gem_context_create_ext>() - 16usize];
    ["Alignment of drm_i915_gem_context_create_ext"]
        [::std::mem::align_of::<drm_i915_gem_context_create_ext>() - 8usize];
    ["Offset of field: drm_i915_gem_context_create_ext::ctx_id"]
        [::std::mem::offset_of!(drm_i915_gem_context_create_ext, ctx_id) - 0usize];
    ["Offset of field: drm_i915_gem_context_create_ext::flags"]
        [::std::mem::offset_of!(drm_i915_gem_context_create_ext, flags) - 4usize];
    ["Offset of field: drm_i915_gem_context_create_ext::extensions"]
        [::std::mem::offset_of!(drm_i915_gem_context_create_ext, extensions) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_gem_context_param {
    pub ctx_id: __u32,
    pub size: __u32,
    pub param: __u64,
    pub value: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_gem_context_param"]
        [::std::mem::size_of::<drm_i915_gem_context_param>() - 24usize];
    ["Alignment of drm_i915_gem_context_param"]
        [::std::mem::align_of::<drm_i915_gem_context_param>() - 8usize];
    ["Offset of field: drm_i915_gem_context_param::ctx_id"]
        [::std::mem::offset_of!(drm_i915_gem_context_param, ctx_id) - 0usize];
    ["Offset of field: drm_i915_gem_context_param::size"]
        [::std::mem::offset_of!(drm_i915_gem_context_param, size) - 4usize];
    ["Offset of field: drm_i915_gem_context_param::param"]
        [::std::mem::offset_of!(drm_i915_gem_context_param, param) - 8usize];
    ["Offset of field: drm_i915_gem_context_param::value"]
        [::std::mem::offset_of!(drm_i915_gem_context_param, value) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_gem_context_param_sseu {
    pub engine: i915_engine_class_instance,
    pub flags: __u32,
    pub slice_mask: __u64,
    pub subslice_mask: __u64,
    pub min_eus_per_subslice: __u16,
    pub max_eus_per_subslice: __u16,
    pub rsvd: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_gem_context_param_sseu"]
        [::std::mem::size_of::<drm_i915_gem_context_param_sseu>() - 32usize];
    ["Alignment of drm_i915_gem_context_param_sseu"]
        [::std::mem::align_of::<drm_i915_gem_context_param_sseu>() - 8usize];
    ["Offset of field: drm_i915_gem_context_param_sseu::engine"]
        [::std::mem::offset_of!(drm_i915_gem_context_param_sseu, engine) - 0usize];
    ["Offset of field: drm_i915_gem_context_param_sseu::flags"]
        [::std::mem::offset_of!(drm_i915_gem_context_param_sseu, flags) - 4usize];
    ["Offset of field: drm_i915_gem_context_param_sseu::slice_mask"]
        [::std::mem::offset_of!(drm_i915_gem_context_param_sseu, slice_mask) - 8usize];
    ["Offset of field: drm_i915_gem_context_param_sseu::subslice_mask"]
        [::std::mem::offset_of!(drm_i915_gem_context_param_sseu, subslice_mask) - 16usize];
    ["Offset of field: drm_i915_gem_context_param_sseu::min_eus_per_subslice"]
        [::std::mem::offset_of!(drm_i915_gem_context_param_sseu, min_eus_per_subslice) - 24usize];
    ["Offset of field: drm_i915_gem_context_param_sseu::max_eus_per_subslice"]
        [::std::mem::offset_of!(drm_i915_gem_context_param_sseu, max_eus_per_subslice) - 26usize];
    ["Offset of field: drm_i915_gem_context_param_sseu::rsvd"]
        [::std::mem::offset_of!(drm_i915_gem_context_param_sseu, rsvd) - 28usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_gem_context_create_ext_setparam {
    pub base: i915_user_extension,
    pub param: drm_i915_gem_context_param,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_gem_context_create_ext_setparam"]
        [::std::mem::size_of::<drm_i915_gem_context_create_ext_setparam>() - 56usize];
    ["Alignment of drm_i915_gem_context_create_ext_setparam"]
        [::std::mem::align_of::<drm_i915_gem_context_create_ext_setparam>() - 8usize];
    ["Offset of field: drm_i915_gem_context_create_ext_setparam::base"]
        [::std::mem::offset_of!(drm_i915_gem_context_create_ext_setparam, base) - 0usize];
    ["Offset of field: drm_i915_gem_context_create_ext_setparam::param"]
        [::std::mem::offset_of!(drm_i915_gem_context_create_ext_setparam, param) - 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_gem_context_destroy {
    pub ctx_id: __u32,
    pub pad: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_gem_context_destroy"]
        [::std::mem::size_of::<drm_i915_gem_context_destroy>() - 8usize];
    ["Alignment of drm_i915_gem_context_destroy"]
        [::std::mem::align_of::<drm_i915_gem_context_destroy>() - 4usize];
    ["Offset of field: drm_i915_gem_context_destroy::ctx_id"]
        [::std::mem::offset_of!(drm_i915_gem_context_destroy, ctx_id) - 0usize];
    ["Offset of field: drm_i915_gem_context_destroy::pad"]
        [::std::mem::offset_of!(drm_i915_gem_context_destroy, pad) - 4usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_gem_vm_control {
    pub extensions: __u64,
    pub flags: __u32,
    pub vm_id: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_gem_vm_control"][::std::mem::size_of::<drm_i915_gem_vm_control>() - 16usize];
    ["Alignment of drm_i915_gem_vm_control"]
        [::std::mem::align_of::<drm_i915_gem_vm_control>() - 8usize];
    ["Offset of field: drm_i915_gem_vm_control::extensions"]
        [::std::mem::offset_of!(drm_i915_gem_vm_control, extensions) - 0usize];
    ["Offset of field: drm_i915_gem_vm_control::flags"]
        [::std::mem::offset_of!(drm_i915_gem_vm_control, flags) - 8usize];
    ["Offset of field: drm_i915_gem_vm_control::vm_id"]
        [::std::mem::offset_of!(drm_i915_gem_vm_control, vm_id) - 12usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_reg_read {
    pub offset: __u64,
    pub val: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_reg_read"][::std::mem::size_of::<drm_i915_reg_read>() - 16usize];
    ["Alignment of drm_i915_reg_read"][::std::mem::align_of::<drm_i915_reg_read>() - 8usize];
    ["Offset of field: drm_i915_reg_read::offset"]
        [::std::mem::offset_of!(drm_i915_reg_read, offset) - 0usize];
    ["Offset of field: drm_i915_reg_read::val"]
        [::std::mem::offset_of!(drm_i915_reg_read, val) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_reset_stats {
    pub ctx_id: __u32,
    pub flags: __u32,
    pub reset_count: __u32,
    pub batch_active: __u32,
    pub batch_pending: __u32,
    pub pad: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_reset_stats"][::std::mem::size_of::<drm_i915_reset_stats>() - 24usize];
    ["Alignment of drm_i915_reset_stats"][::std::mem::align_of::<drm_i915_reset_stats>() - 4usize];
    ["Offset of field: drm_i915_reset_stats::ctx_id"]
        [::std::mem::offset_of!(drm_i915_reset_stats, ctx_id) - 0usize];
    ["Offset of field: drm_i915_reset_stats::flags"]
        [::std::mem::offset_of!(drm_i915_reset_stats, flags) - 4usize];
    ["Offset of field: drm_i915_reset_stats::reset_count"]
        [::std::mem::offset_of!(drm_i915_reset_stats, reset_count) - 8usize];
    ["Offset of field: drm_i915_reset_stats::batch_active"]
        [::std::mem::offset_of!(drm_i915_reset_stats, batch_active) - 12usize];
    ["Offset of field: drm_i915_reset_stats::batch_pending"]
        [::std::mem::offset_of!(drm_i915_reset_stats, batch_pending) - 16usize];
    ["Offset of field: drm_i915_reset_stats::pad"]
        [::std::mem::offset_of!(drm_i915_reset_stats, pad) - 20usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_gem_userptr {
    pub user_ptr: __u64,
    pub user_size: __u64,
    pub flags: __u32,
    pub handle: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_gem_userptr"][::std::mem::size_of::<drm_i915_gem_userptr>() - 24usize];
    ["Alignment of drm_i915_gem_userptr"][::std::mem::align_of::<drm_i915_gem_userptr>() - 8usize];
    ["Offset of field: drm_i915_gem_userptr::user_ptr"]
        [::std::mem::offset_of!(drm_i915_gem_userptr, user_ptr) - 0usize];
    ["Offset of field: drm_i915_gem_userptr::user_size"]
        [::std::mem::offset_of!(drm_i915_gem_userptr, user_size) - 8usize];
    ["Offset of field: drm_i915_gem_userptr::flags"]
        [::std::mem::offset_of!(drm_i915_gem_userptr, flags) - 16usize];
    ["Offset of field: drm_i915_gem_userptr::handle"]
        [::std::mem::offset_of!(drm_i915_gem_userptr, handle) - 20usize];
};
pub const drm_i915_oa_format_I915_OA_FORMAT_A13: drm_i915_oa_format = 1;
pub const drm_i915_oa_format_I915_OA_FORMAT_A29: drm_i915_oa_format = 2;
pub const drm_i915_oa_format_I915_OA_FORMAT_A13_B8_C8: drm_i915_oa_format = 3;
pub const drm_i915_oa_format_I915_OA_FORMAT_B4_C8: drm_i915_oa_format = 4;
pub const drm_i915_oa_format_I915_OA_FORMAT_A45_B8_C8: drm_i915_oa_format = 5;
pub const drm_i915_oa_format_I915_OA_FORMAT_B4_C8_A16: drm_i915_oa_format = 6;
pub const drm_i915_oa_format_I915_OA_FORMAT_C4_B8: drm_i915_oa_format = 7;
pub const drm_i915_oa_format_I915_OA_FORMAT_A12: drm_i915_oa_format = 8;
pub const drm_i915_oa_format_I915_OA_FORMAT_A12_B8_C8: drm_i915_oa_format = 9;
pub const drm_i915_oa_format_I915_OA_FORMAT_A32u40_A4u32_B8_C8: drm_i915_oa_format = 10;
pub const drm_i915_oa_format_I915_OAR_FORMAT_A32u40_A4u32_B8_C8: drm_i915_oa_format = 11;
pub const drm_i915_oa_format_I915_OA_FORMAT_A24u40_A14u32_B8_C8: drm_i915_oa_format = 12;
pub const drm_i915_oa_format_I915_OAM_FORMAT_MPEC8u64_B8_C8: drm_i915_oa_format = 13;
pub const drm_i915_oa_format_I915_OAM_FORMAT_MPEC8u32_B8_C8: drm_i915_oa_format = 14;
pub const drm_i915_oa_format_I915_OA_FORMAT_MAX: drm_i915_oa_format = 15;
pub type drm_i915_oa_format = ::std::os::raw::c_uint;
pub const drm_i915_perf_property_id_DRM_I915_PERF_PROP_CTX_HANDLE: drm_i915_perf_property_id = 1;
pub const drm_i915_perf_property_id_DRM_I915_PERF_PROP_SAMPLE_OA: drm_i915_perf_property_id = 2;
pub const drm_i915_perf_property_id_DRM_I915_PERF_PROP_OA_METRICS_SET: drm_i915_perf_property_id =
    3;
pub const drm_i915_perf_property_id_DRM_I915_PERF_PROP_OA_FORMAT: drm_i915_perf_property_id = 4;
pub const drm_i915_perf_property_id_DRM_I915_PERF_PROP_OA_EXPONENT: drm_i915_perf_property_id = 5;
pub const drm_i915_perf_property_id_DRM_I915_PERF_PROP_HOLD_PREEMPTION: drm_i915_perf_property_id =
    6;
pub const drm_i915_perf_property_id_DRM_I915_PERF_PROP_GLOBAL_SSEU: drm_i915_perf_property_id = 7;
pub const drm_i915_perf_property_id_DRM_I915_PERF_PROP_POLL_OA_PERIOD: drm_i915_perf_property_id =
    8;
pub const drm_i915_perf_property_id_DRM_I915_PERF_PROP_OA_ENGINE_CLASS: drm_i915_perf_property_id =
    9;
pub const drm_i915_perf_property_id_DRM_I915_PERF_PROP_OA_ENGINE_INSTANCE:
    drm_i915_perf_property_id = 10;
pub const drm_i915_perf_property_id_DRM_I915_PERF_PROP_MAX: drm_i915_perf_property_id = 11;
pub type drm_i915_perf_property_id = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_perf_open_param {
    pub flags: __u32,
    pub num_properties: __u32,
    pub properties_ptr: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_perf_open_param"]
        [::std::mem::size_of::<drm_i915_perf_open_param>() - 16usize];
    ["Alignment of drm_i915_perf_open_param"]
        [::std::mem::align_of::<drm_i915_perf_open_param>() - 8usize];
    ["Offset of field: drm_i915_perf_open_param::flags"]
        [::std::mem::offset_of!(drm_i915_perf_open_param, flags) - 0usize];
    ["Offset of field: drm_i915_perf_open_param::num_properties"]
        [::std::mem::offset_of!(drm_i915_perf_open_param, num_properties) - 4usize];
    ["Offset of field: drm_i915_perf_open_param::properties_ptr"]
        [::std::mem::offset_of!(drm_i915_perf_open_param, properties_ptr) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_perf_record_header {
    pub type_: __u32,
    pub pad: __u16,
    pub size: __u16,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_perf_record_header"]
        [::std::mem::size_of::<drm_i915_perf_record_header>() - 8usize];
    ["Alignment of drm_i915_perf_record_header"]
        [::std::mem::align_of::<drm_i915_perf_record_header>() - 4usize];
    ["Offset of field: drm_i915_perf_record_header::type_"]
        [::std::mem::offset_of!(drm_i915_perf_record_header, type_) - 0usize];
    ["Offset of field: drm_i915_perf_record_header::pad"]
        [::std::mem::offset_of!(drm_i915_perf_record_header, pad) - 4usize];
    ["Offset of field: drm_i915_perf_record_header::size"]
        [::std::mem::offset_of!(drm_i915_perf_record_header, size) - 6usize];
};
pub const drm_i915_perf_record_type_DRM_I915_PERF_RECORD_SAMPLE: drm_i915_perf_record_type = 1;
pub const drm_i915_perf_record_type_DRM_I915_PERF_RECORD_OA_REPORT_LOST: drm_i915_perf_record_type =
    2;
pub const drm_i915_perf_record_type_DRM_I915_PERF_RECORD_OA_BUFFER_LOST: drm_i915_perf_record_type =
    3;
pub const drm_i915_perf_record_type_DRM_I915_PERF_RECORD_MAX: drm_i915_perf_record_type = 4;
pub type drm_i915_perf_record_type = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_perf_oa_config {
    pub uuid: [::std::os::raw::c_char; 36usize],
    pub n_mux_regs: __u32,
    pub n_boolean_regs: __u32,
    pub n_flex_regs: __u32,
    pub mux_regs_ptr: __u64,
    pub boolean_regs_ptr: __u64,
    pub flex_regs_ptr: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_perf_oa_config"][::std::mem::size_of::<drm_i915_perf_oa_config>() - 72usize];
    ["Alignment of drm_i915_perf_oa_config"]
        [::std::mem::align_of::<drm_i915_perf_oa_config>() - 8usize];
    ["Offset of field: drm_i915_perf_oa_config::uuid"]
        [::std::mem::offset_of!(drm_i915_perf_oa_config, uuid) - 0usize];
    ["Offset of field: drm_i915_perf_oa_config::n_mux_regs"]
        [::std::mem::offset_of!(drm_i915_perf_oa_config, n_mux_regs) - 36usize];
    ["Offset of field: drm_i915_perf_oa_config::n_boolean_regs"]
        [::std::mem::offset_of!(drm_i915_perf_oa_config, n_boolean_regs) - 40usize];
    ["Offset of field: drm_i915_perf_oa_config::n_flex_regs"]
        [::std::mem::offset_of!(drm_i915_perf_oa_config, n_flex_regs) - 44usize];
    ["Offset of field: drm_i915_perf_oa_config::mux_regs_ptr"]
        [::std::mem::offset_of!(drm_i915_perf_oa_config, mux_regs_ptr) - 48usize];
    ["Offset of field: drm_i915_perf_oa_config::boolean_regs_ptr"]
        [::std::mem::offset_of!(drm_i915_perf_oa_config, boolean_regs_ptr) - 56usize];
    ["Offset of field: drm_i915_perf_oa_config::flex_regs_ptr"]
        [::std::mem::offset_of!(drm_i915_perf_oa_config, flex_regs_ptr) - 64usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_query_item {
    pub query_id: __u64,
    pub length: __s32,
    pub flags: __u32,
    pub data_ptr: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_query_item"][::std::mem::size_of::<drm_i915_query_item>() - 24usize];
    ["Alignment of drm_i915_query_item"][::std::mem::align_of::<drm_i915_query_item>() - 8usize];
    ["Offset of field: drm_i915_query_item::query_id"]
        [::std::mem::offset_of!(drm_i915_query_item, query_id) - 0usize];
    ["Offset of field: drm_i915_query_item::length"]
        [::std::mem::offset_of!(drm_i915_query_item, length) - 8usize];
    ["Offset of field: drm_i915_query_item::flags"]
        [::std::mem::offset_of!(drm_i915_query_item, flags) - 12usize];
    ["Offset of field: drm_i915_query_item::data_ptr"]
        [::std::mem::offset_of!(drm_i915_query_item, data_ptr) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_query {
    pub num_items: __u32,
    pub flags: __u32,
    pub items_ptr: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_query"][::std::mem::size_of::<drm_i915_query>() - 16usize];
    ["Alignment of drm_i915_query"][::std::mem::align_of::<drm_i915_query>() - 8usize];
    ["Offset of field: drm_i915_query::num_items"]
        [::std::mem::offset_of!(drm_i915_query, num_items) - 0usize];
    ["Offset of field: drm_i915_query::flags"]
        [::std::mem::offset_of!(drm_i915_query, flags) - 4usize];
    ["Offset of field: drm_i915_query::items_ptr"]
        [::std::mem::offset_of!(drm_i915_query, items_ptr) - 8usize];
};
#[repr(C)]
#[derive(Debug)]
pub struct drm_i915_query_topology_info {
    pub flags: __u16,
    pub max_slices: __u16,
    pub max_subslices: __u16,
    pub max_eus_per_subslice: __u16,
    pub subslice_offset: __u16,
    pub subslice_stride: __u16,
    pub eu_offset: __u16,
    pub eu_stride: __u16,
    pub data: __IncompleteArrayField<__u8>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_query_topology_info"]
        [::std::mem::size_of::<drm_i915_query_topology_info>() - 16usize];
    ["Alignment of drm_i915_query_topology_info"]
        [::std::mem::align_of::<drm_i915_query_topology_info>() - 2usize];
    ["Offset of field: drm_i915_query_topology_info::flags"]
        [::std::mem::offset_of!(drm_i915_query_topology_info, flags) - 0usize];
    ["Offset of field: drm_i915_query_topology_info::max_slices"]
        [::std::mem::offset_of!(drm_i915_query_topology_info, max_slices) - 2usize];
    ["Offset of field: drm_i915_query_topology_info::max_subslices"]
        [::std::mem::offset_of!(drm_i915_query_topology_info, max_subslices) - 4usize];
    ["Offset of field: drm_i915_query_topology_info::max_eus_per_subslice"]
        [::std::mem::offset_of!(drm_i915_query_topology_info, max_eus_per_subslice) - 6usize];
    ["Offset of field: drm_i915_query_topology_info::subslice_offset"]
        [::std::mem::offset_of!(drm_i915_query_topology_info, subslice_offset) - 8usize];
    ["Offset of field: drm_i915_query_topology_info::subslice_stride"]
        [::std::mem::offset_of!(drm_i915_query_topology_info, subslice_stride) - 10usize];
    ["Offset of field: drm_i915_query_topology_info::eu_offset"]
        [::std::mem::offset_of!(drm_i915_query_topology_info, eu_offset) - 12usize];
    ["Offset of field: drm_i915_query_topology_info::eu_stride"]
        [::std::mem::offset_of!(drm_i915_query_topology_info, eu_stride) - 14usize];
    ["Offset of field: drm_i915_query_topology_info::data"]
        [::std::mem::offset_of!(drm_i915_query_topology_info, data) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_engine_info {
    pub engine: i915_engine_class_instance,
    pub rsvd0: __u32,
    pub flags: __u64,
    pub capabilities: __u64,
    pub logical_instance: __u16,
    pub rsvd1: [__u16; 3usize],
    pub rsvd2: [__u64; 3usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_engine_info"][::std::mem::size_of::<drm_i915_engine_info>() - 56usize];
    ["Alignment of drm_i915_engine_info"][::std::mem::align_of::<drm_i915_engine_info>() - 8usize];
    ["Offset of field: drm_i915_engine_info::engine"]
        [::std::mem::offset_of!(drm_i915_engine_info, engine) - 0usize];
    ["Offset of field: drm_i915_engine_info::rsvd0"]
        [::std::mem::offset_of!(drm_i915_engine_info, rsvd0) - 4usize];
    ["Offset of field: drm_i915_engine_info::flags"]
        [::std::mem::offset_of!(drm_i915_engine_info, flags) - 8usize];
    ["Offset of field: drm_i915_engine_info::capabilities"]
        [::std::mem::offset_of!(drm_i915_engine_info, capabilities) - 16usize];
    ["Offset of field: drm_i915_engine_info::logical_instance"]
        [::std::mem::offset_of!(drm_i915_engine_info, logical_instance) - 24usize];
    ["Offset of field: drm_i915_engine_info::rsvd1"]
        [::std::mem::offset_of!(drm_i915_engine_info, rsvd1) - 26usize];
    ["Offset of field: drm_i915_engine_info::rsvd2"]
        [::std::mem::offset_of!(drm_i915_engine_info, rsvd2) - 32usize];
};
#[repr(C)]
#[derive(Debug)]
pub struct drm_i915_query_engine_info {
    pub num_engines: __u32,
    pub rsvd: [__u32; 3usize],
    pub engines: __IncompleteArrayField<drm_i915_engine_info>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_query_engine_info"]
        [::std::mem::size_of::<drm_i915_query_engine_info>() - 16usize];
    ["Alignment of drm_i915_query_engine_info"]
        [::std::mem::align_of::<drm_i915_query_engine_info>() - 8usize];
    ["Offset of field: drm_i915_query_engine_info::num_engines"]
        [::std::mem::offset_of!(drm_i915_query_engine_info, num_engines) - 0usize];
    ["Offset of field: drm_i915_query_engine_info::rsvd"]
        [::std::mem::offset_of!(drm_i915_query_engine_info, rsvd) - 4usize];
    ["Offset of field: drm_i915_query_engine_info::engines"]
        [::std::mem::offset_of!(drm_i915_query_engine_info, engines) - 16usize];
};
#[repr(C)]
pub struct drm_i915_query_perf_config {
    pub __bindgen_anon_1: drm_i915_query_perf_config__bindgen_ty_1,
    pub flags: __u32,
    pub data: __IncompleteArrayField<__u8>,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union drm_i915_query_perf_config__bindgen_ty_1 {
    pub n_configs: __u64,
    pub config: __u64,
    pub uuid: [::std::os::raw::c_char; 36usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_query_perf_config__bindgen_ty_1"]
        [::std::mem::size_of::<drm_i915_query_perf_config__bindgen_ty_1>() - 40usize];
    ["Alignment of drm_i915_query_perf_config__bindgen_ty_1"]
        [::std::mem::align_of::<drm_i915_query_perf_config__bindgen_ty_1>() - 8usize];
    ["Offset of field: drm_i915_query_perf_config__bindgen_ty_1::n_configs"]
        [::std::mem::offset_of!(drm_i915_query_perf_config__bindgen_ty_1, n_configs) - 0usize];
    ["Offset of field: drm_i915_query_perf_config__bindgen_ty_1::config"]
        [::std::mem::offset_of!(drm_i915_query_perf_config__bindgen_ty_1, config) - 0usize];
    ["Offset of field: drm_i915_query_perf_config__bindgen_ty_1::uuid"]
        [::std::mem::offset_of!(drm_i915_query_perf_config__bindgen_ty_1, uuid) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_query_perf_config"]
        [::std::mem::size_of::<drm_i915_query_perf_config>() - 48usize];
    ["Alignment of drm_i915_query_perf_config"]
        [::std::mem::align_of::<drm_i915_query_perf_config>() - 8usize];
    ["Offset of field: drm_i915_query_perf_config::flags"]
        [::std::mem::offset_of!(drm_i915_query_perf_config, flags) - 40usize];
    ["Offset of field: drm_i915_query_perf_config::data"]
        [::std::mem::offset_of!(drm_i915_query_perf_config, data) - 44usize];
};
pub const drm_i915_gem_memory_class_I915_MEMORY_CLASS_SYSTEM: drm_i915_gem_memory_class = 0;
pub const drm_i915_gem_memory_class_I915_MEMORY_CLASS_DEVICE: drm_i915_gem_memory_class = 1;
pub type drm_i915_gem_memory_class = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_gem_memory_class_instance {
    pub memory_class: __u16,
    pub memory_instance: __u16,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_gem_memory_class_instance"]
        [::std::mem::size_of::<drm_i915_gem_memory_class_instance>() - 4usize];
    ["Alignment of drm_i915_gem_memory_class_instance"]
        [::std::mem::align_of::<drm_i915_gem_memory_class_instance>() - 2usize];
    ["Offset of field: drm_i915_gem_memory_class_instance::memory_class"]
        [::std::mem::offset_of!(drm_i915_gem_memory_class_instance, memory_class) - 0usize];
    ["Offset of field: drm_i915_gem_memory_class_instance::memory_instance"]
        [::std::mem::offset_of!(drm_i915_gem_memory_class_instance, memory_instance) - 2usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct drm_i915_memory_region_info {
    pub region: drm_i915_gem_memory_class_instance,
    pub rsvd0: __u32,
    pub probed_size: __u64,
    pub unallocated_size: __u64,
    pub __bindgen_anon_1: drm_i915_memory_region_info__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union drm_i915_memory_region_info__bindgen_ty_1 {
    pub rsvd1: [__u64; 8usize],
    pub __bindgen_anon_1: drm_i915_memory_region_info__bindgen_ty_1__bindgen_ty_1,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_memory_region_info__bindgen_ty_1__bindgen_ty_1 {
    pub probed_cpu_visible_size: __u64,
    pub unallocated_cpu_visible_size: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_memory_region_info__bindgen_ty_1__bindgen_ty_1"][::std::mem::size_of::<
        drm_i915_memory_region_info__bindgen_ty_1__bindgen_ty_1,
    >() - 16usize];
    ["Alignment of drm_i915_memory_region_info__bindgen_ty_1__bindgen_ty_1"][::std::mem::align_of::<
        drm_i915_memory_region_info__bindgen_ty_1__bindgen_ty_1,
    >() - 8usize];
    [
        "Offset of field: drm_i915_memory_region_info__bindgen_ty_1__bindgen_ty_1::probed_cpu_visible_size",
    ][::std::mem::offset_of!(
        drm_i915_memory_region_info__bindgen_ty_1__bindgen_ty_1,
        probed_cpu_visible_size
    ) - 0usize];
    [
        "Offset of field: drm_i915_memory_region_info__bindgen_ty_1__bindgen_ty_1::unallocated_cpu_visible_size",
    ][::std::mem::offset_of!(
        drm_i915_memory_region_info__bindgen_ty_1__bindgen_ty_1,
        unallocated_cpu_visible_size
    ) - 8usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_memory_region_info__bindgen_ty_1"]
        [::std::mem::size_of::<drm_i915_memory_region_info__bindgen_ty_1>() - 64usize];
    ["Alignment of drm_i915_memory_region_info__bindgen_ty_1"]
        [::std::mem::align_of::<drm_i915_memory_region_info__bindgen_ty_1>() - 8usize];
    ["Offset of field: drm_i915_memory_region_info__bindgen_ty_1::rsvd1"]
        [::std::mem::offset_of!(drm_i915_memory_region_info__bindgen_ty_1, rsvd1) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_memory_region_info"]
        [::std::mem::size_of::<drm_i915_memory_region_info>() - 88usize];
    ["Alignment of drm_i915_memory_region_info"]
        [::std::mem::align_of::<drm_i915_memory_region_info>() - 8usize];
    ["Offset of field: drm_i915_memory_region_info::region"]
        [::std::mem::offset_of!(drm_i915_memory_region_info, region) - 0usize];
    ["Offset of field: drm_i915_memory_region_info::rsvd0"]
        [::std::mem::offset_of!(drm_i915_memory_region_info, rsvd0) - 4usize];
    ["Offset of field: drm_i915_memory_region_info::probed_size"]
        [::std::mem::offset_of!(drm_i915_memory_region_info, probed_size) - 8usize];
    ["Offset of field: drm_i915_memory_region_info::unallocated_size"]
        [::std::mem::offset_of!(drm_i915_memory_region_info, unallocated_size) - 16usize];
};
#[repr(C)]
pub struct drm_i915_query_memory_regions {
    pub num_regions: __u32,
    pub rsvd: [__u32; 3usize],
    pub regions: __IncompleteArrayField<drm_i915_memory_region_info>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_query_memory_regions"]
        [::std::mem::size_of::<drm_i915_query_memory_regions>() - 16usize];
    ["Alignment of drm_i915_query_memory_regions"]
        [::std::mem::align_of::<drm_i915_query_memory_regions>() - 8usize];
    ["Offset of field: drm_i915_query_memory_regions::num_regions"]
        [::std::mem::offset_of!(drm_i915_query_memory_regions, num_regions) - 0usize];
    ["Offset of field: drm_i915_query_memory_regions::rsvd"]
        [::std::mem::offset_of!(drm_i915_query_memory_regions, rsvd) - 4usize];
    ["Offset of field: drm_i915_query_memory_regions::regions"]
        [::std::mem::offset_of!(drm_i915_query_memory_regions, regions) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_query_guc_submission_version {
    pub branch: __u32,
    pub major: __u32,
    pub minor: __u32,
    pub patch: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_query_guc_submission_version"]
        [::std::mem::size_of::<drm_i915_query_guc_submission_version>() - 16usize];
    ["Alignment of drm_i915_query_guc_submission_version"]
        [::std::mem::align_of::<drm_i915_query_guc_submission_version>() - 4usize];
    ["Offset of field: drm_i915_query_guc_submission_version::branch"]
        [::std::mem::offset_of!(drm_i915_query_guc_submission_version, branch) - 0usize];
    ["Offset of field: drm_i915_query_guc_submission_version::major"]
        [::std::mem::offset_of!(drm_i915_query_guc_submission_version, major) - 4usize];
    ["Offset of field: drm_i915_query_guc_submission_version::minor"]
        [::std::mem::offset_of!(drm_i915_query_guc_submission_version, minor) - 8usize];
    ["Offset of field: drm_i915_query_guc_submission_version::patch"]
        [::std::mem::offset_of!(drm_i915_query_guc_submission_version, patch) - 12usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_gem_create_ext {
    pub size: __u64,
    pub handle: __u32,
    pub flags: __u32,
    pub extensions: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_gem_create_ext"][::std::mem::size_of::<drm_i915_gem_create_ext>() - 24usize];
    ["Alignment of drm_i915_gem_create_ext"]
        [::std::mem::align_of::<drm_i915_gem_create_ext>() - 8usize];
    ["Offset of field: drm_i915_gem_create_ext::size"]
        [::std::mem::offset_of!(drm_i915_gem_create_ext, size) - 0usize];
    ["Offset of field: drm_i915_gem_create_ext::handle"]
        [::std::mem::offset_of!(drm_i915_gem_create_ext, handle) - 8usize];
    ["Offset of field: drm_i915_gem_create_ext::flags"]
        [::std::mem::offset_of!(drm_i915_gem_create_ext, flags) - 12usize];
    ["Offset of field: drm_i915_gem_create_ext::extensions"]
        [::std::mem::offset_of!(drm_i915_gem_create_ext, extensions) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_gem_create_ext_memory_regions {
    pub base: i915_user_extension,
    pub pad: __u32,
    pub num_regions: __u32,
    pub regions: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_gem_create_ext_memory_regions"]
        [::std::mem::size_of::<drm_i915_gem_create_ext_memory_regions>() - 48usize];
    ["Alignment of drm_i915_gem_create_ext_memory_regions"]
        [::std::mem::align_of::<drm_i915_gem_create_ext_memory_regions>() - 8usize];
    ["Offset of field: drm_i915_gem_create_ext_memory_regions::base"]
        [::std::mem::offset_of!(drm_i915_gem_create_ext_memory_regions, base) - 0usize];
    ["Offset of field: drm_i915_gem_create_ext_memory_regions::pad"]
        [::std::mem::offset_of!(drm_i915_gem_create_ext_memory_regions, pad) - 32usize];
    ["Offset of field: drm_i915_gem_create_ext_memory_regions::num_regions"]
        [::std::mem::offset_of!(drm_i915_gem_create_ext_memory_regions, num_regions) - 36usize];
    ["Offset of field: drm_i915_gem_create_ext_memory_regions::regions"]
        [::std::mem::offset_of!(drm_i915_gem_create_ext_memory_regions, regions) - 40usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_gem_create_ext_protected_content {
    pub base: i915_user_extension,
    pub flags: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_gem_create_ext_protected_content"]
        [::std::mem::size_of::<drm_i915_gem_create_ext_protected_content>() - 40usize];
    ["Alignment of drm_i915_gem_create_ext_protected_content"]
        [::std::mem::align_of::<drm_i915_gem_create_ext_protected_content>() - 8usize];
    ["Offset of field: drm_i915_gem_create_ext_protected_content::base"]
        [::std::mem::offset_of!(drm_i915_gem_create_ext_protected_content, base) - 0usize];
    ["Offset of field: drm_i915_gem_create_ext_protected_content::flags"]
        [::std::mem::offset_of!(drm_i915_gem_create_ext_protected_content, flags) - 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_i915_gem_create_ext_set_pat {
    pub base: i915_user_extension,
    pub pat_index: __u32,
    pub rsvd: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_i915_gem_create_ext_set_pat"]
        [::std::mem::size_of::<drm_i915_gem_create_ext_set_pat>() - 40usize];
    ["Alignment of drm_i915_gem_create_ext_set_pat"]
        [::std::mem::align_of::<drm_i915_gem_create_ext_set_pat>() - 8usize];
    ["Offset of field: drm_i915_gem_create_ext_set_pat::base"]
        [::std::mem::offset_of!(drm_i915_gem_create_ext_set_pat, base) - 0usize];
    ["Offset of field: drm_i915_gem_create_ext_set_pat::pat_index"]
        [::std::mem::offset_of!(drm_i915_gem_create_ext_set_pat, pat_index) - 32usize];
    ["Offset of field: drm_i915_gem_create_ext_set_pat::rsvd"]
        [::std::mem::offset_of!(drm_i915_gem_create_ext_set_pat, rsvd) - 36usize];
};
pub type __uint64_t = ::std::os::raw::c_ulong;
pub type __off_t = ::std::os::raw::c_long;
pub type __off64_t = ::std::os::raw::c_long;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _IO_marker {
    _unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _IO_codecvt {
    _unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _IO_wide_data {
    _unused: [u8; 0],
}
pub type _IO_lock_t = ::std::os::raw::c_void;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _drm_intel_bufmgr {
    _unused: [u8; 0],
}
pub type drm_intel_bufmgr = _drm_intel_bufmgr;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _drm_intel_context {
    _unused: [u8; 0],
}
pub type drm_intel_context = _drm_intel_context;
pub type drm_intel_bo = _drm_intel_bo;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _drm_intel_bo {
    pub size: ::std::os::raw::c_ulong,
    pub align: ::std::os::raw::c_ulong,
    pub offset: ::std::os::raw::c_ulong,
    pub virtual_: *mut ::std::os::raw::c_void,
    pub bufmgr: *mut drm_intel_bufmgr,
    pub handle: ::std::os::raw::c_int,
    pub offset64: u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of _drm_intel_bo"][::std::mem::size_of::<_drm_intel_bo>() - 56usize];
    ["Alignment of _drm_intel_bo"][::std::mem::align_of::<_drm_intel_bo>() - 8usize];
    ["Offset of field: _drm_intel_bo::size"][::std::mem::offset_of!(_drm_intel_bo, size) - 0usize];
    ["Offset of field: _drm_intel_bo::align"]
        [::std::mem::offset_of!(_drm_intel_bo, align) - 8usize];
    ["Offset of field: _drm_intel_bo::offset"]
        [::std::mem::offset_of!(_drm_intel_bo, offset) - 16usize];
    ["Offset of field: _drm_intel_bo::virtual_"]
        [::std::mem::offset_of!(_drm_intel_bo, virtual_) - 24usize];
    ["Offset of field: _drm_intel_bo::bufmgr"]
        [::std::mem::offset_of!(_drm_intel_bo, bufmgr) - 32usize];
    ["Offset of field: _drm_intel_bo::handle"]
        [::std::mem::offset_of!(_drm_intel_bo, handle) - 40usize];
    ["Offset of field: _drm_intel_bo::offset64"]
        [::std::mem::offset_of!(_drm_intel_bo, offset64) - 48usize];
};
pub const aub_dump_bmp_format_AUB_DUMP_BMP_FORMAT_8BIT: aub_dump_bmp_format = 1;
pub const aub_dump_bmp_format_AUB_DUMP_BMP_FORMAT_ARGB_4444: aub_dump_bmp_format = 4;
pub const aub_dump_bmp_format_AUB_DUMP_BMP_FORMAT_ARGB_0888: aub_dump_bmp_format = 6;
pub const aub_dump_bmp_format_AUB_DUMP_BMP_FORMAT_ARGB_8888: aub_dump_bmp_format = 7;
pub type aub_dump_bmp_format = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _drm_intel_aub_annotation {
    pub type_: u32,
    pub subtype: u32,
    pub ending_offset: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of _drm_intel_aub_annotation"]
        [::std::mem::size_of::<_drm_intel_aub_annotation>() - 12usize];
    ["Alignment of _drm_intel_aub_annotation"]
        [::std::mem::align_of::<_drm_intel_aub_annotation>() - 4usize];
    ["Offset of field: _drm_intel_aub_annotation::type_"]
        [::std::mem::offset_of!(_drm_intel_aub_annotation, type_) - 0usize];
    ["Offset of field: _drm_intel_aub_annotation::subtype"]
        [::std::mem::offset_of!(_drm_intel_aub_annotation, subtype) - 4usize];
    ["Offset of field: _drm_intel_aub_annotation::ending_offset"]
        [::std::mem::offset_of!(_drm_intel_aub_annotation, ending_offset) - 8usize];
};
pub type drm_intel_aub_annotation = _drm_intel_aub_annotation;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_intel_decode {
    _unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_xe_user_extension {
    pub next_extension: __u64,
    pub name: __u32,
    pub pad: __u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_xe_user_extension"][::std::mem::size_of::<drm_xe_user_extension>() - 16usize];
    ["Alignment of drm_xe_user_extension"]
        [::std::mem::align_of::<drm_xe_user_extension>() - 8usize];
    ["Offset of field: drm_xe_user_extension::next_extension"]
        [::std::mem::offset_of!(drm_xe_user_extension, next_extension) - 0usize];
    ["Offset of field: drm_xe_user_extension::name"]
        [::std::mem::offset_of!(drm_xe_user_extension, name) - 8usize];
    ["Offset of field: drm_xe_user_extension::pad"]
        [::std::mem::offset_of!(drm_xe_user_extension, pad) - 12usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_xe_ext_set_property {
    pub base: drm_xe_user_extension,
    pub property: __u32,
    pub pad: __u32,
    pub value: __u64,
    pub reserved: [__u64; 2usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_xe_ext_set_property"][::std::mem::size_of::<drm_xe_ext_set_property>() - 48usize];
    ["Alignment of drm_xe_ext_set_property"]
        [::std::mem::align_of::<drm_xe_ext_set_property>() - 8usize];
    ["Offset of field: drm_xe_ext_set_property::base"]
        [::std::mem::offset_of!(drm_xe_ext_set_property, base) - 0usize];
    ["Offset of field: drm_xe_ext_set_property::property"]
        [::std::mem::offset_of!(drm_xe_ext_set_property, property) - 16usize];
    ["Offset of field: drm_xe_ext_set_property::pad"]
        [::std::mem::offset_of!(drm_xe_ext_set_property, pad) - 20usize];
    ["Offset of field: drm_xe_ext_set_property::value"]
        [::std::mem::offset_of!(drm_xe_ext_set_property, value) - 24usize];
    ["Offset of field: drm_xe_ext_set_property::reserved"]
        [::std::mem::offset_of!(drm_xe_ext_set_property, reserved) - 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_xe_engine_class_instance {
    pub engine_class: __u16,
    pub engine_instance: __u16,
    pub gt_id: __u16,
    pub pad: __u16,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_xe_engine_class_instance"]
        [::std::mem::size_of::<drm_xe_engine_class_instance>() - 8usize];
    ["Alignment of drm_xe_engine_class_instance"]
        [::std::mem::align_of::<drm_xe_engine_class_instance>() - 2usize];
    ["Offset of field: drm_xe_engine_class_instance::engine_class"]
        [::std::mem::offset_of!(drm_xe_engine_class_instance, engine_class) - 0usize];
    ["Offset of field: drm_xe_engine_class_instance::engine_instance"]
        [::std::mem::offset_of!(drm_xe_engine_class_instance, engine_instance) - 2usize];
    ["Offset of field: drm_xe_engine_class_instance::gt_id"]
        [::std::mem::offset_of!(drm_xe_engine_class_instance, gt_id) - 4usize];
    ["Offset of field: drm_xe_engine_class_instance::pad"]
        [::std::mem::offset_of!(drm_xe_engine_class_instance, pad) - 6usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_xe_engine {
    pub instance: drm_xe_engine_class_instance,
    pub reserved: [__u64; 3usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_xe_engine"][::std::mem::size_of::<drm_xe_engine>() - 32usize];
    ["Alignment of drm_xe_engine"][::std::mem::align_of::<drm_xe_engine>() - 8usize];
    ["Offset of field: drm_xe_engine::instance"]
        [::std::mem::offset_of!(drm_xe_engine, instance) - 0usize];
    ["Offset of field: drm_xe_engine::reserved"]
        [::std::mem::offset_of!(drm_xe_engine, reserved) - 8usize];
};
#[repr(C)]
#[derive(Debug)]
pub struct drm_xe_query_engines {
    pub num_engines: __u32,
    pub pad: __u32,
    pub engines: __IncompleteArrayField<drm_xe_engine>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_xe_query_engines"][::std::mem::size_of::<drm_xe_query_engines>() - 8usize];
    ["Alignment of drm_xe_query_engines"][::std::mem::align_of::<drm_xe_query_engines>() - 8usize];
    ["Offset of field: drm_xe_query_engines::num_engines"]
        [::std::mem::offset_of!(drm_xe_query_engines, num_engines) - 0usize];
    ["Offset of field: drm_xe_query_engines::pad"]
        [::std::mem::offset_of!(drm_xe_query_engines, pad) - 4usize];
    ["Offset of field: drm_xe_query_engines::engines"]
        [::std::mem::offset_of!(drm_xe_query_engines, engines) - 8usize];
};
pub const drm_xe_memory_class_DRM_XE_MEM_REGION_CLASS_SYSMEM: drm_xe_memory_class = 0;
pub const drm_xe_memory_class_DRM_XE_MEM_REGION_CLASS_VRAM: drm_xe_memory_class = 1;
pub type drm_xe_memory_class = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_xe_mem_region {
    pub mem_class: __u16,
    pub instance: __u16,
    pub min_page_size: __u32,
    pub total_size: __u64,
    pub used: __u64,
    pub cpu_visible_size: __u64,
    pub cpu_visible_used: __u64,
    pub reserved: [__u64; 6usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_xe_mem_region"][::std::mem::size_of::<drm_xe_mem_region>() - 88usize];
    ["Alignment of drm_xe_mem_region"][::std::mem::align_of::<drm_xe_mem_region>() - 8usize];
    ["Offset of field: drm_xe_mem_region::mem_class"]
        [::std::mem::offset_of!(drm_xe_mem_region, mem_class) - 0usize];
    ["Offset of field: drm_xe_mem_region::instance"]
        [::std::mem::offset_of!(drm_xe_mem_region, instance) - 2usize];
    ["Offset of field: drm_xe_mem_region::min_page_size"]
        [::std::mem::offset_of!(drm_xe_mem_region, min_page_size) - 4usize];
    ["Offset of field: drm_xe_mem_region::total_size"]
        [::std::mem::offset_of!(drm_xe_mem_region, total_size) - 8usize];
    ["Offset of field: drm_xe_mem_region::used"]
        [::std::mem::offset_of!(drm_xe_mem_region, used) - 16usize];
    ["Offset of field: drm_xe_mem_region::cpu_visible_size"]
        [::std::mem::offset_of!(drm_xe_mem_region, cpu_visible_size) - 24usize];
    ["Offset of field: drm_xe_mem_region::cpu_visible_used"]
        [::std::mem::offset_of!(drm_xe_mem_region, cpu_visible_used) - 32usize];
    ["Offset of field: drm_xe_mem_region::reserved"]
        [::std::mem::offset_of!(drm_xe_mem_region, reserved) - 40usize];
};
#[repr(C)]
#[derive(Debug)]
pub struct drm_xe_query_mem_regions {
    pub num_mem_regions: __u32,
    pub pad: __u32,
    pub mem_regions: __IncompleteArrayField<drm_xe_mem_region>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_xe_query_mem_regions"]
        [::std::mem::size_of::<drm_xe_query_mem_regions>() - 8usize];
    ["Alignment of drm_xe_query_mem_regions"]
        [::std::mem::align_of::<drm_xe_query_mem_regions>() - 8usize];
    ["Offset of field: drm_xe_query_mem_regions::num_mem_regions"]
        [::std::mem::offset_of!(drm_xe_query_mem_regions, num_mem_regions) - 0usize];
    ["Offset of field: drm_xe_query_mem_regions::pad"]
        [::std::mem::offset_of!(drm_xe_query_mem_regions, pad) - 4usize];
    ["Offset of field: drm_xe_query_mem_regions::mem_regions"]
        [::std::mem::offset_of!(drm_xe_query_mem_regions, mem_regions) - 8usize];
};
#[repr(C)]
#[derive(Debug)]
pub struct drm_xe_query_config {
    pub num_params: __u32,
    pub pad: __u32,
    pub info: __IncompleteArrayField<__u64>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_xe_query_config"][::std::mem::size_of::<drm_xe_query_config>() - 8usize];
    ["Alignment of drm_xe_query_config"][::std::mem::align_of::<drm_xe_query_config>() - 8usize];
    ["Offset of field: drm_xe_query_config::num_params"]
        [::std::mem::offset_of!(drm_xe_query_config, num_params) - 0usize];
    ["Offset of field: drm_xe_query_config::pad"]
        [::std::mem::offset_of!(drm_xe_query_config, pad) - 4usize];
    ["Offset of field: drm_xe_query_config::info"]
        [::std::mem::offset_of!(drm_xe_query_config, info) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_xe_gt {
    pub type_: __u16,
    pub tile_id: __u16,
    pub gt_id: __u16,
    pub pad: [__u16; 3usize],
    pub reference_clock: __u32,
    pub near_mem_regions: __u64,
    pub far_mem_regions: __u64,
    pub ip_ver_major: __u16,
    pub ip_ver_minor: __u16,
    pub ip_ver_rev: __u16,
    pub pad2: __u16,
    pub reserved: [__u64; 7usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_xe_gt"][::std::mem::size_of::<drm_xe_gt>() - 96usize];
    ["Alignment of drm_xe_gt"][::std::mem::align_of::<drm_xe_gt>() - 8usize];
    ["Offset of field: drm_xe_gt::type_"][::std::mem::offset_of!(drm_xe_gt, type_) - 0usize];
    ["Offset of field: drm_xe_gt::tile_id"][::std::mem::offset_of!(drm_xe_gt, tile_id) - 2usize];
    ["Offset of field: drm_xe_gt::gt_id"][::std::mem::offset_of!(drm_xe_gt, gt_id) - 4usize];
    ["Offset of field: drm_xe_gt::pad"][::std::mem::offset_of!(drm_xe_gt, pad) - 6usize];
    ["Offset of field: drm_xe_gt::reference_clock"]
        [::std::mem::offset_of!(drm_xe_gt, reference_clock) - 12usize];
    ["Offset of field: drm_xe_gt::near_mem_regions"]
        [::std::mem::offset_of!(drm_xe_gt, near_mem_regions) - 16usize];
    ["Offset of field: drm_xe_gt::far_mem_regions"]
        [::std::mem::offset_of!(drm_xe_gt, far_mem_regions) - 24usize];
    ["Offset of field: drm_xe_gt::ip_ver_major"]
        [::std::mem::offset_of!(drm_xe_gt, ip_ver_major) - 32usize];
    ["Offset of field: drm_xe_gt::ip_ver_minor"]
        [::std::mem::offset_of!(drm_xe_gt, ip_ver_minor) - 34usize];
    ["Offset of field: drm_xe_gt::ip_ver_rev"]
        [::std::mem::offset_of!(drm_xe_gt, ip_ver_rev) - 36usize];
    ["Offset of field: drm_xe_gt::pad2"][::std::mem::offset_of!(drm_xe_gt, pad2) - 38usize];
    ["Offset of field: drm_xe_gt::reserved"][::std::mem::offset_of!(drm_xe_gt, reserved) - 40usize];
};
#[repr(C)]
#[derive(Debug)]
pub struct drm_xe_query_gt_list {
    pub num_gt: __u32,
    pub pad: __u32,
    pub gt_list: __IncompleteArrayField<drm_xe_gt>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_xe_query_gt_list"][::std::mem::size_of::<drm_xe_query_gt_list>() - 8usize];
    ["Alignment of drm_xe_query_gt_list"][::std::mem::align_of::<drm_xe_query_gt_list>() - 8usize];
    ["Offset of field: drm_xe_query_gt_list::num_gt"]
        [::std::mem::offset_of!(drm_xe_query_gt_list, num_gt) - 0usize];
    ["Offset of field: drm_xe_query_gt_list::pad"]
        [::std::mem::offset_of!(drm_xe_query_gt_list, pad) - 4usize];
    ["Offset of field: drm_xe_query_gt_list::gt_list"]
        [::std::mem::offset_of!(drm_xe_query_gt_list, gt_list) - 8usize];
};
#[repr(C)]
#[derive(Debug)]
pub struct drm_xe_query_topology_mask {
    pub gt_id: __u16,
    pub type_: __u16,
    pub num_bytes: __u32,
    pub mask: __IncompleteArrayField<__u8>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_xe_query_topology_mask"]
        [::std::mem::size_of::<drm_xe_query_topology_mask>() - 8usize];
    ["Alignment of drm_xe_query_topology_mask"]
        [::std::mem::align_of::<drm_xe_query_topology_mask>() - 4usize];
    ["Offset of field: drm_xe_query_topology_mask::gt_id"]
        [::std::mem::offset_of!(drm_xe_query_topology_mask, gt_id) - 0usize];
    ["Offset of field: drm_xe_query_topology_mask::type_"]
        [::std::mem::offset_of!(drm_xe_query_topology_mask, type_) - 2usize];
    ["Offset of field: drm_xe_query_topology_mask::num_bytes"]
        [::std::mem::offset_of!(drm_xe_query_topology_mask, num_bytes) - 4usize];
    ["Offset of field: drm_xe_query_topology_mask::mask"]
        [::std::mem::offset_of!(drm_xe_query_topology_mask, mask) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_xe_query_engine_cycles {
    pub eci: drm_xe_engine_class_instance,
    pub clockid: __s32,
    pub width: __u32,
    pub engine_cycles: __u64,
    pub cpu_timestamp: __u64,
    pub cpu_delta: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_xe_query_engine_cycles"]
        [::std::mem::size_of::<drm_xe_query_engine_cycles>() - 40usize];
    ["Alignment of drm_xe_query_engine_cycles"]
        [::std::mem::align_of::<drm_xe_query_engine_cycles>() - 8usize];
    ["Offset of field: drm_xe_query_engine_cycles::eci"]
        [::std::mem::offset_of!(drm_xe_query_engine_cycles, eci) - 0usize];
    ["Offset of field: drm_xe_query_engine_cycles::clockid"]
        [::std::mem::offset_of!(drm_xe_query_engine_cycles, clockid) - 8usize];
    ["Offset of field: drm_xe_query_engine_cycles::width"]
        [::std::mem::offset_of!(drm_xe_query_engine_cycles, width) - 12usize];
    ["Offset of field: drm_xe_query_engine_cycles::engine_cycles"]
        [::std::mem::offset_of!(drm_xe_query_engine_cycles, engine_cycles) - 16usize];
    ["Offset of field: drm_xe_query_engine_cycles::cpu_timestamp"]
        [::std::mem::offset_of!(drm_xe_query_engine_cycles, cpu_timestamp) - 24usize];
    ["Offset of field: drm_xe_query_engine_cycles::cpu_delta"]
        [::std::mem::offset_of!(drm_xe_query_engine_cycles, cpu_delta) - 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_xe_query_uc_fw_version {
    pub uc_type: __u16,
    pub pad: __u16,
    pub branch_ver: __u32,
    pub major_ver: __u32,
    pub minor_ver: __u32,
    pub patch_ver: __u32,
    pub pad2: __u32,
    pub reserved: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_xe_query_uc_fw_version"]
        [::std::mem::size_of::<drm_xe_query_uc_fw_version>() - 32usize];
    ["Alignment of drm_xe_query_uc_fw_version"]
        [::std::mem::align_of::<drm_xe_query_uc_fw_version>() - 8usize];
    ["Offset of field: drm_xe_query_uc_fw_version::uc_type"]
        [::std::mem::offset_of!(drm_xe_query_uc_fw_version, uc_type) - 0usize];
    ["Offset of field: drm_xe_query_uc_fw_version::pad"]
        [::std::mem::offset_of!(drm_xe_query_uc_fw_version, pad) - 2usize];
    ["Offset of field: drm_xe_query_uc_fw_version::branch_ver"]
        [::std::mem::offset_of!(drm_xe_query_uc_fw_version, branch_ver) - 4usize];
    ["Offset of field: drm_xe_query_uc_fw_version::major_ver"]
        [::std::mem::offset_of!(drm_xe_query_uc_fw_version, major_ver) - 8usize];
    ["Offset of field: drm_xe_query_uc_fw_version::minor_ver"]
        [::std::mem::offset_of!(drm_xe_query_uc_fw_version, minor_ver) - 12usize];
    ["Offset of field: drm_xe_query_uc_fw_version::patch_ver"]
        [::std::mem::offset_of!(drm_xe_query_uc_fw_version, patch_ver) - 16usize];
    ["Offset of field: drm_xe_query_uc_fw_version::pad2"]
        [::std::mem::offset_of!(drm_xe_query_uc_fw_version, pad2) - 20usize];
    ["Offset of field: drm_xe_query_uc_fw_version::reserved"]
        [::std::mem::offset_of!(drm_xe_query_uc_fw_version, reserved) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_xe_device_query {
    pub extensions: __u64,
    pub query: __u32,
    pub size: __u32,
    pub data: __u64,
    pub reserved: [__u64; 2usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_xe_device_query"][::std::mem::size_of::<drm_xe_device_query>() - 40usize];
    ["Alignment of drm_xe_device_query"][::std::mem::align_of::<drm_xe_device_query>() - 8usize];
    ["Offset of field: drm_xe_device_query::extensions"]
        [::std::mem::offset_of!(drm_xe_device_query, extensions) - 0usize];
    ["Offset of field: drm_xe_device_query::query"]
        [::std::mem::offset_of!(drm_xe_device_query, query) - 8usize];
    ["Offset of field: drm_xe_device_query::size"]
        [::std::mem::offset_of!(drm_xe_device_query, size) - 12usize];
    ["Offset of field: drm_xe_device_query::data"]
        [::std::mem::offset_of!(drm_xe_device_query, data) - 16usize];
    ["Offset of field: drm_xe_device_query::reserved"]
        [::std::mem::offset_of!(drm_xe_device_query, reserved) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_xe_gem_create {
    pub extensions: __u64,
    pub size: __u64,
    pub placement: __u32,
    pub flags: __u32,
    pub vm_id: __u32,
    pub handle: __u32,
    pub cpu_caching: __u16,
    pub pad: [__u16; 3usize],
    pub reserved: [__u64; 2usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_xe_gem_create"][::std::mem::size_of::<drm_xe_gem_create>() - 56usize];
    ["Alignment of drm_xe_gem_create"][::std::mem::align_of::<drm_xe_gem_create>() - 8usize];
    ["Offset of field: drm_xe_gem_create::extensions"]
        [::std::mem::offset_of!(drm_xe_gem_create, extensions) - 0usize];
    ["Offset of field: drm_xe_gem_create::size"]
        [::std::mem::offset_of!(drm_xe_gem_create, size) - 8usize];
    ["Offset of field: drm_xe_gem_create::placement"]
        [::std::mem::offset_of!(drm_xe_gem_create, placement) - 16usize];
    ["Offset of field: drm_xe_gem_create::flags"]
        [::std::mem::offset_of!(drm_xe_gem_create, flags) - 20usize];
    ["Offset of field: drm_xe_gem_create::vm_id"]
        [::std::mem::offset_of!(drm_xe_gem_create, vm_id) - 24usize];
    ["Offset of field: drm_xe_gem_create::handle"]
        [::std::mem::offset_of!(drm_xe_gem_create, handle) - 28usize];
    ["Offset of field: drm_xe_gem_create::cpu_caching"]
        [::std::mem::offset_of!(drm_xe_gem_create, cpu_caching) - 32usize];
    ["Offset of field: drm_xe_gem_create::pad"]
        [::std::mem::offset_of!(drm_xe_gem_create, pad) - 34usize];
    ["Offset of field: drm_xe_gem_create::reserved"]
        [::std::mem::offset_of!(drm_xe_gem_create, reserved) - 40usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_xe_gem_mmap_offset {
    pub extensions: __u64,
    pub handle: __u32,
    pub flags: __u32,
    pub offset: __u64,
    pub reserved: [__u64; 2usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_xe_gem_mmap_offset"][::std::mem::size_of::<drm_xe_gem_mmap_offset>() - 40usize];
    ["Alignment of drm_xe_gem_mmap_offset"]
        [::std::mem::align_of::<drm_xe_gem_mmap_offset>() - 8usize];
    ["Offset of field: drm_xe_gem_mmap_offset::extensions"]
        [::std::mem::offset_of!(drm_xe_gem_mmap_offset, extensions) - 0usize];
    ["Offset of field: drm_xe_gem_mmap_offset::handle"]
        [::std::mem::offset_of!(drm_xe_gem_mmap_offset, handle) - 8usize];
    ["Offset of field: drm_xe_gem_mmap_offset::flags"]
        [::std::mem::offset_of!(drm_xe_gem_mmap_offset, flags) - 12usize];
    ["Offset of field: drm_xe_gem_mmap_offset::offset"]
        [::std::mem::offset_of!(drm_xe_gem_mmap_offset, offset) - 16usize];
    ["Offset of field: drm_xe_gem_mmap_offset::reserved"]
        [::std::mem::offset_of!(drm_xe_gem_mmap_offset, reserved) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_xe_vm_create {
    pub extensions: __u64,
    pub flags: __u32,
    pub vm_id: __u32,
    pub reserved: [__u64; 2usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_xe_vm_create"][::std::mem::size_of::<drm_xe_vm_create>() - 32usize];
    ["Alignment of drm_xe_vm_create"][::std::mem::align_of::<drm_xe_vm_create>() - 8usize];
    ["Offset of field: drm_xe_vm_create::extensions"]
        [::std::mem::offset_of!(drm_xe_vm_create, extensions) - 0usize];
    ["Offset of field: drm_xe_vm_create::flags"]
        [::std::mem::offset_of!(drm_xe_vm_create, flags) - 8usize];
    ["Offset of field: drm_xe_vm_create::vm_id"]
        [::std::mem::offset_of!(drm_xe_vm_create, vm_id) - 12usize];
    ["Offset of field: drm_xe_vm_create::reserved"]
        [::std::mem::offset_of!(drm_xe_vm_create, reserved) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_xe_vm_destroy {
    pub vm_id: __u32,
    pub pad: __u32,
    pub reserved: [__u64; 2usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_xe_vm_destroy"][::std::mem::size_of::<drm_xe_vm_destroy>() - 24usize];
    ["Alignment of drm_xe_vm_destroy"][::std::mem::align_of::<drm_xe_vm_destroy>() - 8usize];
    ["Offset of field: drm_xe_vm_destroy::vm_id"]
        [::std::mem::offset_of!(drm_xe_vm_destroy, vm_id) - 0usize];
    ["Offset of field: drm_xe_vm_destroy::pad"]
        [::std::mem::offset_of!(drm_xe_vm_destroy, pad) - 4usize];
    ["Offset of field: drm_xe_vm_destroy::reserved"]
        [::std::mem::offset_of!(drm_xe_vm_destroy, reserved) - 8usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct drm_xe_vm_bind_op {
    pub extensions: __u64,
    pub obj: __u32,
    pub pat_index: __u16,
    pub pad: __u16,
    pub __bindgen_anon_1: drm_xe_vm_bind_op__bindgen_ty_1,
    pub range: __u64,
    pub addr: __u64,
    pub op: __u32,
    pub flags: __u32,
    pub prefetch_mem_region_instance: __u32,
    pub pad2: __u32,
    pub reserved: [__u64; 3usize],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union drm_xe_vm_bind_op__bindgen_ty_1 {
    pub obj_offset: __u64,
    pub userptr: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_xe_vm_bind_op__bindgen_ty_1"]
        [::std::mem::size_of::<drm_xe_vm_bind_op__bindgen_ty_1>() - 8usize];
    ["Alignment of drm_xe_vm_bind_op__bindgen_ty_1"]
        [::std::mem::align_of::<drm_xe_vm_bind_op__bindgen_ty_1>() - 8usize];
    ["Offset of field: drm_xe_vm_bind_op__bindgen_ty_1::obj_offset"]
        [::std::mem::offset_of!(drm_xe_vm_bind_op__bindgen_ty_1, obj_offset) - 0usize];
    ["Offset of field: drm_xe_vm_bind_op__bindgen_ty_1::userptr"]
        [::std::mem::offset_of!(drm_xe_vm_bind_op__bindgen_ty_1, userptr) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_xe_vm_bind_op"][::std::mem::size_of::<drm_xe_vm_bind_op>() - 80usize];
    ["Alignment of drm_xe_vm_bind_op"][::std::mem::align_of::<drm_xe_vm_bind_op>() - 8usize];
    ["Offset of field: drm_xe_vm_bind_op::extensions"]
        [::std::mem::offset_of!(drm_xe_vm_bind_op, extensions) - 0usize];
    ["Offset of field: drm_xe_vm_bind_op::obj"]
        [::std::mem::offset_of!(drm_xe_vm_bind_op, obj) - 8usize];
    ["Offset of field: drm_xe_vm_bind_op::pat_index"]
        [::std::mem::offset_of!(drm_xe_vm_bind_op, pat_index) - 12usize];
    ["Offset of field: drm_xe_vm_bind_op::pad"]
        [::std::mem::offset_of!(drm_xe_vm_bind_op, pad) - 14usize];
    ["Offset of field: drm_xe_vm_bind_op::range"]
        [::std::mem::offset_of!(drm_xe_vm_bind_op, range) - 24usize];
    ["Offset of field: drm_xe_vm_bind_op::addr"]
        [::std::mem::offset_of!(drm_xe_vm_bind_op, addr) - 32usize];
    ["Offset of field: drm_xe_vm_bind_op::op"]
        [::std::mem::offset_of!(drm_xe_vm_bind_op, op) - 40usize];
    ["Offset of field: drm_xe_vm_bind_op::flags"]
        [::std::mem::offset_of!(drm_xe_vm_bind_op, flags) - 44usize];
    ["Offset of field: drm_xe_vm_bind_op::prefetch_mem_region_instance"]
        [::std::mem::offset_of!(drm_xe_vm_bind_op, prefetch_mem_region_instance) - 48usize];
    ["Offset of field: drm_xe_vm_bind_op::pad2"]
        [::std::mem::offset_of!(drm_xe_vm_bind_op, pad2) - 52usize];
    ["Offset of field: drm_xe_vm_bind_op::reserved"]
        [::std::mem::offset_of!(drm_xe_vm_bind_op, reserved) - 56usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct drm_xe_vm_bind {
    pub extensions: __u64,
    pub vm_id: __u32,
    pub exec_queue_id: __u32,
    pub pad: __u32,
    pub num_binds: __u32,
    pub __bindgen_anon_1: drm_xe_vm_bind__bindgen_ty_1,
    pub pad2: __u32,
    pub num_syncs: __u32,
    pub syncs: __u64,
    pub reserved: [__u64; 2usize],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union drm_xe_vm_bind__bindgen_ty_1 {
    pub bind: drm_xe_vm_bind_op,
    pub vector_of_binds: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_xe_vm_bind__bindgen_ty_1"]
        [::std::mem::size_of::<drm_xe_vm_bind__bindgen_ty_1>() - 80usize];
    ["Alignment of drm_xe_vm_bind__bindgen_ty_1"]
        [::std::mem::align_of::<drm_xe_vm_bind__bindgen_ty_1>() - 8usize];
    ["Offset of field: drm_xe_vm_bind__bindgen_ty_1::bind"]
        [::std::mem::offset_of!(drm_xe_vm_bind__bindgen_ty_1, bind) - 0usize];
    ["Offset of field: drm_xe_vm_bind__bindgen_ty_1::vector_of_binds"]
        [::std::mem::offset_of!(drm_xe_vm_bind__bindgen_ty_1, vector_of_binds) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_xe_vm_bind"][::std::mem::size_of::<drm_xe_vm_bind>() - 136usize];
    ["Alignment of drm_xe_vm_bind"][::std::mem::align_of::<drm_xe_vm_bind>() - 8usize];
    ["Offset of field: drm_xe_vm_bind::extensions"]
        [::std::mem::offset_of!(drm_xe_vm_bind, extensions) - 0usize];
    ["Offset of field: drm_xe_vm_bind::vm_id"]
        [::std::mem::offset_of!(drm_xe_vm_bind, vm_id) - 8usize];
    ["Offset of field: drm_xe_vm_bind::exec_queue_id"]
        [::std::mem::offset_of!(drm_xe_vm_bind, exec_queue_id) - 12usize];
    ["Offset of field: drm_xe_vm_bind::pad"][::std::mem::offset_of!(drm_xe_vm_bind, pad) - 16usize];
    ["Offset of field: drm_xe_vm_bind::num_binds"]
        [::std::mem::offset_of!(drm_xe_vm_bind, num_binds) - 20usize];
    ["Offset of field: drm_xe_vm_bind::pad2"]
        [::std::mem::offset_of!(drm_xe_vm_bind, pad2) - 104usize];
    ["Offset of field: drm_xe_vm_bind::num_syncs"]
        [::std::mem::offset_of!(drm_xe_vm_bind, num_syncs) - 108usize];
    ["Offset of field: drm_xe_vm_bind::syncs"]
        [::std::mem::offset_of!(drm_xe_vm_bind, syncs) - 112usize];
    ["Offset of field: drm_xe_vm_bind::reserved"]
        [::std::mem::offset_of!(drm_xe_vm_bind, reserved) - 120usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_xe_exec_queue_create {
    pub extensions: __u64,
    pub width: __u16,
    pub num_placements: __u16,
    pub vm_id: __u32,
    pub flags: __u32,
    pub exec_queue_id: __u32,
    pub instances: __u64,
    pub reserved: [__u64; 2usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_xe_exec_queue_create"]
        [::std::mem::size_of::<drm_xe_exec_queue_create>() - 48usize];
    ["Alignment of drm_xe_exec_queue_create"]
        [::std::mem::align_of::<drm_xe_exec_queue_create>() - 8usize];
    ["Offset of field: drm_xe_exec_queue_create::extensions"]
        [::std::mem::offset_of!(drm_xe_exec_queue_create, extensions) - 0usize];
    ["Offset of field: drm_xe_exec_queue_create::width"]
        [::std::mem::offset_of!(drm_xe_exec_queue_create, width) - 8usize];
    ["Offset of field: drm_xe_exec_queue_create::num_placements"]
        [::std::mem::offset_of!(drm_xe_exec_queue_create, num_placements) - 10usize];
    ["Offset of field: drm_xe_exec_queue_create::vm_id"]
        [::std::mem::offset_of!(drm_xe_exec_queue_create, vm_id) - 12usize];
    ["Offset of field: drm_xe_exec_queue_create::flags"]
        [::std::mem::offset_of!(drm_xe_exec_queue_create, flags) - 16usize];
    ["Offset of field: drm_xe_exec_queue_create::exec_queue_id"]
        [::std::mem::offset_of!(drm_xe_exec_queue_create, exec_queue_id) - 20usize];
    ["Offset of field: drm_xe_exec_queue_create::instances"]
        [::std::mem::offset_of!(drm_xe_exec_queue_create, instances) - 24usize];
    ["Offset of field: drm_xe_exec_queue_create::reserved"]
        [::std::mem::offset_of!(drm_xe_exec_queue_create, reserved) - 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_xe_exec_queue_destroy {
    pub exec_queue_id: __u32,
    pub pad: __u32,
    pub reserved: [__u64; 2usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_xe_exec_queue_destroy"]
        [::std::mem::size_of::<drm_xe_exec_queue_destroy>() - 24usize];
    ["Alignment of drm_xe_exec_queue_destroy"]
        [::std::mem::align_of::<drm_xe_exec_queue_destroy>() - 8usize];
    ["Offset of field: drm_xe_exec_queue_destroy::exec_queue_id"]
        [::std::mem::offset_of!(drm_xe_exec_queue_destroy, exec_queue_id) - 0usize];
    ["Offset of field: drm_xe_exec_queue_destroy::pad"]
        [::std::mem::offset_of!(drm_xe_exec_queue_destroy, pad) - 4usize];
    ["Offset of field: drm_xe_exec_queue_destroy::reserved"]
        [::std::mem::offset_of!(drm_xe_exec_queue_destroy, reserved) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_xe_exec_queue_get_property {
    pub extensions: __u64,
    pub exec_queue_id: __u32,
    pub property: __u32,
    pub value: __u64,
    pub reserved: [__u64; 2usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_xe_exec_queue_get_property"]
        [::std::mem::size_of::<drm_xe_exec_queue_get_property>() - 40usize];
    ["Alignment of drm_xe_exec_queue_get_property"]
        [::std::mem::align_of::<drm_xe_exec_queue_get_property>() - 8usize];
    ["Offset of field: drm_xe_exec_queue_get_property::extensions"]
        [::std::mem::offset_of!(drm_xe_exec_queue_get_property, extensions) - 0usize];
    ["Offset of field: drm_xe_exec_queue_get_property::exec_queue_id"]
        [::std::mem::offset_of!(drm_xe_exec_queue_get_property, exec_queue_id) - 8usize];
    ["Offset of field: drm_xe_exec_queue_get_property::property"]
        [::std::mem::offset_of!(drm_xe_exec_queue_get_property, property) - 12usize];
    ["Offset of field: drm_xe_exec_queue_get_property::value"]
        [::std::mem::offset_of!(drm_xe_exec_queue_get_property, value) - 16usize];
    ["Offset of field: drm_xe_exec_queue_get_property::reserved"]
        [::std::mem::offset_of!(drm_xe_exec_queue_get_property, reserved) - 24usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct drm_xe_sync {
    pub extensions: __u64,
    pub type_: __u32,
    pub flags: __u32,
    pub __bindgen_anon_1: drm_xe_sync__bindgen_ty_1,
    pub timeline_value: __u64,
    pub reserved: [__u64; 2usize],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union drm_xe_sync__bindgen_ty_1 {
    pub handle: __u32,
    pub addr: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_xe_sync__bindgen_ty_1"]
        [::std::mem::size_of::<drm_xe_sync__bindgen_ty_1>() - 8usize];
    ["Alignment of drm_xe_sync__bindgen_ty_1"]
        [::std::mem::align_of::<drm_xe_sync__bindgen_ty_1>() - 8usize];
    ["Offset of field: drm_xe_sync__bindgen_ty_1::handle"]
        [::std::mem::offset_of!(drm_xe_sync__bindgen_ty_1, handle) - 0usize];
    ["Offset of field: drm_xe_sync__bindgen_ty_1::addr"]
        [::std::mem::offset_of!(drm_xe_sync__bindgen_ty_1, addr) - 0usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_xe_sync"][::std::mem::size_of::<drm_xe_sync>() - 48usize];
    ["Alignment of drm_xe_sync"][::std::mem::align_of::<drm_xe_sync>() - 8usize];
    ["Offset of field: drm_xe_sync::extensions"]
        [::std::mem::offset_of!(drm_xe_sync, extensions) - 0usize];
    ["Offset of field: drm_xe_sync::type_"][::std::mem::offset_of!(drm_xe_sync, type_) - 8usize];
    ["Offset of field: drm_xe_sync::flags"][::std::mem::offset_of!(drm_xe_sync, flags) - 12usize];
    ["Offset of field: drm_xe_sync::timeline_value"]
        [::std::mem::offset_of!(drm_xe_sync, timeline_value) - 24usize];
    ["Offset of field: drm_xe_sync::reserved"]
        [::std::mem::offset_of!(drm_xe_sync, reserved) - 32usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_xe_exec {
    pub extensions: __u64,
    pub exec_queue_id: __u32,
    pub num_syncs: __u32,
    pub syncs: __u64,
    pub address: __u64,
    pub num_batch_buffer: __u16,
    pub pad: [__u16; 3usize],
    pub reserved: [__u64; 2usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_xe_exec"][::std::mem::size_of::<drm_xe_exec>() - 56usize];
    ["Alignment of drm_xe_exec"][::std::mem::align_of::<drm_xe_exec>() - 8usize];
    ["Offset of field: drm_xe_exec::extensions"]
        [::std::mem::offset_of!(drm_xe_exec, extensions) - 0usize];
    ["Offset of field: drm_xe_exec::exec_queue_id"]
        [::std::mem::offset_of!(drm_xe_exec, exec_queue_id) - 8usize];
    ["Offset of field: drm_xe_exec::num_syncs"]
        [::std::mem::offset_of!(drm_xe_exec, num_syncs) - 12usize];
    ["Offset of field: drm_xe_exec::syncs"][::std::mem::offset_of!(drm_xe_exec, syncs) - 16usize];
    ["Offset of field: drm_xe_exec::address"]
        [::std::mem::offset_of!(drm_xe_exec, address) - 24usize];
    ["Offset of field: drm_xe_exec::num_batch_buffer"]
        [::std::mem::offset_of!(drm_xe_exec, num_batch_buffer) - 32usize];
    ["Offset of field: drm_xe_exec::pad"][::std::mem::offset_of!(drm_xe_exec, pad) - 34usize];
    ["Offset of field: drm_xe_exec::reserved"]
        [::std::mem::offset_of!(drm_xe_exec, reserved) - 40usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_xe_wait_user_fence {
    pub extensions: __u64,
    pub addr: __u64,
    pub op: __u16,
    pub flags: __u16,
    pub pad: __u32,
    pub value: __u64,
    pub mask: __u64,
    pub timeout: __s64,
    pub exec_queue_id: __u32,
    pub pad2: __u32,
    pub reserved: [__u64; 2usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_xe_wait_user_fence"][::std::mem::size_of::<drm_xe_wait_user_fence>() - 72usize];
    ["Alignment of drm_xe_wait_user_fence"]
        [::std::mem::align_of::<drm_xe_wait_user_fence>() - 8usize];
    ["Offset of field: drm_xe_wait_user_fence::extensions"]
        [::std::mem::offset_of!(drm_xe_wait_user_fence, extensions) - 0usize];
    ["Offset of field: drm_xe_wait_user_fence::addr"]
        [::std::mem::offset_of!(drm_xe_wait_user_fence, addr) - 8usize];
    ["Offset of field: drm_xe_wait_user_fence::op"]
        [::std::mem::offset_of!(drm_xe_wait_user_fence, op) - 16usize];
    ["Offset of field: drm_xe_wait_user_fence::flags"]
        [::std::mem::offset_of!(drm_xe_wait_user_fence, flags) - 18usize];
    ["Offset of field: drm_xe_wait_user_fence::pad"]
        [::std::mem::offset_of!(drm_xe_wait_user_fence, pad) - 20usize];
    ["Offset of field: drm_xe_wait_user_fence::value"]
        [::std::mem::offset_of!(drm_xe_wait_user_fence, value) - 24usize];
    ["Offset of field: drm_xe_wait_user_fence::mask"]
        [::std::mem::offset_of!(drm_xe_wait_user_fence, mask) - 32usize];
    ["Offset of field: drm_xe_wait_user_fence::timeout"]
        [::std::mem::offset_of!(drm_xe_wait_user_fence, timeout) - 40usize];
    ["Offset of field: drm_xe_wait_user_fence::exec_queue_id"]
        [::std::mem::offset_of!(drm_xe_wait_user_fence, exec_queue_id) - 48usize];
    ["Offset of field: drm_xe_wait_user_fence::pad2"]
        [::std::mem::offset_of!(drm_xe_wait_user_fence, pad2) - 52usize];
    ["Offset of field: drm_xe_wait_user_fence::reserved"]
        [::std::mem::offset_of!(drm_xe_wait_user_fence, reserved) - 56usize];
};
pub const drm_xe_observation_type_DRM_XE_OBSERVATION_TYPE_OA: drm_xe_observation_type = 0;
pub type drm_xe_observation_type = ::std::os::raw::c_uint;
pub const drm_xe_observation_op_DRM_XE_OBSERVATION_OP_STREAM_OPEN: drm_xe_observation_op = 0;
pub const drm_xe_observation_op_DRM_XE_OBSERVATION_OP_ADD_CONFIG: drm_xe_observation_op = 1;
pub const drm_xe_observation_op_DRM_XE_OBSERVATION_OP_REMOVE_CONFIG: drm_xe_observation_op = 2;
pub type drm_xe_observation_op = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_xe_observation_param {
    pub extensions: __u64,
    pub observation_type: __u64,
    pub observation_op: __u64,
    pub param: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_xe_observation_param"]
        [::std::mem::size_of::<drm_xe_observation_param>() - 32usize];
    ["Alignment of drm_xe_observation_param"]
        [::std::mem::align_of::<drm_xe_observation_param>() - 8usize];
    ["Offset of field: drm_xe_observation_param::extensions"]
        [::std::mem::offset_of!(drm_xe_observation_param, extensions) - 0usize];
    ["Offset of field: drm_xe_observation_param::observation_type"]
        [::std::mem::offset_of!(drm_xe_observation_param, observation_type) - 8usize];
    ["Offset of field: drm_xe_observation_param::observation_op"]
        [::std::mem::offset_of!(drm_xe_observation_param, observation_op) - 16usize];
    ["Offset of field: drm_xe_observation_param::param"]
        [::std::mem::offset_of!(drm_xe_observation_param, param) - 24usize];
};
pub const drm_xe_observation_ioctls_DRM_XE_OBSERVATION_IOCTL_ENABLE: drm_xe_observation_ioctls =
    26880;
pub const drm_xe_observation_ioctls_DRM_XE_OBSERVATION_IOCTL_DISABLE: drm_xe_observation_ioctls =
    26881;
pub const drm_xe_observation_ioctls_DRM_XE_OBSERVATION_IOCTL_CONFIG: drm_xe_observation_ioctls =
    26882;
pub const drm_xe_observation_ioctls_DRM_XE_OBSERVATION_IOCTL_STATUS: drm_xe_observation_ioctls =
    26883;
pub const drm_xe_observation_ioctls_DRM_XE_OBSERVATION_IOCTL_INFO: drm_xe_observation_ioctls =
    26884;
pub type drm_xe_observation_ioctls = ::std::os::raw::c_uint;
pub const drm_xe_oa_unit_type_DRM_XE_OA_UNIT_TYPE_OAG: drm_xe_oa_unit_type = 0;
pub const drm_xe_oa_unit_type_DRM_XE_OA_UNIT_TYPE_OAM: drm_xe_oa_unit_type = 1;
pub type drm_xe_oa_unit_type = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug)]
pub struct drm_xe_oa_unit {
    pub extensions: __u64,
    pub oa_unit_id: __u32,
    pub oa_unit_type: __u32,
    pub capabilities: __u64,
    pub oa_timestamp_freq: __u64,
    pub reserved: [__u64; 4usize],
    pub num_engines: __u64,
    pub eci: __IncompleteArrayField<drm_xe_engine_class_instance>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_xe_oa_unit"][::std::mem::size_of::<drm_xe_oa_unit>() - 72usize];
    ["Alignment of drm_xe_oa_unit"][::std::mem::align_of::<drm_xe_oa_unit>() - 8usize];
    ["Offset of field: drm_xe_oa_unit::extensions"]
        [::std::mem::offset_of!(drm_xe_oa_unit, extensions) - 0usize];
    ["Offset of field: drm_xe_oa_unit::oa_unit_id"]
        [::std::mem::offset_of!(drm_xe_oa_unit, oa_unit_id) - 8usize];
    ["Offset of field: drm_xe_oa_unit::oa_unit_type"]
        [::std::mem::offset_of!(drm_xe_oa_unit, oa_unit_type) - 12usize];
    ["Offset of field: drm_xe_oa_unit::capabilities"]
        [::std::mem::offset_of!(drm_xe_oa_unit, capabilities) - 16usize];
    ["Offset of field: drm_xe_oa_unit::oa_timestamp_freq"]
        [::std::mem::offset_of!(drm_xe_oa_unit, oa_timestamp_freq) - 24usize];
    ["Offset of field: drm_xe_oa_unit::reserved"]
        [::std::mem::offset_of!(drm_xe_oa_unit, reserved) - 32usize];
    ["Offset of field: drm_xe_oa_unit::num_engines"]
        [::std::mem::offset_of!(drm_xe_oa_unit, num_engines) - 64usize];
    ["Offset of field: drm_xe_oa_unit::eci"][::std::mem::offset_of!(drm_xe_oa_unit, eci) - 72usize];
};
#[repr(C)]
#[derive(Debug)]
pub struct drm_xe_query_oa_units {
    pub extensions: __u64,
    pub num_oa_units: __u32,
    pub pad: __u32,
    pub oa_units: __IncompleteArrayField<__u64>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_xe_query_oa_units"][::std::mem::size_of::<drm_xe_query_oa_units>() - 16usize];
    ["Alignment of drm_xe_query_oa_units"]
        [::std::mem::align_of::<drm_xe_query_oa_units>() - 8usize];
    ["Offset of field: drm_xe_query_oa_units::extensions"]
        [::std::mem::offset_of!(drm_xe_query_oa_units, extensions) - 0usize];
    ["Offset of field: drm_xe_query_oa_units::num_oa_units"]
        [::std::mem::offset_of!(drm_xe_query_oa_units, num_oa_units) - 8usize];
    ["Offset of field: drm_xe_query_oa_units::pad"]
        [::std::mem::offset_of!(drm_xe_query_oa_units, pad) - 12usize];
    ["Offset of field: drm_xe_query_oa_units::oa_units"]
        [::std::mem::offset_of!(drm_xe_query_oa_units, oa_units) - 16usize];
};
pub const drm_xe_oa_format_type_DRM_XE_OA_FMT_TYPE_OAG: drm_xe_oa_format_type = 0;
pub const drm_xe_oa_format_type_DRM_XE_OA_FMT_TYPE_OAR: drm_xe_oa_format_type = 1;
pub const drm_xe_oa_format_type_DRM_XE_OA_FMT_TYPE_OAM: drm_xe_oa_format_type = 2;
pub const drm_xe_oa_format_type_DRM_XE_OA_FMT_TYPE_OAC: drm_xe_oa_format_type = 3;
pub const drm_xe_oa_format_type_DRM_XE_OA_FMT_TYPE_OAM_MPEC: drm_xe_oa_format_type = 4;
pub const drm_xe_oa_format_type_DRM_XE_OA_FMT_TYPE_PEC: drm_xe_oa_format_type = 5;
pub type drm_xe_oa_format_type = ::std::os::raw::c_uint;
pub const drm_xe_oa_property_id_DRM_XE_OA_PROPERTY_OA_UNIT_ID: drm_xe_oa_property_id = 1;
pub const drm_xe_oa_property_id_DRM_XE_OA_PROPERTY_SAMPLE_OA: drm_xe_oa_property_id = 2;
pub const drm_xe_oa_property_id_DRM_XE_OA_PROPERTY_OA_METRIC_SET: drm_xe_oa_property_id = 3;
pub const drm_xe_oa_property_id_DRM_XE_OA_PROPERTY_OA_FORMAT: drm_xe_oa_property_id = 4;
pub const drm_xe_oa_property_id_DRM_XE_OA_PROPERTY_OA_PERIOD_EXPONENT: drm_xe_oa_property_id = 5;
pub const drm_xe_oa_property_id_DRM_XE_OA_PROPERTY_OA_DISABLED: drm_xe_oa_property_id = 6;
pub const drm_xe_oa_property_id_DRM_XE_OA_PROPERTY_EXEC_QUEUE_ID: drm_xe_oa_property_id = 7;
pub const drm_xe_oa_property_id_DRM_XE_OA_PROPERTY_OA_ENGINE_INSTANCE: drm_xe_oa_property_id = 8;
pub const drm_xe_oa_property_id_DRM_XE_OA_PROPERTY_NO_PREEMPT: drm_xe_oa_property_id = 9;
pub type drm_xe_oa_property_id = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_xe_oa_config {
    pub extensions: __u64,
    pub uuid: [::std::os::raw::c_char; 36usize],
    pub n_regs: __u32,
    pub regs_ptr: __u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_xe_oa_config"][::std::mem::size_of::<drm_xe_oa_config>() - 56usize];
    ["Alignment of drm_xe_oa_config"][::std::mem::align_of::<drm_xe_oa_config>() - 8usize];
    ["Offset of field: drm_xe_oa_config::extensions"]
        [::std::mem::offset_of!(drm_xe_oa_config, extensions) - 0usize];
    ["Offset of field: drm_xe_oa_config::uuid"]
        [::std::mem::offset_of!(drm_xe_oa_config, uuid) - 8usize];
    ["Offset of field: drm_xe_oa_config::n_regs"]
        [::std::mem::offset_of!(drm_xe_oa_config, n_regs) - 44usize];
    ["Offset of field: drm_xe_oa_config::regs_ptr"]
        [::std::mem::offset_of!(drm_xe_oa_config, regs_ptr) - 48usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_xe_oa_stream_status {
    pub extensions: __u64,
    pub oa_status: __u64,
    pub reserved: [__u64; 3usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_xe_oa_stream_status"][::std::mem::size_of::<drm_xe_oa_stream_status>() - 40usize];
    ["Alignment of drm_xe_oa_stream_status"]
        [::std::mem::align_of::<drm_xe_oa_stream_status>() - 8usize];
    ["Offset of field: drm_xe_oa_stream_status::extensions"]
        [::std::mem::offset_of!(drm_xe_oa_stream_status, extensions) - 0usize];
    ["Offset of field: drm_xe_oa_stream_status::oa_status"]
        [::std::mem::offset_of!(drm_xe_oa_stream_status, oa_status) - 8usize];
    ["Offset of field: drm_xe_oa_stream_status::reserved"]
        [::std::mem::offset_of!(drm_xe_oa_stream_status, reserved) - 16usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drm_xe_oa_stream_info {
    pub extensions: __u64,
    pub oa_buf_size: __u64,
    pub reserved: [__u64; 3usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of drm_xe_oa_stream_info"][::std::mem::size_of::<drm_xe_oa_stream_info>() - 40usize];
    ["Alignment of drm_xe_oa_stream_info"]
        [::std::mem::align_of::<drm_xe_oa_stream_info>() - 8usize];
    ["Offset of field: drm_xe_oa_stream_info::extensions"]
        [::std::mem::offset_of!(drm_xe_oa_stream_info, extensions) - 0usize];
    ["Offset of field: drm_xe_oa_stream_info::oa_buf_size"]
        [::std::mem::offset_of!(drm_xe_oa_stream_info, oa_buf_size) - 8usize];
    ["Offset of field: drm_xe_oa_stream_info::reserved"]
        [::std::mem::offset_of!(drm_xe_oa_stream_info, reserved) - 16usize];
};
pub struct IntelDrm {
    __library: ::libloading::Library,
    pub drm_intel_bo_alloc: Result<
        unsafe extern "C" fn(
            bufmgr: *mut drm_intel_bufmgr,
            name: *const ::std::os::raw::c_char,
            size: ::std::os::raw::c_ulong,
            alignment: ::std::os::raw::c_uint,
        ) -> *mut drm_intel_bo,
        ::libloading::Error,
    >,
    pub drm_intel_bo_alloc_for_render: Result<
        unsafe extern "C" fn(
            bufmgr: *mut drm_intel_bufmgr,
            name: *const ::std::os::raw::c_char,
            size: ::std::os::raw::c_ulong,
            alignment: ::std::os::raw::c_uint,
        ) -> *mut drm_intel_bo,
        ::libloading::Error,
    >,
    pub drm_intel_bo_alloc_userptr: Result<
        unsafe extern "C" fn(
            bufmgr: *mut drm_intel_bufmgr,
            name: *const ::std::os::raw::c_char,
            addr: *mut ::std::os::raw::c_void,
            tiling_mode: u32,
            stride: u32,
            size: ::std::os::raw::c_ulong,
            flags: ::std::os::raw::c_ulong,
        ) -> *mut drm_intel_bo,
        ::libloading::Error,
    >,
    pub drm_intel_bo_alloc_tiled: Result<
        unsafe extern "C" fn(
            bufmgr: *mut drm_intel_bufmgr,
            name: *const ::std::os::raw::c_char,
            x: ::std::os::raw::c_int,
            y: ::std::os::raw::c_int,
            cpp: ::std::os::raw::c_int,
            tiling_mode: *mut u32,
            pitch: *mut ::std::os::raw::c_ulong,
            flags: ::std::os::raw::c_ulong,
        ) -> *mut drm_intel_bo,
        ::libloading::Error,
    >,
    pub drm_intel_bo_reference:
        Result<unsafe extern "C" fn(bo: *mut drm_intel_bo), ::libloading::Error>,
    pub drm_intel_bo_unreference:
        Result<unsafe extern "C" fn(bo: *mut drm_intel_bo), ::libloading::Error>,
    pub drm_intel_bo_map: Result<
        unsafe extern "C" fn(
            bo: *mut drm_intel_bo,
            write_enable: ::std::os::raw::c_int,
        ) -> ::std::os::raw::c_int,
        ::libloading::Error,
    >,
    pub drm_intel_bo_unmap: Result<
        unsafe extern "C" fn(bo: *mut drm_intel_bo) -> ::std::os::raw::c_int,
        ::libloading::Error,
    >,
    pub drm_intel_bo_subdata: Result<
        unsafe extern "C" fn(
            bo: *mut drm_intel_bo,
            offset: ::std::os::raw::c_ulong,
            size: ::std::os::raw::c_ulong,
            data: *const ::std::os::raw::c_void,
        ) -> ::std::os::raw::c_int,
        ::libloading::Error,
    >,
    pub drm_intel_bo_get_subdata: Result<
        unsafe extern "C" fn(
            bo: *mut drm_intel_bo,
            offset: ::std::os::raw::c_ulong,
            size: ::std::os::raw::c_ulong,
            data: *mut ::std::os::raw::c_void,
        ) -> ::std::os::raw::c_int,
        ::libloading::Error,
    >,
    pub drm_intel_bo_wait_rendering:
        Result<unsafe extern "C" fn(bo: *mut drm_intel_bo), ::libloading::Error>,
    pub drm_intel_bufmgr_set_debug: Result<
        unsafe extern "C" fn(bufmgr: *mut drm_intel_bufmgr, enable_debug: ::std::os::raw::c_int),
        ::libloading::Error,
    >,
    pub drm_intel_bufmgr_destroy:
        Result<unsafe extern "C" fn(bufmgr: *mut drm_intel_bufmgr), ::libloading::Error>,
    pub drm_intel_bo_exec: Result<
        unsafe extern "C" fn(
            bo: *mut drm_intel_bo,
            used: ::std::os::raw::c_int,
            cliprects: *mut drm_clip_rect,
            num_cliprects: ::std::os::raw::c_int,
            DR4: ::std::os::raw::c_int,
        ) -> ::std::os::raw::c_int,
        ::libloading::Error,
    >,
    pub drm_intel_bo_mrb_exec: Result<
        unsafe extern "C" fn(
            bo: *mut drm_intel_bo,
            used: ::std::os::raw::c_int,
            cliprects: *mut drm_clip_rect,
            num_cliprects: ::std::os::raw::c_int,
            DR4: ::std::os::raw::c_int,
            flags: ::std::os::raw::c_uint,
        ) -> ::std::os::raw::c_int,
        ::libloading::Error,
    >,
    pub drm_intel_bufmgr_check_aperture_space: Result<
        unsafe extern "C" fn(
            bo_array: *mut *mut drm_intel_bo,
            count: ::std::os::raw::c_int,
        ) -> ::std::os::raw::c_int,
        ::libloading::Error,
    >,
    pub drm_intel_bo_emit_reloc: Result<
        unsafe extern "C" fn(
            bo: *mut drm_intel_bo,
            offset: u32,
            target_bo: *mut drm_intel_bo,
            target_offset: u32,
            read_domains: u32,
            write_domain: u32,
        ) -> ::std::os::raw::c_int,
        ::libloading::Error,
    >,
    pub drm_intel_bo_emit_reloc_fence: Result<
        unsafe extern "C" fn(
            bo: *mut drm_intel_bo,
            offset: u32,
            target_bo: *mut drm_intel_bo,
            target_offset: u32,
            read_domains: u32,
            write_domain: u32,
        ) -> ::std::os::raw::c_int,
        ::libloading::Error,
    >,
    pub drm_intel_bo_pin: Result<
        unsafe extern "C" fn(bo: *mut drm_intel_bo, alignment: u32) -> ::std::os::raw::c_int,
        ::libloading::Error,
    >,
    pub drm_intel_bo_unpin: Result<
        unsafe extern "C" fn(bo: *mut drm_intel_bo) -> ::std::os::raw::c_int,
        ::libloading::Error,
    >,
    pub drm_intel_bo_set_tiling: Result<
        unsafe extern "C" fn(
            bo: *mut drm_intel_bo,
            tiling_mode: *mut u32,
            stride: u32,
        ) -> ::std::os::raw::c_int,
        ::libloading::Error,
    >,
    pub drm_intel_bo_get_tiling: Result<
        unsafe extern "C" fn(
            bo: *mut drm_intel_bo,
            tiling_mode: *mut u32,
            swizzle_mode: *mut u32,
        ) -> ::std::os::raw::c_int,
        ::libloading::Error,
    >,
    pub drm_intel_bo_flink: Result<
        unsafe extern "C" fn(bo: *mut drm_intel_bo, name: *mut u32) -> ::std::os::raw::c_int,
        ::libloading::Error,
    >,
    pub drm_intel_bo_busy: Result<
        unsafe extern "C" fn(bo: *mut drm_intel_bo) -> ::std::os::raw::c_int,
        ::libloading::Error,
    >,
    pub drm_intel_bo_madvise: Result<
        unsafe extern "C" fn(
            bo: *mut drm_intel_bo,
            madv: ::std::os::raw::c_int,
        ) -> ::std::os::raw::c_int,
        ::libloading::Error,
    >,
    pub drm_intel_bo_use_48b_address_range: Result<
        unsafe extern "C" fn(bo: *mut drm_intel_bo, enable: u32) -> ::std::os::raw::c_int,
        ::libloading::Error,
    >,
    pub drm_intel_bo_set_softpin_offset: Result<
        unsafe extern "C" fn(bo: *mut drm_intel_bo, offset: u64) -> ::std::os::raw::c_int,
        ::libloading::Error,
    >,
    pub drm_intel_bo_disable_reuse: Result<
        unsafe extern "C" fn(bo: *mut drm_intel_bo) -> ::std::os::raw::c_int,
        ::libloading::Error,
    >,
    pub drm_intel_bo_is_reusable: Result<
        unsafe extern "C" fn(bo: *mut drm_intel_bo) -> ::std::os::raw::c_int,
        ::libloading::Error,
    >,
    pub drm_intel_bo_references: Result<
        unsafe extern "C" fn(
            bo: *mut drm_intel_bo,
            target_bo: *mut drm_intel_bo,
        ) -> ::std::os::raw::c_int,
        ::libloading::Error,
    >,
    pub drm_intel_bufmgr_gem_init: Result<
        unsafe extern "C" fn(
            fd: ::std::os::raw::c_int,
            batch_size: ::std::os::raw::c_int,
        ) -> *mut drm_intel_bufmgr,
        ::libloading::Error,
    >,
    pub drm_intel_bo_gem_create_from_name: Result<
        unsafe extern "C" fn(
            bufmgr: *mut drm_intel_bufmgr,
            name: *const ::std::os::raw::c_char,
            handle: ::std::os::raw::c_uint,
        ) -> *mut drm_intel_bo,
        ::libloading::Error,
    >,
    pub drm_intel_bufmgr_gem_enable_reuse:
        Result<unsafe extern "C" fn(bufmgr: *mut drm_intel_bufmgr), ::libloading::Error>,
    pub drm_intel_bufmgr_gem_enable_fenced_relocs:
        Result<unsafe extern "C" fn(bufmgr: *mut drm_intel_bufmgr), ::libloading::Error>,
    pub drm_intel_bufmgr_gem_set_vma_cache_size: Result<
        unsafe extern "C" fn(bufmgr: *mut drm_intel_bufmgr, limit: ::std::os::raw::c_int),
        ::libloading::Error,
    >,
    pub drm_intel_gem_bo_map_unsynchronized: Result<
        unsafe extern "C" fn(bo: *mut drm_intel_bo) -> ::std::os::raw::c_int,
        ::libloading::Error,
    >,
    pub drm_intel_gem_bo_map_gtt: Result<
        unsafe extern "C" fn(bo: *mut drm_intel_bo) -> ::std::os::raw::c_int,
        ::libloading::Error,
    >,
    pub drm_intel_gem_bo_unmap_gtt: Result<
        unsafe extern "C" fn(bo: *mut drm_intel_bo) -> ::std::os::raw::c_int,
        ::libloading::Error,
    >,
    pub drm_intel_bufmgr_gem_can_disable_implicit_sync: Result<
        unsafe extern "C" fn(bufmgr: *mut drm_intel_bufmgr) -> ::std::os::raw::c_int,
        ::libloading::Error,
    >,
    pub drm_intel_gem_bo_disable_implicit_sync:
        Result<unsafe extern "C" fn(bo: *mut drm_intel_bo), ::libloading::Error>,
    pub drm_intel_gem_bo_enable_implicit_sync:
        Result<unsafe extern "C" fn(bo: *mut drm_intel_bo), ::libloading::Error>,
    pub drm_intel_gem_bo_map__cpu: Result<
        unsafe extern "C" fn(bo: *mut drm_intel_bo) -> *mut ::std::os::raw::c_void,
        ::libloading::Error,
    >,
    pub drm_intel_gem_bo_map__gtt: Result<
        unsafe extern "C" fn(bo: *mut drm_intel_bo) -> *mut ::std::os::raw::c_void,
        ::libloading::Error,
    >,
    pub drm_intel_gem_bo_map__wc: Result<
        unsafe extern "C" fn(bo: *mut drm_intel_bo) -> *mut ::std::os::raw::c_void,
        ::libloading::Error,
    >,
    pub drm_intel_gem_bo_get_reloc_count: Result<
        unsafe extern "C" fn(bo: *mut drm_intel_bo) -> ::std::os::raw::c_int,
        ::libloading::Error,
    >,
    pub drm_intel_gem_bo_clear_relocs: Result<
        unsafe extern "C" fn(bo: *mut drm_intel_bo, start: ::std::os::raw::c_int),
        ::libloading::Error,
    >,
    pub drm_intel_gem_bo_start_gtt_access: Result<
        unsafe extern "C" fn(bo: *mut drm_intel_bo, write_enable: ::std::os::raw::c_int),
        ::libloading::Error,
    >,
    pub drm_intel_bufmgr_gem_set_aub_dump: Result<
        unsafe extern "C" fn(bufmgr: *mut drm_intel_bufmgr, enable: ::std::os::raw::c_int),
        ::libloading::Error,
    >,
    pub drm_intel_gem_bo_aub_dump_bmp: Result<
        unsafe extern "C" fn(
            bo: *mut drm_intel_bo,
            x1: ::std::os::raw::c_int,
            y1: ::std::os::raw::c_int,
            width: ::std::os::raw::c_int,
            height: ::std::os::raw::c_int,
            format: aub_dump_bmp_format,
            pitch: ::std::os::raw::c_int,
            offset: ::std::os::raw::c_int,
        ),
        ::libloading::Error,
    >,
    pub drm_intel_bufmgr_gem_set_aub_annotations: Result<
        unsafe extern "C" fn(
            bo: *mut drm_intel_bo,
            annotations: *mut drm_intel_aub_annotation,
            count: ::std::os::raw::c_uint,
        ),
        ::libloading::Error,
    >,
    pub drm_intel_get_pipe_from_crtc_id: Result<
        unsafe extern "C" fn(
            bufmgr: *mut drm_intel_bufmgr,
            crtc_id: ::std::os::raw::c_int,
        ) -> ::std::os::raw::c_int,
        ::libloading::Error,
    >,
    pub drm_intel_get_aperture_sizes: Result<
        unsafe extern "C" fn(
            fd: ::std::os::raw::c_int,
            mappable: *mut usize,
            total: *mut usize,
        ) -> ::std::os::raw::c_int,
        ::libloading::Error,
    >,
    pub drm_intel_bufmgr_gem_get_devid: Result<
        unsafe extern "C" fn(bufmgr: *mut drm_intel_bufmgr) -> ::std::os::raw::c_int,
        ::libloading::Error,
    >,
    pub drm_intel_gem_bo_wait: Result<
        unsafe extern "C" fn(bo: *mut drm_intel_bo, timeout_ns: i64) -> ::std::os::raw::c_int,
        ::libloading::Error,
    >,
    pub drm_intel_gem_context_create: Result<
        unsafe extern "C" fn(bufmgr: *mut drm_intel_bufmgr) -> *mut drm_intel_context,
        ::libloading::Error,
    >,
    pub drm_intel_gem_context_get_id: Result<
        unsafe extern "C" fn(
            ctx: *mut drm_intel_context,
            ctx_id: *mut u32,
        ) -> ::std::os::raw::c_int,
        ::libloading::Error,
    >,
    pub drm_intel_gem_context_destroy:
        Result<unsafe extern "C" fn(ctx: *mut drm_intel_context), ::libloading::Error>,
    pub drm_intel_gem_bo_context_exec: Result<
        unsafe extern "C" fn(
            bo: *mut drm_intel_bo,
            ctx: *mut drm_intel_context,
            used: ::std::os::raw::c_int,
            flags: ::std::os::raw::c_uint,
        ) -> ::std::os::raw::c_int,
        ::libloading::Error,
    >,
    pub drm_intel_gem_bo_fence_exec: Result<
        unsafe extern "C" fn(
            bo: *mut drm_intel_bo,
            ctx: *mut drm_intel_context,
            used: ::std::os::raw::c_int,
            in_fence: ::std::os::raw::c_int,
            out_fence: *mut ::std::os::raw::c_int,
            flags: ::std::os::raw::c_uint,
        ) -> ::std::os::raw::c_int,
        ::libloading::Error,
    >,
    pub drm_intel_bo_gem_export_to_prime: Result<
        unsafe extern "C" fn(
            bo: *mut drm_intel_bo,
            prime_fd: *mut ::std::os::raw::c_int,
        ) -> ::std::os::raw::c_int,
        ::libloading::Error,
    >,
    pub drm_intel_bo_gem_create_from_prime: Result<
        unsafe extern "C" fn(
            bufmgr: *mut drm_intel_bufmgr,
            prime_fd: ::std::os::raw::c_int,
            size: ::std::os::raw::c_int,
        ) -> *mut drm_intel_bo,
        ::libloading::Error,
    >,
    pub drm_intel_bufmgr_fake_init: Result<
        unsafe extern "C" fn(
            fd: ::std::os::raw::c_int,
            low_offset: ::std::os::raw::c_ulong,
            low_virtual: *mut ::std::os::raw::c_void,
            size: ::std::os::raw::c_ulong,
            last_dispatch: *mut ::std::os::raw::c_uint,
        ) -> *mut drm_intel_bufmgr,
        ::libloading::Error,
    >,
    pub drm_intel_bufmgr_fake_set_last_dispatch: Result<
        unsafe extern "C" fn(
            bufmgr: *mut drm_intel_bufmgr,
            last_dispatch: *mut ::std::os::raw::c_uint,
        ),
        ::libloading::Error,
    >,
    pub drm_intel_bufmgr_fake_set_exec_callback: Result<
        unsafe extern "C" fn(
            bufmgr: *mut drm_intel_bufmgr,
            exec: ::std::option::Option<
                unsafe extern "C" fn(
                    bo: *mut drm_intel_bo,
                    used: ::std::os::raw::c_uint,
                    priv_: *mut ::std::os::raw::c_void,
                ) -> ::std::os::raw::c_int,
            >,
            priv_: *mut ::std::os::raw::c_void,
        ),
        ::libloading::Error,
    >,
    pub drm_intel_bufmgr_fake_set_fence_callback: Result<
        unsafe extern "C" fn(
            bufmgr: *mut drm_intel_bufmgr,
            emit: ::std::option::Option<
                unsafe extern "C" fn(priv_: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_uint,
            >,
            wait: ::std::option::Option<
                unsafe extern "C" fn(
                    fence: ::std::os::raw::c_uint,
                    priv_: *mut ::std::os::raw::c_void,
                ),
            >,
            priv_: *mut ::std::os::raw::c_void,
        ),
        ::libloading::Error,
    >,
    pub drm_intel_bo_fake_alloc_static: Result<
        unsafe extern "C" fn(
            bufmgr: *mut drm_intel_bufmgr,
            name: *const ::std::os::raw::c_char,
            offset: ::std::os::raw::c_ulong,
            size: ::std::os::raw::c_ulong,
            virt: *mut ::std::os::raw::c_void,
        ) -> *mut drm_intel_bo,
        ::libloading::Error,
    >,
    pub drm_intel_bo_fake_disable_backing_store: Result<
        unsafe extern "C" fn(
            bo: *mut drm_intel_bo,
            invalidate_cb: ::std::option::Option<
                unsafe extern "C" fn(bo: *mut drm_intel_bo, ptr: *mut ::std::os::raw::c_void),
            >,
            ptr: *mut ::std::os::raw::c_void,
        ),
        ::libloading::Error,
    >,
    pub drm_intel_bufmgr_fake_contended_lock_take:
        Result<unsafe extern "C" fn(bufmgr: *mut drm_intel_bufmgr), ::libloading::Error>,
    pub drm_intel_bufmgr_fake_evict_all:
        Result<unsafe extern "C" fn(bufmgr: *mut drm_intel_bufmgr), ::libloading::Error>,
    pub drm_intel_decode_context_alloc:
        Result<unsafe extern "C" fn(devid: u32) -> *mut drm_intel_decode, ::libloading::Error>,
    pub drm_intel_decode_context_free:
        Result<unsafe extern "C" fn(ctx: *mut drm_intel_decode), ::libloading::Error>,
    pub drm_intel_decode_set_batch_pointer: Result<
        unsafe extern "C" fn(
            ctx: *mut drm_intel_decode,
            data: *mut ::std::os::raw::c_void,
            hw_offset: u32,
            count: ::std::os::raw::c_int,
        ),
        ::libloading::Error,
    >,
    pub drm_intel_decode_set_dump_past_end: Result<
        unsafe extern "C" fn(ctx: *mut drm_intel_decode, dump_past_end: ::std::os::raw::c_int),
        ::libloading::Error,
    >,
    pub drm_intel_decode_set_head_tail: Result<
        unsafe extern "C" fn(ctx: *mut drm_intel_decode, head: u32, tail: u32),
        ::libloading::Error,
    >,
    pub drm_intel_decode:
        Result<unsafe extern "C" fn(ctx: *mut drm_intel_decode), ::libloading::Error>,
    pub drm_intel_reg_read: Result<
        unsafe extern "C" fn(
            bufmgr: *mut drm_intel_bufmgr,
            offset: u32,
            result: *mut u64,
        ) -> ::std::os::raw::c_int,
        ::libloading::Error,
    >,
    pub drm_intel_get_reset_stats: Result<
        unsafe extern "C" fn(
            ctx: *mut drm_intel_context,
            reset_count: *mut u32,
            active: *mut u32,
            pending: *mut u32,
        ) -> ::std::os::raw::c_int,
        ::libloading::Error,
    >,
    pub drm_intel_get_subslice_total: Result<
        unsafe extern "C" fn(
            fd: ::std::os::raw::c_int,
            subslice_total: *mut ::std::os::raw::c_uint,
        ) -> ::std::os::raw::c_int,
        ::libloading::Error,
    >,
    pub drm_intel_get_eu_total: Result<
        unsafe extern "C" fn(
            fd: ::std::os::raw::c_int,
            eu_total: *mut ::std::os::raw::c_uint,
        ) -> ::std::os::raw::c_int,
        ::libloading::Error,
    >,
    pub drm_intel_get_pooled_eu: Result<
        unsafe extern "C" fn(fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int,
        ::libloading::Error,
    >,
    pub drm_intel_get_min_eu_in_pool: Result<
        unsafe extern "C" fn(fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int,
        ::libloading::Error,
    >,
}
impl IntelDrm {
    pub unsafe fn new<P>(path: P) -> Result<Self, ::libloading::Error>
    where
        P: AsRef<::std::ffi::OsStr>,
    {
        let library = ::libloading::Library::new(path)?;
        Self::from_library(library)
    }
    pub unsafe fn from_library<L>(library: L) -> Result<Self, ::libloading::Error>
    where
        L: Into<::libloading::Library>,
    {
        let __library = library.into();
        let drm_intel_bo_alloc = __library.get(b"drm_intel_bo_alloc\0").map(|sym| *sym);
        let drm_intel_bo_alloc_for_render = __library
            .get(b"drm_intel_bo_alloc_for_render\0")
            .map(|sym| *sym);
        let drm_intel_bo_alloc_userptr = __library
            .get(b"drm_intel_bo_alloc_userptr\0")
            .map(|sym| *sym);
        let drm_intel_bo_alloc_tiled = __library.get(b"drm_intel_bo_alloc_tiled\0").map(|sym| *sym);
        let drm_intel_bo_reference = __library.get(b"drm_intel_bo_reference\0").map(|sym| *sym);
        let drm_intel_bo_unreference = __library.get(b"drm_intel_bo_unreference\0").map(|sym| *sym);
        let drm_intel_bo_map = __library.get(b"drm_intel_bo_map\0").map(|sym| *sym);
        let drm_intel_bo_unmap = __library.get(b"drm_intel_bo_unmap\0").map(|sym| *sym);
        let drm_intel_bo_subdata = __library.get(b"drm_intel_bo_subdata\0").map(|sym| *sym);
        let drm_intel_bo_get_subdata = __library.get(b"drm_intel_bo_get_subdata\0").map(|sym| *sym);
        let drm_intel_bo_wait_rendering = __library
            .get(b"drm_intel_bo_wait_rendering\0")
            .map(|sym| *sym);
        let drm_intel_bufmgr_set_debug = __library
            .get(b"drm_intel_bufmgr_set_debug\0")
            .map(|sym| *sym);
        let drm_intel_bufmgr_destroy = __library.get(b"drm_intel_bufmgr_destroy\0").map(|sym| *sym);
        let drm_intel_bo_exec = __library.get(b"drm_intel_bo_exec\0").map(|sym| *sym);
        let drm_intel_bo_mrb_exec = __library.get(b"drm_intel_bo_mrb_exec\0").map(|sym| *sym);
        let drm_intel_bufmgr_check_aperture_space = __library
            .get(b"drm_intel_bufmgr_check_aperture_space\0")
            .map(|sym| *sym);
        let drm_intel_bo_emit_reloc = __library.get(b"drm_intel_bo_emit_reloc\0").map(|sym| *sym);
        let drm_intel_bo_emit_reloc_fence = __library
            .get(b"drm_intel_bo_emit_reloc_fence\0")
            .map(|sym| *sym);
        let drm_intel_bo_pin = __library.get(b"drm_intel_bo_pin\0").map(|sym| *sym);
        let drm_intel_bo_unpin = __library.get(b"drm_intel_bo_unpin\0").map(|sym| *sym);
        let drm_intel_bo_set_tiling = __library.get(b"drm_intel_bo_set_tiling\0").map(|sym| *sym);
        let drm_intel_bo_get_tiling = __library.get(b"drm_intel_bo_get_tiling\0").map(|sym| *sym);
        let drm_intel_bo_flink = __library.get(b"drm_intel_bo_flink\0").map(|sym| *sym);
        let drm_intel_bo_busy = __library.get(b"drm_intel_bo_busy\0").map(|sym| *sym);
        let drm_intel_bo_madvise = __library.get(b"drm_intel_bo_madvise\0").map(|sym| *sym);
        let drm_intel_bo_use_48b_address_range = __library
            .get(b"drm_intel_bo_use_48b_address_range\0")
            .map(|sym| *sym);
        let drm_intel_bo_set_softpin_offset = __library
            .get(b"drm_intel_bo_set_softpin_offset\0")
            .map(|sym| *sym);
        let drm_intel_bo_disable_reuse = __library
            .get(b"drm_intel_bo_disable_reuse\0")
            .map(|sym| *sym);
        let drm_intel_bo_is_reusable = __library.get(b"drm_intel_bo_is_reusable\0").map(|sym| *sym);
        let drm_intel_bo_references = __library.get(b"drm_intel_bo_references\0").map(|sym| *sym);
        let drm_intel_bufmgr_gem_init = __library
            .get(b"drm_intel_bufmgr_gem_init\0")
            .map(|sym| *sym);
        let drm_intel_bo_gem_create_from_name = __library
            .get(b"drm_intel_bo_gem_create_from_name\0")
            .map(|sym| *sym);
        let drm_intel_bufmgr_gem_enable_reuse = __library
            .get(b"drm_intel_bufmgr_gem_enable_reuse\0")
            .map(|sym| *sym);
        let drm_intel_bufmgr_gem_enable_fenced_relocs = __library
            .get(b"drm_intel_bufmgr_gem_enable_fenced_relocs\0")
            .map(|sym| *sym);
        let drm_intel_bufmgr_gem_set_vma_cache_size = __library
            .get(b"drm_intel_bufmgr_gem_set_vma_cache_size\0")
            .map(|sym| *sym);
        let drm_intel_gem_bo_map_unsynchronized = __library
            .get(b"drm_intel_gem_bo_map_unsynchronized\0")
            .map(|sym| *sym);
        let drm_intel_gem_bo_map_gtt = __library.get(b"drm_intel_gem_bo_map_gtt\0").map(|sym| *sym);
        let drm_intel_gem_bo_unmap_gtt = __library
            .get(b"drm_intel_gem_bo_unmap_gtt\0")
            .map(|sym| *sym);
        let drm_intel_bufmgr_gem_can_disable_implicit_sync = __library
            .get(b"drm_intel_bufmgr_gem_can_disable_implicit_sync\0")
            .map(|sym| *sym);
        let drm_intel_gem_bo_disable_implicit_sync = __library
            .get(b"drm_intel_gem_bo_disable_implicit_sync\0")
            .map(|sym| *sym);
        let drm_intel_gem_bo_enable_implicit_sync = __library
            .get(b"drm_intel_gem_bo_enable_implicit_sync\0")
            .map(|sym| *sym);
        let drm_intel_gem_bo_map__cpu = __library
            .get(b"drm_intel_gem_bo_map__cpu\0")
            .map(|sym| *sym);
        let drm_intel_gem_bo_map__gtt = __library
            .get(b"drm_intel_gem_bo_map__gtt\0")
            .map(|sym| *sym);
        let drm_intel_gem_bo_map__wc = __library.get(b"drm_intel_gem_bo_map__wc\0").map(|sym| *sym);
        let drm_intel_gem_bo_get_reloc_count = __library
            .get(b"drm_intel_gem_bo_get_reloc_count\0")
            .map(|sym| *sym);
        let drm_intel_gem_bo_clear_relocs = __library
            .get(b"drm_intel_gem_bo_clear_relocs\0")
            .map(|sym| *sym);
        let drm_intel_gem_bo_start_gtt_access = __library
            .get(b"drm_intel_gem_bo_start_gtt_access\0")
            .map(|sym| *sym);
        let drm_intel_bufmgr_gem_set_aub_dump = __library
            .get(b"drm_intel_bufmgr_gem_set_aub_dump\0")
            .map(|sym| *sym);
        let drm_intel_gem_bo_aub_dump_bmp = __library
            .get(b"drm_intel_gem_bo_aub_dump_bmp\0")
            .map(|sym| *sym);
        let drm_intel_bufmgr_gem_set_aub_annotations = __library
            .get(b"drm_intel_bufmgr_gem_set_aub_annotations\0")
            .map(|sym| *sym);
        let drm_intel_get_pipe_from_crtc_id = __library
            .get(b"drm_intel_get_pipe_from_crtc_id\0")
            .map(|sym| *sym);
        let drm_intel_get_aperture_sizes = __library
            .get(b"drm_intel_get_aperture_sizes\0")
            .map(|sym| *sym);
        let drm_intel_bufmgr_gem_get_devid = __library
            .get(b"drm_intel_bufmgr_gem_get_devid\0")
            .map(|sym| *sym);
        let drm_intel_gem_bo_wait = __library.get(b"drm_intel_gem_bo_wait\0").map(|sym| *sym);
        let drm_intel_gem_context_create = __library
            .get(b"drm_intel_gem_context_create\0")
            .map(|sym| *sym);
        let drm_intel_gem_context_get_id = __library
            .get(b"drm_intel_gem_context_get_id\0")
            .map(|sym| *sym);
        let drm_intel_gem_context_destroy = __library
            .get(b"drm_intel_gem_context_destroy\0")
            .map(|sym| *sym);
        let drm_intel_gem_bo_context_exec = __library
            .get(b"drm_intel_gem_bo_context_exec\0")
            .map(|sym| *sym);
        let drm_intel_gem_bo_fence_exec = __library
            .get(b"drm_intel_gem_bo_fence_exec\0")
            .map(|sym| *sym);
        let drm_intel_bo_gem_export_to_prime = __library
            .get(b"drm_intel_bo_gem_export_to_prime\0")
            .map(|sym| *sym);
        let drm_intel_bo_gem_create_from_prime = __library
            .get(b"drm_intel_bo_gem_create_from_prime\0")
            .map(|sym| *sym);
        let drm_intel_bufmgr_fake_init = __library
            .get(b"drm_intel_bufmgr_fake_init\0")
            .map(|sym| *sym);
        let drm_intel_bufmgr_fake_set_last_dispatch = __library
            .get(b"drm_intel_bufmgr_fake_set_last_dispatch\0")
            .map(|sym| *sym);
        let drm_intel_bufmgr_fake_set_exec_callback = __library
            .get(b"drm_intel_bufmgr_fake_set_exec_callback\0")
            .map(|sym| *sym);
        let drm_intel_bufmgr_fake_set_fence_callback = __library
            .get(b"drm_intel_bufmgr_fake_set_fence_callback\0")
            .map(|sym| *sym);
        let drm_intel_bo_fake_alloc_static = __library
            .get(b"drm_intel_bo_fake_alloc_static\0")
            .map(|sym| *sym);
        let drm_intel_bo_fake_disable_backing_store = __library
            .get(b"drm_intel_bo_fake_disable_backing_store\0")
            .map(|sym| *sym);
        let drm_intel_bufmgr_fake_contended_lock_take = __library
            .get(b"drm_intel_bufmgr_fake_contended_lock_take\0")
            .map(|sym| *sym);
        let drm_intel_bufmgr_fake_evict_all = __library
            .get(b"drm_intel_bufmgr_fake_evict_all\0")
            .map(|sym| *sym);
        let drm_intel_decode_context_alloc = __library
            .get(b"drm_intel_decode_context_alloc\0")
            .map(|sym| *sym);
        let drm_intel_decode_context_free = __library
            .get(b"drm_intel_decode_context_free\0")
            .map(|sym| *sym);
        let drm_intel_decode_set_batch_pointer = __library
            .get(b"drm_intel_decode_set_batch_pointer\0")
            .map(|sym| *sym);
        let drm_intel_decode_set_dump_past_end = __library
            .get(b"drm_intel_decode_set_dump_past_end\0")
            .map(|sym| *sym);
        let drm_intel_decode_set_head_tail = __library
            .get(b"drm_intel_decode_set_head_tail\0")
            .map(|sym| *sym);
        let drm_intel_decode = __library.get(b"drm_intel_decode\0").map(|sym| *sym);
        let drm_intel_reg_read = __library.get(b"drm_intel_reg_read\0").map(|sym| *sym);
        let drm_intel_get_reset_stats = __library
            .get(b"drm_intel_get_reset_stats\0")
            .map(|sym| *sym);
        let drm_intel_get_subslice_total = __library
            .get(b"drm_intel_get_subslice_total\0")
            .map(|sym| *sym);
        let drm_intel_get_eu_total = __library.get(b"drm_intel_get_eu_total\0").map(|sym| *sym);
        let drm_intel_get_pooled_eu = __library.get(b"drm_intel_get_pooled_eu\0").map(|sym| *sym);
        let drm_intel_get_min_eu_in_pool = __library
            .get(b"drm_intel_get_min_eu_in_pool\0")
            .map(|sym| *sym);
        Ok(IntelDrm {
            __library,
            drm_intel_bo_alloc,
            drm_intel_bo_alloc_for_render,
            drm_intel_bo_alloc_userptr,
            drm_intel_bo_alloc_tiled,
            drm_intel_bo_reference,
            drm_intel_bo_unreference,
            drm_intel_bo_map,
            drm_intel_bo_unmap,
            drm_intel_bo_subdata,
            drm_intel_bo_get_subdata,
            drm_intel_bo_wait_rendering,
            drm_intel_bufmgr_set_debug,
            drm_intel_bufmgr_destroy,
            drm_intel_bo_exec,
            drm_intel_bo_mrb_exec,
            drm_intel_bufmgr_check_aperture_space,
            drm_intel_bo_emit_reloc,
            drm_intel_bo_emit_reloc_fence,
            drm_intel_bo_pin,
            drm_intel_bo_unpin,
            drm_intel_bo_set_tiling,
            drm_intel_bo_get_tiling,
            drm_intel_bo_flink,
            drm_intel_bo_busy,
            drm_intel_bo_madvise,
            drm_intel_bo_use_48b_address_range,
            drm_intel_bo_set_softpin_offset,
            drm_intel_bo_disable_reuse,
            drm_intel_bo_is_reusable,
            drm_intel_bo_references,
            drm_intel_bufmgr_gem_init,
            drm_intel_bo_gem_create_from_name,
            drm_intel_bufmgr_gem_enable_reuse,
            drm_intel_bufmgr_gem_enable_fenced_relocs,
            drm_intel_bufmgr_gem_set_vma_cache_size,
            drm_intel_gem_bo_map_unsynchronized,
            drm_intel_gem_bo_map_gtt,
            drm_intel_gem_bo_unmap_gtt,
            drm_intel_bufmgr_gem_can_disable_implicit_sync,
            drm_intel_gem_bo_disable_implicit_sync,
            drm_intel_gem_bo_enable_implicit_sync,
            drm_intel_gem_bo_map__cpu,
            drm_intel_gem_bo_map__gtt,
            drm_intel_gem_bo_map__wc,
            drm_intel_gem_bo_get_reloc_count,
            drm_intel_gem_bo_clear_relocs,
            drm_intel_gem_bo_start_gtt_access,
            drm_intel_bufmgr_gem_set_aub_dump,
            drm_intel_gem_bo_aub_dump_bmp,
            drm_intel_bufmgr_gem_set_aub_annotations,
            drm_intel_get_pipe_from_crtc_id,
            drm_intel_get_aperture_sizes,
            drm_intel_bufmgr_gem_get_devid,
            drm_intel_gem_bo_wait,
            drm_intel_gem_context_create,
            drm_intel_gem_context_get_id,
            drm_intel_gem_context_destroy,
            drm_intel_gem_bo_context_exec,
            drm_intel_gem_bo_fence_exec,
            drm_intel_bo_gem_export_to_prime,
            drm_intel_bo_gem_create_from_prime,
            drm_intel_bufmgr_fake_init,
            drm_intel_bufmgr_fake_set_last_dispatch,
            drm_intel_bufmgr_fake_set_exec_callback,
            drm_intel_bufmgr_fake_set_fence_callback,
            drm_intel_bo_fake_alloc_static,
            drm_intel_bo_fake_disable_backing_store,
            drm_intel_bufmgr_fake_contended_lock_take,
            drm_intel_bufmgr_fake_evict_all,
            drm_intel_decode_context_alloc,
            drm_intel_decode_context_free,
            drm_intel_decode_set_batch_pointer,
            drm_intel_decode_set_dump_past_end,
            drm_intel_decode_set_head_tail,
            drm_intel_decode,
            drm_intel_reg_read,
            drm_intel_get_reset_stats,
            drm_intel_get_subslice_total,
            drm_intel_get_eu_total,
            drm_intel_get_pooled_eu,
            drm_intel_get_min_eu_in_pool,
        })
    }
    pub unsafe fn drm_intel_bo_alloc(
        &self,
        bufmgr: *mut drm_intel_bufmgr,
        name: *const ::std::os::raw::c_char,
        size: ::std::os::raw::c_ulong,
        alignment: ::std::os::raw::c_uint,
    ) -> *mut drm_intel_bo {
        (self
            .drm_intel_bo_alloc
            .as_ref()
            .expect("Expected function, got error."))(bufmgr, name, size, alignment)
    }
    pub unsafe fn drm_intel_bo_alloc_for_render(
        &self,
        bufmgr: *mut drm_intel_bufmgr,
        name: *const ::std::os::raw::c_char,
        size: ::std::os::raw::c_ulong,
        alignment: ::std::os::raw::c_uint,
    ) -> *mut drm_intel_bo {
        (self
            .drm_intel_bo_alloc_for_render
            .as_ref()
            .expect("Expected function, got error."))(bufmgr, name, size, alignment)
    }
    pub unsafe fn drm_intel_bo_alloc_userptr(
        &self,
        bufmgr: *mut drm_intel_bufmgr,
        name: *const ::std::os::raw::c_char,
        addr: *mut ::std::os::raw::c_void,
        tiling_mode: u32,
        stride: u32,
        size: ::std::os::raw::c_ulong,
        flags: ::std::os::raw::c_ulong,
    ) -> *mut drm_intel_bo {
        (self
            .drm_intel_bo_alloc_userptr
            .as_ref()
            .expect("Expected function, got error."))(
            bufmgr,
            name,
            addr,
            tiling_mode,
            stride,
            size,
            flags,
        )
    }
    pub unsafe fn drm_intel_bo_alloc_tiled(
        &self,
        bufmgr: *mut drm_intel_bufmgr,
        name: *const ::std::os::raw::c_char,
        x: ::std::os::raw::c_int,
        y: ::std::os::raw::c_int,
        cpp: ::std::os::raw::c_int,
        tiling_mode: *mut u32,
        pitch: *mut ::std::os::raw::c_ulong,
        flags: ::std::os::raw::c_ulong,
    ) -> *mut drm_intel_bo {
        (self
            .drm_intel_bo_alloc_tiled
            .as_ref()
            .expect("Expected function, got error."))(
            bufmgr,
            name,
            x,
            y,
            cpp,
            tiling_mode,
            pitch,
            flags,
        )
    }
    pub unsafe fn drm_intel_bo_reference(&self, bo: *mut drm_intel_bo) {
        (self
            .drm_intel_bo_reference
            .as_ref()
            .expect("Expected function, got error."))(bo)
    }
    pub unsafe fn drm_intel_bo_unreference(&self, bo: *mut drm_intel_bo) {
        (self
            .drm_intel_bo_unreference
            .as_ref()
            .expect("Expected function, got error."))(bo)
    }
    pub unsafe fn drm_intel_bo_map(
        &self,
        bo: *mut drm_intel_bo,
        write_enable: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int {
        (self
            .drm_intel_bo_map
            .as_ref()
            .expect("Expected function, got error."))(bo, write_enable)
    }
    pub unsafe fn drm_intel_bo_unmap(&self, bo: *mut drm_intel_bo) -> ::std::os::raw::c_int {
        (self
            .drm_intel_bo_unmap
            .as_ref()
            .expect("Expected function, got error."))(bo)
    }
    pub unsafe fn drm_intel_bo_subdata(
        &self,
        bo: *mut drm_intel_bo,
        offset: ::std::os::raw::c_ulong,
        size: ::std::os::raw::c_ulong,
        data: *const ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int {
        (self
            .drm_intel_bo_subdata
            .as_ref()
            .expect("Expected function, got error."))(bo, offset, size, data)
    }
    pub unsafe fn drm_intel_bo_get_subdata(
        &self,
        bo: *mut drm_intel_bo,
        offset: ::std::os::raw::c_ulong,
        size: ::std::os::raw::c_ulong,
        data: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int {
        (self
            .drm_intel_bo_get_subdata
            .as_ref()
            .expect("Expected function, got error."))(bo, offset, size, data)
    }
    pub unsafe fn drm_intel_bo_wait_rendering(&self, bo: *mut drm_intel_bo) {
        (self
            .drm_intel_bo_wait_rendering
            .as_ref()
            .expect("Expected function, got error."))(bo)
    }
    pub unsafe fn drm_intel_bufmgr_set_debug(
        &self,
        bufmgr: *mut drm_intel_bufmgr,
        enable_debug: ::std::os::raw::c_int,
    ) {
        (self
            .drm_intel_bufmgr_set_debug
            .as_ref()
            .expect("Expected function, got error."))(bufmgr, enable_debug)
    }
    pub unsafe fn drm_intel_bufmgr_destroy(&self, bufmgr: *mut drm_intel_bufmgr) {
        (self
            .drm_intel_bufmgr_destroy
            .as_ref()
            .expect("Expected function, got error."))(bufmgr)
    }
    pub unsafe fn drm_intel_bo_exec(
        &self,
        bo: *mut drm_intel_bo,
        used: ::std::os::raw::c_int,
        cliprects: *mut drm_clip_rect,
        num_cliprects: ::std::os::raw::c_int,
        DR4: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int {
        (self
            .drm_intel_bo_exec
            .as_ref()
            .expect("Expected function, got error."))(
            bo, used, cliprects, num_cliprects, DR4
        )
    }
    pub unsafe fn drm_intel_bo_mrb_exec(
        &self,
        bo: *mut drm_intel_bo,
        used: ::std::os::raw::c_int,
        cliprects: *mut drm_clip_rect,
        num_cliprects: ::std::os::raw::c_int,
        DR4: ::std::os::raw::c_int,
        flags: ::std::os::raw::c_uint,
    ) -> ::std::os::raw::c_int {
        (self
            .drm_intel_bo_mrb_exec
            .as_ref()
            .expect("Expected function, got error."))(
            bo,
            used,
            cliprects,
            num_cliprects,
            DR4,
            flags,
        )
    }
    pub unsafe fn drm_intel_bufmgr_check_aperture_space(
        &self,
        bo_array: *mut *mut drm_intel_bo,
        count: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int {
        (self
            .drm_intel_bufmgr_check_aperture_space
            .as_ref()
            .expect("Expected function, got error."))(bo_array, count)
    }
    pub unsafe fn drm_intel_bo_emit_reloc(
        &self,
        bo: *mut drm_intel_bo,
        offset: u32,
        target_bo: *mut drm_intel_bo,
        target_offset: u32,
        read_domains: u32,
        write_domain: u32,
    ) -> ::std::os::raw::c_int {
        (self
            .drm_intel_bo_emit_reloc
            .as_ref()
            .expect("Expected function, got error."))(
            bo,
            offset,
            target_bo,
            target_offset,
            read_domains,
            write_domain,
        )
    }
    pub unsafe fn drm_intel_bo_emit_reloc_fence(
        &self,
        bo: *mut drm_intel_bo,
        offset: u32,
        target_bo: *mut drm_intel_bo,
        target_offset: u32,
        read_domains: u32,
        write_domain: u32,
    ) -> ::std::os::raw::c_int {
        (self
            .drm_intel_bo_emit_reloc_fence
            .as_ref()
            .expect("Expected function, got error."))(
            bo,
            offset,
            target_bo,
            target_offset,
            read_domains,
            write_domain,
        )
    }
    pub unsafe fn drm_intel_bo_pin(
        &self,
        bo: *mut drm_intel_bo,
        alignment: u32,
    ) -> ::std::os::raw::c_int {
        (self
            .drm_intel_bo_pin
            .as_ref()
            .expect("Expected function, got error."))(bo, alignment)
    }
    pub unsafe fn drm_intel_bo_unpin(&self, bo: *mut drm_intel_bo) -> ::std::os::raw::c_int {
        (self
            .drm_intel_bo_unpin
            .as_ref()
            .expect("Expected function, got error."))(bo)
    }
    pub unsafe fn drm_intel_bo_set_tiling(
        &self,
        bo: *mut drm_intel_bo,
        tiling_mode: *mut u32,
        stride: u32,
    ) -> ::std::os::raw::c_int {
        (self
            .drm_intel_bo_set_tiling
            .as_ref()
            .expect("Expected function, got error."))(bo, tiling_mode, stride)
    }
    pub unsafe fn drm_intel_bo_get_tiling(
        &self,
        bo: *mut drm_intel_bo,
        tiling_mode: *mut u32,
        swizzle_mode: *mut u32,
    ) -> ::std::os::raw::c_int {
        (self
            .drm_intel_bo_get_tiling
            .as_ref()
            .expect("Expected function, got error."))(bo, tiling_mode, swizzle_mode)
    }
    pub unsafe fn drm_intel_bo_flink(
        &self,
        bo: *mut drm_intel_bo,
        name: *mut u32,
    ) -> ::std::os::raw::c_int {
        (self
            .drm_intel_bo_flink
            .as_ref()
            .expect("Expected function, got error."))(bo, name)
    }
    pub unsafe fn drm_intel_bo_busy(&self, bo: *mut drm_intel_bo) -> ::std::os::raw::c_int {
        (self
            .drm_intel_bo_busy
            .as_ref()
            .expect("Expected function, got error."))(bo)
    }
    pub unsafe fn drm_intel_bo_madvise(
        &self,
        bo: *mut drm_intel_bo,
        madv: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int {
        (self
            .drm_intel_bo_madvise
            .as_ref()
            .expect("Expected function, got error."))(bo, madv)
    }
    pub unsafe fn drm_intel_bo_use_48b_address_range(
        &self,
        bo: *mut drm_intel_bo,
        enable: u32,
    ) -> ::std::os::raw::c_int {
        (self
            .drm_intel_bo_use_48b_address_range
            .as_ref()
            .expect("Expected function, got error."))(bo, enable)
    }
    pub unsafe fn drm_intel_bo_set_softpin_offset(
        &self,
        bo: *mut drm_intel_bo,
        offset: u64,
    ) -> ::std::os::raw::c_int {
        (self
            .drm_intel_bo_set_softpin_offset
            .as_ref()
            .expect("Expected function, got error."))(bo, offset)
    }
    pub unsafe fn drm_intel_bo_disable_reuse(
        &self,
        bo: *mut drm_intel_bo,
    ) -> ::std::os::raw::c_int {
        (self
            .drm_intel_bo_disable_reuse
            .as_ref()
            .expect("Expected function, got error."))(bo)
    }
    pub unsafe fn drm_intel_bo_is_reusable(&self, bo: *mut drm_intel_bo) -> ::std::os::raw::c_int {
        (self
            .drm_intel_bo_is_reusable
            .as_ref()
            .expect("Expected function, got error."))(bo)
    }
    pub unsafe fn drm_intel_bo_references(
        &self,
        bo: *mut drm_intel_bo,
        target_bo: *mut drm_intel_bo,
    ) -> ::std::os::raw::c_int {
        (self
            .drm_intel_bo_references
            .as_ref()
            .expect("Expected function, got error."))(bo, target_bo)
    }
    pub unsafe fn drm_intel_bufmgr_gem_init(
        &self,
        fd: ::std::os::raw::c_int,
        batch_size: ::std::os::raw::c_int,
    ) -> *mut drm_intel_bufmgr {
        (self
            .drm_intel_bufmgr_gem_init
            .as_ref()
            .expect("Expected function, got error."))(fd, batch_size)
    }
    pub unsafe fn drm_intel_bo_gem_create_from_name(
        &self,
        bufmgr: *mut drm_intel_bufmgr,
        name: *const ::std::os::raw::c_char,
        handle: ::std::os::raw::c_uint,
    ) -> *mut drm_intel_bo {
        (self
            .drm_intel_bo_gem_create_from_name
            .as_ref()
            .expect("Expected function, got error."))(bufmgr, name, handle)
    }
    pub unsafe fn drm_intel_bufmgr_gem_enable_reuse(&self, bufmgr: *mut drm_intel_bufmgr) {
        (self
            .drm_intel_bufmgr_gem_enable_reuse
            .as_ref()
            .expect("Expected function, got error."))(bufmgr)
    }
    pub unsafe fn drm_intel_bufmgr_gem_enable_fenced_relocs(&self, bufmgr: *mut drm_intel_bufmgr) {
        (self
            .drm_intel_bufmgr_gem_enable_fenced_relocs
            .as_ref()
            .expect("Expected function, got error."))(bufmgr)
    }
    pub unsafe fn drm_intel_bufmgr_gem_set_vma_cache_size(
        &self,
        bufmgr: *mut drm_intel_bufmgr,
        limit: ::std::os::raw::c_int,
    ) {
        (self
            .drm_intel_bufmgr_gem_set_vma_cache_size
            .as_ref()
            .expect("Expected function, got error."))(bufmgr, limit)
    }
    pub unsafe fn drm_intel_gem_bo_map_unsynchronized(
        &self,
        bo: *mut drm_intel_bo,
    ) -> ::std::os::raw::c_int {
        (self
            .drm_intel_gem_bo_map_unsynchronized
            .as_ref()
            .expect("Expected function, got error."))(bo)
    }
    pub unsafe fn drm_intel_gem_bo_map_gtt(&self, bo: *mut drm_intel_bo) -> ::std::os::raw::c_int {
        (self
            .drm_intel_gem_bo_map_gtt
            .as_ref()
            .expect("Expected function, got error."))(bo)
    }
    pub unsafe fn drm_intel_gem_bo_unmap_gtt(
        &self,
        bo: *mut drm_intel_bo,
    ) -> ::std::os::raw::c_int {
        (self
            .drm_intel_gem_bo_unmap_gtt
            .as_ref()
            .expect("Expected function, got error."))(bo)
    }
    pub unsafe fn drm_intel_bufmgr_gem_can_disable_implicit_sync(
        &self,
        bufmgr: *mut drm_intel_bufmgr,
    ) -> ::std::os::raw::c_int {
        (self
            .drm_intel_bufmgr_gem_can_disable_implicit_sync
            .as_ref()
            .expect("Expected function, got error."))(bufmgr)
    }
    pub unsafe fn drm_intel_gem_bo_disable_implicit_sync(&self, bo: *mut drm_intel_bo) {
        (self
            .drm_intel_gem_bo_disable_implicit_sync
            .as_ref()
            .expect("Expected function, got error."))(bo)
    }
    pub unsafe fn drm_intel_gem_bo_enable_implicit_sync(&self, bo: *mut drm_intel_bo) {
        (self
            .drm_intel_gem_bo_enable_implicit_sync
            .as_ref()
            .expect("Expected function, got error."))(bo)
    }
    pub unsafe fn drm_intel_gem_bo_map__cpu(
        &self,
        bo: *mut drm_intel_bo,
    ) -> *mut ::std::os::raw::c_void {
        (self
            .drm_intel_gem_bo_map__cpu
            .as_ref()
            .expect("Expected function, got error."))(bo)
    }
    pub unsafe fn drm_intel_gem_bo_map__gtt(
        &self,
        bo: *mut drm_intel_bo,
    ) -> *mut ::std::os::raw::c_void {
        (self
            .drm_intel_gem_bo_map__gtt
            .as_ref()
            .expect("Expected function, got error."))(bo)
    }
    pub unsafe fn drm_intel_gem_bo_map__wc(
        &self,
        bo: *mut drm_intel_bo,
    ) -> *mut ::std::os::raw::c_void {
        (self
            .drm_intel_gem_bo_map__wc
            .as_ref()
            .expect("Expected function, got error."))(bo)
    }
    pub unsafe fn drm_intel_gem_bo_get_reloc_count(
        &self,
        bo: *mut drm_intel_bo,
    ) -> ::std::os::raw::c_int {
        (self
            .drm_intel_gem_bo_get_reloc_count
            .as_ref()
            .expect("Expected function, got error."))(bo)
    }
    pub unsafe fn drm_intel_gem_bo_clear_relocs(
        &self,
        bo: *mut drm_intel_bo,
        start: ::std::os::raw::c_int,
    ) {
        (self
            .drm_intel_gem_bo_clear_relocs
            .as_ref()
            .expect("Expected function, got error."))(bo, start)
    }
    pub unsafe fn drm_intel_gem_bo_start_gtt_access(
        &self,
        bo: *mut drm_intel_bo,
        write_enable: ::std::os::raw::c_int,
    ) {
        (self
            .drm_intel_gem_bo_start_gtt_access
            .as_ref()
            .expect("Expected function, got error."))(bo, write_enable)
    }
    pub unsafe fn drm_intel_bufmgr_gem_set_aub_dump(
        &self,
        bufmgr: *mut drm_intel_bufmgr,
        enable: ::std::os::raw::c_int,
    ) {
        (self
            .drm_intel_bufmgr_gem_set_aub_dump
            .as_ref()
            .expect("Expected function, got error."))(bufmgr, enable)
    }
    pub unsafe fn drm_intel_gem_bo_aub_dump_bmp(
        &self,
        bo: *mut drm_intel_bo,
        x1: ::std::os::raw::c_int,
        y1: ::std::os::raw::c_int,
        width: ::std::os::raw::c_int,
        height: ::std::os::raw::c_int,
        format: aub_dump_bmp_format,
        pitch: ::std::os::raw::c_int,
        offset: ::std::os::raw::c_int,
    ) {
        (self
            .drm_intel_gem_bo_aub_dump_bmp
            .as_ref()
            .expect("Expected function, got error."))(
            bo, x1, y1, width, height, format, pitch, offset,
        )
    }
    pub unsafe fn drm_intel_bufmgr_gem_set_aub_annotations(
        &self,
        bo: *mut drm_intel_bo,
        annotations: *mut drm_intel_aub_annotation,
        count: ::std::os::raw::c_uint,
    ) {
        (self
            .drm_intel_bufmgr_gem_set_aub_annotations
            .as_ref()
            .expect("Expected function, got error."))(bo, annotations, count)
    }
    pub unsafe fn drm_intel_get_pipe_from_crtc_id(
        &self,
        bufmgr: *mut drm_intel_bufmgr,
        crtc_id: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int {
        (self
            .drm_intel_get_pipe_from_crtc_id
            .as_ref()
            .expect("Expected function, got error."))(bufmgr, crtc_id)
    }
    pub unsafe fn drm_intel_get_aperture_sizes(
        &self,
        fd: ::std::os::raw::c_int,
        mappable: *mut usize,
        total: *mut usize,
    ) -> ::std::os::raw::c_int {
        (self
            .drm_intel_get_aperture_sizes
            .as_ref()
            .expect("Expected function, got error."))(fd, mappable, total)
    }
    pub unsafe fn drm_intel_bufmgr_gem_get_devid(
        &self,
        bufmgr: *mut drm_intel_bufmgr,
    ) -> ::std::os::raw::c_int {
        (self
            .drm_intel_bufmgr_gem_get_devid
            .as_ref()
            .expect("Expected function, got error."))(bufmgr)
    }
    pub unsafe fn drm_intel_gem_bo_wait(
        &self,
        bo: *mut drm_intel_bo,
        timeout_ns: i64,
    ) -> ::std::os::raw::c_int {
        (self
            .drm_intel_gem_bo_wait
            .as_ref()
            .expect("Expected function, got error."))(bo, timeout_ns)
    }
    pub unsafe fn drm_intel_gem_context_create(
        &self,
        bufmgr: *mut drm_intel_bufmgr,
    ) -> *mut drm_intel_context {
        (self
            .drm_intel_gem_context_create
            .as_ref()
            .expect("Expected function, got error."))(bufmgr)
    }
    pub unsafe fn drm_intel_gem_context_get_id(
        &self,
        ctx: *mut drm_intel_context,
        ctx_id: *mut u32,
    ) -> ::std::os::raw::c_int {
        (self
            .drm_intel_gem_context_get_id
            .as_ref()
            .expect("Expected function, got error."))(ctx, ctx_id)
    }
    pub unsafe fn drm_intel_gem_context_destroy(&self, ctx: *mut drm_intel_context) {
        (self
            .drm_intel_gem_context_destroy
            .as_ref()
            .expect("Expected function, got error."))(ctx)
    }
    pub unsafe fn drm_intel_gem_bo_context_exec(
        &self,
        bo: *mut drm_intel_bo,
        ctx: *mut drm_intel_context,
        used: ::std::os::raw::c_int,
        flags: ::std::os::raw::c_uint,
    ) -> ::std::os::raw::c_int {
        (self
            .drm_intel_gem_bo_context_exec
            .as_ref()
            .expect("Expected function, got error."))(bo, ctx, used, flags)
    }
    pub unsafe fn drm_intel_gem_bo_fence_exec(
        &self,
        bo: *mut drm_intel_bo,
        ctx: *mut drm_intel_context,
        used: ::std::os::raw::c_int,
        in_fence: ::std::os::raw::c_int,
        out_fence: *mut ::std::os::raw::c_int,
        flags: ::std::os::raw::c_uint,
    ) -> ::std::os::raw::c_int {
        (self
            .drm_intel_gem_bo_fence_exec
            .as_ref()
            .expect("Expected function, got error."))(
            bo, ctx, used, in_fence, out_fence, flags
        )
    }
    pub unsafe fn drm_intel_bo_gem_export_to_prime(
        &self,
        bo: *mut drm_intel_bo,
        prime_fd: *mut ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int {
        (self
            .drm_intel_bo_gem_export_to_prime
            .as_ref()
            .expect("Expected function, got error."))(bo, prime_fd)
    }
    pub unsafe fn drm_intel_bo_gem_create_from_prime(
        &self,
        bufmgr: *mut drm_intel_bufmgr,
        prime_fd: ::std::os::raw::c_int,
        size: ::std::os::raw::c_int,
    ) -> *mut drm_intel_bo {
        (self
            .drm_intel_bo_gem_create_from_prime
            .as_ref()
            .expect("Expected function, got error."))(bufmgr, prime_fd, size)
    }
    pub unsafe fn drm_intel_bufmgr_fake_init(
        &self,
        fd: ::std::os::raw::c_int,
        low_offset: ::std::os::raw::c_ulong,
        low_virtual: *mut ::std::os::raw::c_void,
        size: ::std::os::raw::c_ulong,
        last_dispatch: *mut ::std::os::raw::c_uint,
    ) -> *mut drm_intel_bufmgr {
        (self
            .drm_intel_bufmgr_fake_init
            .as_ref()
            .expect("Expected function, got error."))(
            fd,
            low_offset,
            low_virtual,
            size,
            last_dispatch,
        )
    }
    pub unsafe fn drm_intel_bufmgr_fake_set_last_dispatch(
        &self,
        bufmgr: *mut drm_intel_bufmgr,
        last_dispatch: *mut ::std::os::raw::c_uint,
    ) {
        (self
            .drm_intel_bufmgr_fake_set_last_dispatch
            .as_ref()
            .expect("Expected function, got error."))(bufmgr, last_dispatch)
    }
    pub unsafe fn drm_intel_bufmgr_fake_set_exec_callback(
        &self,
        bufmgr: *mut drm_intel_bufmgr,
        exec: ::std::option::Option<
            unsafe extern "C" fn(
                bo: *mut drm_intel_bo,
                used: ::std::os::raw::c_uint,
                priv_: *mut ::std::os::raw::c_void,
            ) -> ::std::os::raw::c_int,
        >,
        priv_: *mut ::std::os::raw::c_void,
    ) {
        (self
            .drm_intel_bufmgr_fake_set_exec_callback
            .as_ref()
            .expect("Expected function, got error."))(bufmgr, exec, priv_)
    }
    pub unsafe fn drm_intel_bufmgr_fake_set_fence_callback(
        &self,
        bufmgr: *mut drm_intel_bufmgr,
        emit: ::std::option::Option<
            unsafe extern "C" fn(priv_: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_uint,
        >,
        wait: ::std::option::Option<
            unsafe extern "C" fn(fence: ::std::os::raw::c_uint, priv_: *mut ::std::os::raw::c_void),
        >,
        priv_: *mut ::std::os::raw::c_void,
    ) {
        (self
            .drm_intel_bufmgr_fake_set_fence_callback
            .as_ref()
            .expect("Expected function, got error."))(bufmgr, emit, wait, priv_)
    }
    pub unsafe fn drm_intel_bo_fake_alloc_static(
        &self,
        bufmgr: *mut drm_intel_bufmgr,
        name: *const ::std::os::raw::c_char,
        offset: ::std::os::raw::c_ulong,
        size: ::std::os::raw::c_ulong,
        virt: *mut ::std::os::raw::c_void,
    ) -> *mut drm_intel_bo {
        (self
            .drm_intel_bo_fake_alloc_static
            .as_ref()
            .expect("Expected function, got error."))(bufmgr, name, offset, size, virt)
    }
    pub unsafe fn drm_intel_bo_fake_disable_backing_store(
        &self,
        bo: *mut drm_intel_bo,
        invalidate_cb: ::std::option::Option<
            unsafe extern "C" fn(bo: *mut drm_intel_bo, ptr: *mut ::std::os::raw::c_void),
        >,
        ptr: *mut ::std::os::raw::c_void,
    ) {
        (self
            .drm_intel_bo_fake_disable_backing_store
            .as_ref()
            .expect("Expected function, got error."))(bo, invalidate_cb, ptr)
    }
    pub unsafe fn drm_intel_bufmgr_fake_contended_lock_take(&self, bufmgr: *mut drm_intel_bufmgr) {
        (self
            .drm_intel_bufmgr_fake_contended_lock_take
            .as_ref()
            .expect("Expected function, got error."))(bufmgr)
    }
    pub unsafe fn drm_intel_bufmgr_fake_evict_all(&self, bufmgr: *mut drm_intel_bufmgr) {
        (self
            .drm_intel_bufmgr_fake_evict_all
            .as_ref()
            .expect("Expected function, got error."))(bufmgr)
    }
    pub unsafe fn drm_intel_decode_context_alloc(&self, devid: u32) -> *mut drm_intel_decode {
        (self
            .drm_intel_decode_context_alloc
            .as_ref()
            .expect("Expected function, got error."))(devid)
    }
    pub unsafe fn drm_intel_decode_context_free(&self, ctx: *mut drm_intel_decode) {
        (self
            .drm_intel_decode_context_free
            .as_ref()
            .expect("Expected function, got error."))(ctx)
    }
    pub unsafe fn drm_intel_decode_set_batch_pointer(
        &self,
        ctx: *mut drm_intel_decode,
        data: *mut ::std::os::raw::c_void,
        hw_offset: u32,
        count: ::std::os::raw::c_int,
    ) {
        (self
            .drm_intel_decode_set_batch_pointer
            .as_ref()
            .expect("Expected function, got error."))(ctx, data, hw_offset, count)
    }
    pub unsafe fn drm_intel_decode_set_dump_past_end(
        &self,
        ctx: *mut drm_intel_decode,
        dump_past_end: ::std::os::raw::c_int,
    ) {
        (self
            .drm_intel_decode_set_dump_past_end
            .as_ref()
            .expect("Expected function, got error."))(ctx, dump_past_end)
    }
    pub unsafe fn drm_intel_decode_set_head_tail(
        &self,
        ctx: *mut drm_intel_decode,
        head: u32,
        tail: u32,
    ) {
        (self
            .drm_intel_decode_set_head_tail
            .as_ref()
            .expect("Expected function, got error."))(ctx, head, tail)
    }
    pub unsafe fn drm_intel_decode(&self, ctx: *mut drm_intel_decode) {
        (self
            .drm_intel_decode
            .as_ref()
            .expect("Expected function, got error."))(ctx)
    }
    pub unsafe fn drm_intel_reg_read(
        &self,
        bufmgr: *mut drm_intel_bufmgr,
        offset: u32,
        result: *mut u64,
    ) -> ::std::os::raw::c_int {
        (self
            .drm_intel_reg_read
            .as_ref()
            .expect("Expected function, got error."))(bufmgr, offset, result)
    }
    pub unsafe fn drm_intel_get_reset_stats(
        &self,
        ctx: *mut drm_intel_context,
        reset_count: *mut u32,
        active: *mut u32,
        pending: *mut u32,
    ) -> ::std::os::raw::c_int {
        (self
            .drm_intel_get_reset_stats
            .as_ref()
            .expect("Expected function, got error."))(ctx, reset_count, active, pending)
    }
    pub unsafe fn drm_intel_get_subslice_total(
        &self,
        fd: ::std::os::raw::c_int,
        subslice_total: *mut ::std::os::raw::c_uint,
    ) -> ::std::os::raw::c_int {
        (self
            .drm_intel_get_subslice_total
            .as_ref()
            .expect("Expected function, got error."))(fd, subslice_total)
    }
    pub unsafe fn drm_intel_get_eu_total(
        &self,
        fd: ::std::os::raw::c_int,
        eu_total: *mut ::std::os::raw::c_uint,
    ) -> ::std::os::raw::c_int {
        (self
            .drm_intel_get_eu_total
            .as_ref()
            .expect("Expected function, got error."))(fd, eu_total)
    }
    pub unsafe fn drm_intel_get_pooled_eu(
        &self,
        fd: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int {
        (self
            .drm_intel_get_pooled_eu
            .as_ref()
            .expect("Expected function, got error."))(fd)
    }
    pub unsafe fn drm_intel_get_min_eu_in_pool(
        &self,
        fd: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int {
        (self
            .drm_intel_get_min_eu_in_pool
            .as_ref()
            .expect("Expected function, got error."))(fd)
    }
}
