Rev 4363 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4363 | Rev 5022 | ||
---|---|---|---|
Line 171... | Line 171... | ||
171 | #define DRM_MODE_ENCODER_NONE 0 |
171 | #define DRM_MODE_ENCODER_NONE 0 |
172 | #define DRM_MODE_ENCODER_DAC 1 |
172 | #define DRM_MODE_ENCODER_DAC 1 |
173 | #define DRM_MODE_ENCODER_TMDS 2 |
173 | #define DRM_MODE_ENCODER_TMDS 2 |
174 | #define DRM_MODE_ENCODER_LVDS 3 |
174 | #define DRM_MODE_ENCODER_LVDS 3 |
175 | #define DRM_MODE_ENCODER_TVDAC 4 |
175 | #define DRM_MODE_ENCODER_TVDAC 4 |
- | 176 | #define DRM_MODE_ENCODER_VIRTUAL 5 |
|
- | 177 | #define DRM_MODE_ENCODER_DSI 6 |
|
- | 178 | #define DRM_MODE_ENCODER_DPMST 7 |
|
Line 176... | Line 179... | ||
176 | 179 | ||
177 | struct drm_mode_get_encoder { |
180 | struct drm_mode_get_encoder { |
178 | __u32 encoder_id; |
181 | __u32 encoder_id; |
Line 208... | Line 211... | ||
208 | #define DRM_MODE_CONNECTOR_DisplayPort 10 |
211 | #define DRM_MODE_CONNECTOR_DisplayPort 10 |
209 | #define DRM_MODE_CONNECTOR_HDMIA 11 |
212 | #define DRM_MODE_CONNECTOR_HDMIA 11 |
210 | #define DRM_MODE_CONNECTOR_HDMIB 12 |
213 | #define DRM_MODE_CONNECTOR_HDMIB 12 |
211 | #define DRM_MODE_CONNECTOR_TV 13 |
214 | #define DRM_MODE_CONNECTOR_TV 13 |
212 | #define DRM_MODE_CONNECTOR_eDP 14 |
215 | #define DRM_MODE_CONNECTOR_eDP 14 |
- | 216 | #define DRM_MODE_CONNECTOR_VIRTUAL 15 |
|
- | 217 | #define DRM_MODE_CONNECTOR_DSI 16 |
|
Line 213... | Line 218... | ||
213 | 218 | ||
Line 214... | Line 219... | ||
214 | struct drm_mode_get_connector { |
219 | struct drm_mode_get_connector { |
215 | 220 | ||
Line 228... | Line 233... | ||
228 | __u32 connector_type_id; |
233 | __u32 connector_type_id; |
Line 229... | Line 234... | ||
229 | 234 | ||
230 | __u32 connection; |
235 | __u32 connection; |
231 | __u32 mm_width, mm_height; /**< HxW in millimeters */ |
236 | __u32 mm_width, mm_height; /**< HxW in millimeters */ |
- | 237 | __u32 subpixel; |
|
- | 238 | ||
232 | __u32 subpixel; |
239 | __u32 pad; |
Line 233... | Line 240... | ||
233 | }; |
240 | }; |
234 | 241 | ||
235 | #define DRM_MODE_PROP_PENDING (1<<0) |
242 | #define DRM_MODE_PROP_PENDING (1<<0) |
236 | #define DRM_MODE_PROP_RANGE (1<<1) |
243 | #define DRM_MODE_PROP_RANGE (1<<1) |
237 | #define DRM_MODE_PROP_IMMUTABLE (1<<2) |
244 | #define DRM_MODE_PROP_IMMUTABLE (1<<2) |
238 | #define DRM_MODE_PROP_ENUM (1<<3) /* enumerated type with text strings */ |
245 | #define DRM_MODE_PROP_ENUM (1<<3) /* enumerated type with text strings */ |
Line -... | Line 246... | ||
- | 246 | #define DRM_MODE_PROP_BLOB (1<<4) |
|
- | 247 | #define DRM_MODE_PROP_BITMASK (1<<5) /* bitmask of enumerated types */ |
|
- | 248 | ||
- | 249 | /* non-extended types: legacy bitmask, one bit per type: */ |
|
- | 250 | #define DRM_MODE_PROP_LEGACY_TYPE ( \ |
|
- | 251 | DRM_MODE_PROP_RANGE | \ |
|
- | 252 | DRM_MODE_PROP_ENUM | \ |
|
- | 253 | DRM_MODE_PROP_BLOB | \ |
|
- | 254 | DRM_MODE_PROP_BITMASK) |
|
- | 255 | ||
- | 256 | /* extended-types: rather than continue to consume a bit per type, |
|
- | 257 | * grab a chunk of the bits to use as integer type id. |
|
- | 258 | */ |
|
- | 259 | #define DRM_MODE_PROP_EXTENDED_TYPE 0x0000ffc0 |
|
- | 260 | #define DRM_MODE_PROP_TYPE(n) ((n) << 6) |
|
239 | #define DRM_MODE_PROP_BLOB (1<<4) |
261 | #define DRM_MODE_PROP_OBJECT DRM_MODE_PROP_TYPE(1) |
240 | #define DRM_MODE_PROP_BITMASK (1<<5) /* bitmask of enumerated types */ |
262 | #define DRM_MODE_PROP_SIGNED_RANGE DRM_MODE_PROP_TYPE(2) |
241 | 263 | ||
242 | struct drm_mode_property_enum { |
264 | struct drm_mode_property_enum { |
Line 260... | Line 282... | ||
260 | __u64 value; |
282 | __u64 value; |
261 | __u32 prop_id; |
283 | __u32 prop_id; |
262 | __u32 connector_id; |
284 | __u32 connector_id; |
263 | }; |
285 | }; |
Line 264... | Line -... | ||
264 | - | ||
265 | #define DRM_MODE_OBJECT_CRTC 0xcccccccc |
- | |
266 | #define DRM_MODE_OBJECT_CONNECTOR 0xc0c0c0c0 |
- | |
267 | #define DRM_MODE_OBJECT_ENCODER 0xe0e0e0e0 |
- | |
268 | #define DRM_MODE_OBJECT_MODE 0xdededede |
- | |
269 | #define DRM_MODE_OBJECT_PROPERTY 0xb0b0b0b0 |
- | |
270 | #define DRM_MODE_OBJECT_FB 0xfbfbfbfb |
- | |
271 | #define DRM_MODE_OBJECT_BLOB 0xbbbbbbbb |
- | |
272 | #define DRM_MODE_OBJECT_PLANE 0xeeeeeeee |
- | |
273 | 286 | ||
274 | struct drm_mode_obj_get_properties { |
287 | struct drm_mode_obj_get_properties { |
275 | __u64 props_ptr; |
288 | __u64 props_ptr; |
276 | __u64 prop_values_ptr; |
289 | __u64 prop_values_ptr; |
277 | __u32 count_props; |
290 | __u32 count_props; |
Line 331... | Line 344... | ||
331 | 344 | ||
332 | #define DRM_MODE_FB_DIRTY_ANNOTATE_COPY 0x01 |
345 | #define DRM_MODE_FB_DIRTY_ANNOTATE_COPY 0x01 |
333 | #define DRM_MODE_FB_DIRTY_ANNOTATE_FILL 0x02 |
346 | #define DRM_MODE_FB_DIRTY_ANNOTATE_FILL 0x02 |
Line -... | Line 347... | ||
- | 347 | #define DRM_MODE_FB_DIRTY_FLAGS 0x03 |
|
- | 348 | ||
334 | #define DRM_MODE_FB_DIRTY_FLAGS 0x03 |
349 | #define DRM_MODE_FB_DIRTY_MAX_CLIPS 256 |
335 | 350 | ||
336 | /* |
351 | /* |
337 | * Mark a region of a framebuffer as dirty. |
352 | * Mark a region of a framebuffer as dirty. |
338 | * |
353 | * |
Line 371... | Line 386... | ||
371 | struct drm_mode_mode_cmd { |
386 | struct drm_mode_mode_cmd { |
372 | __u32 connector_id; |
387 | __u32 connector_id; |
373 | struct drm_mode_modeinfo mode; |
388 | struct drm_mode_modeinfo mode; |
374 | }; |
389 | }; |
Line 375... | Line 390... | ||
375 | 390 | ||
376 | #define DRM_MODE_CURSOR_BO (1<<0) |
391 | #define DRM_MODE_CURSOR_BO 0x01 |
- | 392 | #define DRM_MODE_CURSOR_MOVE 0x02 |
|
Line 377... | Line 393... | ||
377 | #define DRM_MODE_CURSOR_MOVE (1<<1) |
393 | #define DRM_MODE_CURSOR_FLAGS 0x03 |
378 | 394 | ||
379 | /* |
395 | /* |
380 | * depending on the value in flags diffrent members are used. |
396 | * depending on the value in flags different members are used. |
381 | * |
397 | * |
382 | * CURSOR_BO uses |
398 | * CURSOR_BO uses |
383 | * crtc |
399 | * crtc_id |
384 | * width |
400 | * width |
385 | * height |
401 | * height |
386 | * handle - if 0 turns the cursor of |
402 | * handle - if 0 turns the cursor off |
387 | * |
403 | * |
388 | * CURSOR_MOVE uses |
404 | * CURSOR_MOVE uses |
389 | * crtc |
405 | * crtc_id |
390 | * x |
406 | * x |
391 | * y |
407 | * y |
392 | */ |
408 | */ |