summaryrefslogtreecommitdiffstats
path: root/xf86drmMode.h
Commit message (Collapse)AuthorAgeFilesLines
* drm: Add drm mode lease ioctl wrappers [v3]Keith Packard2017-12-181-0/+22
| | | | | | | | | | | | | | | | | drmModeCreateLease drmModeListLessees drmModeGetLease drmModeRevokeLease Changes for v2: Remove lessee id from GetLease Remove lessor_id from ListLeases Add revoke Renumber to track kernel rebase on drm-next Signed-off-by: Keith Packard <keithp@keithp.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
* Add const qualifier to arguments of drmModeAddFB2()Tobias Jakobi2017-10-201-5/+6
| | | | | | | | | | Both drmModeAddFB2() and drmModeAddFB2WithModifiers() have some arguments that are just pointers to uint32_t in disguise. These are not modified (just copied) in the function, so we can add a const qualifier here. Signed-off-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
* xf86drmMode.h: Add DisplayPort MST and DPI encoders/connectorsThierry Reding2017-01-181-0/+3
| | | | | | | | | | | This brings xf86drmMode.h in sync with include/drm/drm_mode.h. Eventually we really should only have a single set of definitions rather than duplicating this in two files. v2: add DPI encoder and connector types introduced in Linux v4.7 Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
* xf86drmMode.h: Use consistent paddingThierry Reding2017-01-181-8/+8
| | | | | Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
* Add drmModePageFlipTargetMichel Dänzer2016-10-191-0/+3
| | | | | | It supports the DRM_MODE_PAGE_FLIP_TARGET_* flags. Acked-by: Daniel Vetter <daniel@ffwll.ch>
* Add drmModeAddFB2WithModifiers() which takes format modifiersKristian H. Kristensen2016-09-281-0/+7
| | | | | | | | The only other user of this feature open codes the ioctl. Let's add an entry point for this to libdrm. Signed-off-by: Kristian H. Kristensen <hoegsberg@chromium.org> Reviewed-by: Rob Clark <robdclark@gmail.com>
* remove usage of 'c_plusplus' preprocessor macroTapani Pälli2015-08-101-2/+2
| | | | | | | Use only __cplusplus which is supported by the C++ standard. Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
* Add blob property create/destroy ioctl wrappersDaniel Stone2015-06-291-0/+5
| | | | | | | v2: Use memclear to zero out structure. Signed-off-by: Daniel Stone <daniels@collabora.com> Reviewed-by: Rob Clark <robclark@freedesktop.org>
* Support atomic modesetting ioctlVille Syrjälä2015-06-291-0/+19
| | | | | | | | | | | | | | | | | Add support for the atomic modesetting ioctl through a property-set API. v1: Squashed intermediate patches from Ville, Rob and myself. Updated for current kernel interface (no blobs). v2: Rewrite user-facing API to provide transactional/cursor interface. Use memclear to zero out ioctl. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Rob Clark <robclark@freedesktop.org> Signed-off-by: Daniel Stone <daniels@collabora.com> v3 [Emil Velikov]: Remove DRM_CAP_ATOMIC - superseded by DRM_CLIENT_CAP_ATOMIC. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
* mode: Retrieve only the current information for a ConnectorChris Wilson2015-04-141-2/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | Add a new API that allows the caller to skip any forced probing, which may require slow i2c to a remote display, and only report the currently active mode and encoder for a Connector. This is often the information of interest and is much, much faster than re-retrieving the link status and EDIDs, e.g. if the caller only wishes to count the number of active outputs. v2: Fix error path to avoid double free after a failed GETCONNECTOR ioctl. v3: Daniel strongly disapproved of my disjoint in behaviour between GetConnector and GetConnectorCurrent, and considering how best to make a drop in replacement for drmmode_output_init() convinced me keeping the API as consistent as possible was the right approach. v4: Avoid probing on the second calls to GETCONNECTOR for unconnected outputs. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Daniel Vetter <daniel.vetter@ffwll.com> Cc: Damien Lespiau <damien.lespiau@intel.com> Cc: David Herrmann <dh.herrmann@googlemail.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
* xf86drmMode.h: inline -> __inline for use with gcc -std=c89 -pedanticDaniel Kurtz2015-04-051-1/+1
| | | | | | | | | | Unfortunately, there are some users of libdrm installed headers that like to be built with -std=c89 -pedantic, which does not like "inline". However, __inline works. Signed-off-by: Daniel Kurtz <djkurtz@chromium.org> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
* update signed/object prop typesRob Clark2014-11-241-0/+9
| | | | Signed-off-by: Rob Clark <robclark@freedesktop.org>
* drm: Add universal plane capability bit and plane type enumsMatt Roper2014-05-191-0/+4
| | | | | Signed-off-by: Matt Roper <matthew.d.roper@intel.com> Signed-off-by: Rob Clark <robclark@freedesktop.org>
* Use signed location for drmModeSetPlaneDaniel Kurtz2014-05-011-1/+1
| | | | | | | | | | | DRM_IOCTL_MODE_SETPLANE crtc_x, crtc_y are s32. This is to allow a destination location that is partially off screen. Make this more obvious to users of libdrm by using signed crtc_x/_y parameters for drmModeSetPlane() as well. Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
* libdrm/mode: Update the encoder and connector definesThomas Hellstrom2013-11-191-0/+5
| | | | | | | Update the defines to match the kernel drm_mode.h Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
* drm: Synchronize the stereo 3D mode flags from the kernel headersDamien Lespiau2013-09-301-14/+24
| | | | | | v2: stereo layouts are now an enum (Daniel Vetter) Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
* libdrm: Make some drm headers compatible with gcc -std=c89 -pedanticDaniel Kurtz2013-09-221-2/+2
| | | | | | | | | | | | | | The following minor changes were needed to these headers: * Convert // comments to /* */ * No , after final member of enum With these changes, these header files can be included by a program that is built with gcc options: -std=c89 -Werror -pedantic Signed-off-by: Daniel Kurtz <djkurtz@chromium.org> Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Eric Anholt <eric@anholt.net>
* drm: add hotspot cursor interface support.Dave Airlie2013-07-021-0/+1
| | | | Signed-off-by: Dave Airlie <airlied@redhat.com>
* Add support for generic object properties IOCTLsPaulo Zanoni2012-06-081-0/+14
| | | | | | | | | | | New library calls: - drmModeObjectGetProperties - drmModeFreeObjectProperties - drmModeObjectSetProperties Reviewed-by: Eugeni Dodonov <eugeni.dodonov@intel.com> Reviewed-by: Rob Clark <rob@ti.com> Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
* xf86drmMode.h: Add header protectionDavid Herrman2012-03-091-0/+5
| | | | | | | | xf86drmMode.h is missing a header protection. xf86drm.h has one so just copy it and adjust the name. Reviewed-by: Adam Jackson <ajax@redhat.com> Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
* This function was missing.Ville Syrjälä2012-02-021-0/+1
| | | | Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
* libdrm: update drm headers from kernel, including new overlay ioctls & structsJesse Barnes2011-12-131-0/+33
| | | | | | | | Add structs and functions necessary for the new plane and fb handling code, including a new header, drm_fourcc.h, that includes the surface formats supported by various DRM drivers. Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
* xf86drm.h : wrap C code for C++ compilation/linkingTapani Pälli2011-09-231-0/+8
| | | | | | | | To enable usage of xf86drm.h from C++ programs/frameworks. Signed-off-by: Tapani Pälli <tapani.palli@intel.com> [ickle: also wrap xf86drmMode.h] Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
* tests: vrefresh is actually not * 1000.Marcin Kościelnicki2010-02-281-1/+1
|
* drm: a some new connector types from the kernelAlex Deucher2010-02-101-0/+2
| | | | | | Add eDP (embedded displayport) and generic TV Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
* Merge branch 'modesetting-dirty-libdrm'Jakob Bornecrantz2009-12-021-0/+20
|\ | | | | | | | | Conflicts: include/drm/drm.h
| * Bring dirty code from old branchJakob Bornecrantz2009-11-261-0/+20
| |
* | Merge branch 'pageflip' of git://people.freedesktop.org/~jbarnes/drmJesse Barnes2009-12-031-0/+2
|/ | | | | Conflicts: include/drm/drm.h - RMFB had its signature changed to avoid uint32_t
* Move libdrm/ up one levelKristian Høgsberg2009-11-171-0/+364