Subversion Repositories Kolibri OS

Rev

Rev 1964 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1964 Rev 2967
Line 118... Line 118...
118
	__u32 gamma_size;
118
	__u32 gamma_size;
119
	__u32 mode_valid;
119
	__u32 mode_valid;
120
	struct drm_mode_modeinfo mode;
120
	struct drm_mode_modeinfo mode;
121
};
121
};
Line -... Line 122...
-
 
122
 
-
 
123
#define DRM_MODE_PRESENT_TOP_FIELD	(1<<0)
-
 
124
#define DRM_MODE_PRESENT_BOTTOM_FIELD	(1<<1)
-
 
125
 
-
 
126
/* Planes blend with or override other bits on the CRTC */
-
 
127
struct drm_mode_set_plane {
-
 
128
	__u32 plane_id;
-
 
129
	__u32 crtc_id;
-
 
130
	__u32 fb_id; /* fb object contains surface format type */
-
 
131
	__u32 flags; /* see above flags */
-
 
132
 
-
 
133
	/* Signed dest location allows it to be partially off screen */
-
 
134
	__s32 crtc_x, crtc_y;
-
 
135
	__u32 crtc_w, crtc_h;
-
 
136
 
-
 
137
	/* Source values are 16.16 fixed point */
-
 
138
	__u32 src_x, src_y;
-
 
139
	__u32 src_h, src_w;
-
 
140
};
-
 
141
 
-
 
142
struct drm_mode_get_plane {
-
 
143
	__u32 plane_id;
-
 
144
 
-
 
145
	__u32 crtc_id;
-
 
146
	__u32 fb_id;
-
 
147
 
-
 
148
	__u32 possible_crtcs;
-
 
149
	__u32 gamma_size;
-
 
150
 
-
 
151
	__u32 count_format_types;
-
 
152
	__u64 format_type_ptr;
-
 
153
};
-
 
154
 
-
 
155
struct drm_mode_get_plane_res {
-
 
156
	__u64 plane_id_ptr;
-
 
157
	__u32 count_planes;
-
 
158
};
122
 
159
 
123
#define DRM_MODE_ENCODER_NONE	0
160
#define DRM_MODE_ENCODER_NONE	0
124
#define DRM_MODE_ENCODER_DAC	1
161
#define DRM_MODE_ENCODER_DAC	1
125
#define DRM_MODE_ENCODER_TMDS	2
162
#define DRM_MODE_ENCODER_TMDS	2
126
#define DRM_MODE_ENCODER_LVDS	3
163
#define DRM_MODE_ENCODER_LVDS	3
-
 
164
#define DRM_MODE_ENCODER_TVDAC	4
Line 127... Line 165...
127
#define DRM_MODE_ENCODER_TVDAC	4
165
#define DRM_MODE_ENCODER_VIRTUAL 5
128
 
166
 
129
struct drm_mode_get_encoder {
167
struct drm_mode_get_encoder {
Line 160... Line 198...
160
#define DRM_MODE_CONNECTOR_DisplayPort	10
198
#define DRM_MODE_CONNECTOR_DisplayPort	10
161
#define DRM_MODE_CONNECTOR_HDMIA	11
199
#define DRM_MODE_CONNECTOR_HDMIA	11
162
#define DRM_MODE_CONNECTOR_HDMIB	12
200
#define DRM_MODE_CONNECTOR_HDMIB	12
163
#define DRM_MODE_CONNECTOR_TV		13
201
#define DRM_MODE_CONNECTOR_TV		13
164
#define DRM_MODE_CONNECTOR_eDP		14
202
#define DRM_MODE_CONNECTOR_eDP		14
-
 
203
#define DRM_MODE_CONNECTOR_VIRTUAL      15
Line 165... Line 204...
165
 
204
 
Line 166... Line 205...
166
struct drm_mode_get_connector {
205
struct drm_mode_get_connector {
167
 
206
 
Line 227... Line 266...
227
	__u32 depth;
266
	__u32 depth;
228
	/* driver specific handle */
267
	/* driver specific handle */
229
	__u32 handle;
268
	__u32 handle;
230
};
269
};
Line -... Line 270...
-
 
270
 
-
 
271
#define DRM_MODE_FB_INTERLACED	(1<<0) /* for interlaced framebuffers */
-
 
272
 
-
 
273
struct drm_mode_fb_cmd2 {
-
 
274
	__u32 fb_id;
-
 
275
	__u32 width, height;
-
 
276
	__u32 pixel_format; /* fourcc code from drm_fourcc.h */
-
 
277
	__u32 flags; /* see above flags */
-
 
278
 
-
 
279
	/*
-
 
280
	 * In case of planar formats, this ioctl allows up to 4
-
 
281
	 * buffer objects with offets and pitches per plane.
-
 
282
	 * The pitch and offset order is dictated by the fourcc,
-
 
283
	 * e.g. NV12 (http://fourcc.org/yuv.php#NV12) is described as:
-
 
284
	 *
-
 
285
	 *   YUV 4:2:0 image with a plane of 8 bit Y samples
-
 
286
	 *   followed by an interleaved U/V plane containing
-
 
287
	 *   8 bit 2x2 subsampled colour difference samples.
-
 
288
	 *
-
 
289
	 * So it would consist of Y as offset[0] and UV as
-
 
290
	 * offeset[1].  Note that offset[0] will generally
-
 
291
	 * be 0.
-
 
292
	 */
-
 
293
	__u32 handles[4];
-
 
294
	__u32 pitches[4]; /* pitch for each plane */
-
 
295
	__u32 offsets[4]; /* offset of each plane */
-
 
296
};
231
 
297
 
232
#define DRM_MODE_FB_DIRTY_ANNOTATE_COPY 0x01
298
#define DRM_MODE_FB_DIRTY_ANNOTATE_COPY 0x01
233
#define DRM_MODE_FB_DIRTY_ANNOTATE_FILL 0x02
299
#define DRM_MODE_FB_DIRTY_ANNOTATE_FILL 0x02
Line -... Line 300...
-
 
300
#define DRM_MODE_FB_DIRTY_FLAGS         0x03
-
 
301
 
234
#define DRM_MODE_FB_DIRTY_FLAGS         0x03
302
#define DRM_MODE_FB_DIRTY_MAX_CLIPS     256
235
 
303
 
236
/*
304
/*
237
 * Mark a region of a framebuffer as dirty.
305
 * Mark a region of a framebuffer as dirty.
238
 *
306
 *