~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to include/drm/drm_mode.h

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
277
277
#define DRM_MODE_CURSOR_MOVE    (1<<1)
278
278
 
279
279
/*
280
 
 * depending on the value in flags diffrent members are used.
 
280
 * depending on the value in flags different members are used.
281
281
 *
282
282
 * CURSOR_BO uses
283
283
 *    crtc
344
344
        __u64 user_data;
345
345
};
346
346
 
 
347
/* create a dumb scanout buffer */
 
348
struct drm_mode_create_dumb {
 
349
        uint32_t height;
 
350
        uint32_t width;
 
351
        uint32_t bpp;
 
352
        uint32_t flags;
 
353
        /* handle, pitch, size will be returned */
 
354
        uint32_t handle;
 
355
        uint32_t pitch;
 
356
        uint64_t size;
 
357
};
 
358
 
 
359
/* set up for mmap of a dumb scanout buffer */
 
360
struct drm_mode_map_dumb {
 
361
        /** Handle for the object being mapped. */
 
362
        __u32 handle;
 
363
        __u32 pad;
 
364
        /**
 
365
         * Fake offset to use for subsequent mmap call
 
366
         *
 
367
         * This is a fixed-size type for 32/64 compatibility.
 
368
         */
 
369
        __u64 offset;
 
370
};
 
371
 
 
372
struct drm_mode_destroy_dumb {
 
373
        uint32_t handle;
 
374
};
 
375
 
347
376
#endif