File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -109,6 +109,23 @@ pub struct DrmModeCardRes {
109109 pub max_height : u32 ,
110110}
111111
112+ #[ repr( C ) ]
113+ pub struct DrmModeCrtc {
114+ pub set_connectors_ptr : u64 ,
115+ pub count_connectors : u32 ,
116+
117+ pub crtc_id : u32 , // crtc ID
118+ pub fb_id : u32 , // framebuffer ID
119+
120+ pub x : u32 , // x position on the framebuffer
121+ pub y : u32 , // y position on the framebuffer
122+
123+ pub gamma_size : u32 ,
124+ pub mode_valid : u32 ,
125+
126+ pub mode : DrmModeInfo ,
127+ }
128+
112129#[ repr( u32 ) ]
113130#[ derive( Copy , Clone , Debug ) ]
114131pub enum DrmModeConStatus {
@@ -236,6 +253,8 @@ pub const DRM_IOCTL_VERSION: usize = drm_iowr::<DrmVersion>(0x00);
236253pub const DRM_IOCTL_GET_CAP : usize = drm_iowr :: < DrmGetCap > ( 0x0c ) ;
237254
238255pub const DRM_IOCTL_MODE_GETRESOURCES : usize = drm_iowr :: < DrmModeCardRes > ( 0xa0 ) ;
256+ pub const DRM_IOCTL_GET_CRTC : usize = drm_iowr :: < DrmModeCrtc > ( 0xa1 ) ;
257+ pub const DRM_IOCTL_SET_CRTC : usize = drm_iowr :: < DrmModeCrtc > ( 0xa2 ) ;
239258pub const DRM_IOCTL_GET_ENCODER : usize = drm_iowr :: < DrmModeGetEncoder > ( 0xa6 ) ;
240259pub const DRM_IOCTL_GET_CONNECTOR : usize = drm_iowr :: < DrmModeGetConnector > ( 0xa7 ) ;
241260pub const DRM_IOCTL_MODE_ADDFB : usize = drm_iowr :: < DrmModeFbCmd > ( 0xae ) ;
You can’t perform that action at this time.
0 commit comments