DF-4879 / drm.h
/* minimal UAPI bits for trigger.c (kept local so the pack is self-contained) */ #ifndef DRM_H_LOCAL #define DRM_H_LOCAL #include <stdint.h> #include <sys/ioccom.h> #define DRM_IOCTL_BASE 'd' #define DRM_IO(nr) _IO(DRM_IOCTL_BASE, nr) #define DRM_IOWR(nr, type) _IOWR(DRM_IOCTL_BASE, nr, type) #define DRM_IOCTL_MODE_OBJ_GETPROPERTIES DRM_IOWR(0x9b, struct drm_mode_obj_get_properties) #define DRM_MODE_OBJECT_CRTC 0x01 #define DRM_MODE_OBJECT_CONNECTOR 0x02 #define DRM_MODE_OBJECT_ENCODER 0x04 #define DRM_MODE_OBJECT_MODE 0x08 #define DRM_MODE_OBJECT_PROPERTY 0x10 #define DRM_MODE_OBJECT_FB 0x20 #define DRM_MODE_OBJECT_BLOB 0x40 #define DRM_MODE_OBJECT_PLANE 0x80 struct drm_mode_obj_get_properties { uint64_t props_ptr; uint64_t prop_values_ptr; uint32_t count_props; uint32_t obj_id; uint32_t obj_type; uint32_t pad; }; #endif |