Rev 5022 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5022 | Rev 5068 | ||
---|---|---|---|
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 179... | Line 176... | ||
179 | 176 | ||
180 | struct drm_mode_get_encoder { |
177 | struct drm_mode_get_encoder { |
181 | __u32 encoder_id; |
178 | __u32 encoder_id; |
Line 211... | Line 208... | ||
211 | #define DRM_MODE_CONNECTOR_DisplayPort 10 |
208 | #define DRM_MODE_CONNECTOR_DisplayPort 10 |
212 | #define DRM_MODE_CONNECTOR_HDMIA 11 |
209 | #define DRM_MODE_CONNECTOR_HDMIA 11 |
213 | #define DRM_MODE_CONNECTOR_HDMIB 12 |
210 | #define DRM_MODE_CONNECTOR_HDMIB 12 |
214 | #define DRM_MODE_CONNECTOR_TV 13 |
211 | #define DRM_MODE_CONNECTOR_TV 13 |
215 | #define DRM_MODE_CONNECTOR_eDP 14 |
212 | #define DRM_MODE_CONNECTOR_eDP 14 |
216 | #define DRM_MODE_CONNECTOR_VIRTUAL 15 |
- | |
217 | #define DRM_MODE_CONNECTOR_DSI 16 |
- | |
Line 218... | Line 213... | ||
218 | 213 | ||
Line 219... | Line 214... | ||
219 | struct drm_mode_get_connector { |
214 | struct drm_mode_get_connector { |
220 | 215 | ||
Line 233... | Line 228... | ||
233 | __u32 connector_type_id; |
228 | __u32 connector_type_id; |
Line 234... | Line 229... | ||
234 | 229 | ||
235 | __u32 connection; |
230 | __u32 connection; |
236 | __u32 mm_width, mm_height; /**< HxW in millimeters */ |
231 | __u32 mm_width, mm_height; /**< HxW in millimeters */ |
237 | __u32 subpixel; |
- | |
238 | - | ||
239 | __u32 pad; |
232 | __u32 subpixel; |
Line 240... | Line 233... | ||
240 | }; |
233 | }; |
241 | 234 | ||
242 | #define DRM_MODE_PROP_PENDING (1<<0) |
235 | #define DRM_MODE_PROP_PENDING (1<<0) |
243 | #define DRM_MODE_PROP_RANGE (1<<1) |
236 | #define DRM_MODE_PROP_RANGE (1<<1) |
244 | #define DRM_MODE_PROP_IMMUTABLE (1<<2) |
237 | #define DRM_MODE_PROP_IMMUTABLE (1<<2) |
245 | #define DRM_MODE_PROP_ENUM (1<<3) /* enumerated type with text strings */ |
238 | #define DRM_MODE_PROP_ENUM (1<<3) /* enumerated type with text strings */ |
Line 246... | Line -... | ||
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) |
- | |
261 | #define DRM_MODE_PROP_OBJECT DRM_MODE_PROP_TYPE(1) |
239 | #define DRM_MODE_PROP_BLOB (1<<4) |
262 | #define DRM_MODE_PROP_SIGNED_RANGE DRM_MODE_PROP_TYPE(2) |
240 | #define DRM_MODE_PROP_BITMASK (1<<5) /* bitmask of enumerated types */ |
263 | 241 | ||
264 | struct drm_mode_property_enum { |
242 | struct drm_mode_property_enum { |
Line 282... | Line 260... | ||
282 | __u64 value; |
260 | __u64 value; |
283 | __u32 prop_id; |
261 | __u32 prop_id; |
284 | __u32 connector_id; |
262 | __u32 connector_id; |
285 | }; |
263 | }; |
Line -... | Line 264... | ||
- | 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 |
|
286 | 273 | ||
287 | struct drm_mode_obj_get_properties { |
274 | struct drm_mode_obj_get_properties { |
288 | __u64 props_ptr; |
275 | __u64 props_ptr; |
289 | __u64 prop_values_ptr; |
276 | __u64 prop_values_ptr; |
290 | __u32 count_props; |
277 | __u32 count_props; |
Line 344... | Line 331... | ||
344 | 331 | ||
345 | #define DRM_MODE_FB_DIRTY_ANNOTATE_COPY 0x01 |
332 | #define DRM_MODE_FB_DIRTY_ANNOTATE_COPY 0x01 |
346 | #define DRM_MODE_FB_DIRTY_ANNOTATE_FILL 0x02 |
333 | #define DRM_MODE_FB_DIRTY_ANNOTATE_FILL 0x02 |
Line 347... | Line -... | ||
347 | #define DRM_MODE_FB_DIRTY_FLAGS 0x03 |
- | |
348 | - | ||
349 | #define DRM_MODE_FB_DIRTY_MAX_CLIPS 256 |
334 | #define DRM_MODE_FB_DIRTY_FLAGS 0x03 |
350 | 335 | ||
351 | /* |
336 | /* |
352 | * Mark a region of a framebuffer as dirty. |
337 | * Mark a region of a framebuffer as dirty. |
353 | * |
338 | * |
Line 386... | Line 371... | ||
386 | struct drm_mode_mode_cmd { |
371 | struct drm_mode_mode_cmd { |
387 | __u32 connector_id; |
372 | __u32 connector_id; |
388 | struct drm_mode_modeinfo mode; |
373 | struct drm_mode_modeinfo mode; |
389 | }; |
374 | }; |
Line 390... | Line 375... | ||
390 | 375 | ||
391 | #define DRM_MODE_CURSOR_BO 0x01 |
376 | #define DRM_MODE_CURSOR_BO (1<<0) |
392 | #define DRM_MODE_CURSOR_MOVE 0x02 |
- | |
Line 393... | Line 377... | ||
393 | #define DRM_MODE_CURSOR_FLAGS 0x03 |
377 | #define DRM_MODE_CURSOR_MOVE (1<<1) |
394 | 378 | ||
395 | /* |
379 | /* |
396 | * depending on the value in flags different members are used. |
380 | * depending on the value in flags diffrent members are used. |
397 | * |
381 | * |
398 | * CURSOR_BO uses |
382 | * CURSOR_BO uses |
399 | * crtc_id |
383 | * crtc |
400 | * width |
384 | * width |
401 | * height |
385 | * height |
402 | * handle - if 0 turns the cursor off |
386 | * handle - if 0 turns the cursor of |
403 | * |
387 | * |
404 | * CURSOR_MOVE uses |
388 | * CURSOR_MOVE uses |
405 | * crtc_id |
389 | * crtc |
406 | * x |
390 | * x |
407 | * y |
391 | * y |
408 | */ |
392 | */ |