From patchwork Fri Oct 6 21:31:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 115136 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp665qgn; Fri, 6 Oct 2017 14:31:50 -0700 (PDT) X-Received: by 10.98.190.19 with SMTP id l19mr3355121pff.309.1507325510716; Fri, 06 Oct 2017 14:31:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507325510; cv=none; d=google.com; s=arc-20160816; b=0GeRjeL/+ZYW4/4R27NDRZDHopSRe2OXI2ysYfr1aHK8KBMmPvKBgZWQRa93qtKDja OSCDyYe4nO+C3zzK54KDyASyqyumZivuDKkKH1L7b1QOcK2MQd8cVGT0qXEcvq07W/BT +AMUZv4hn0ePB/vq/Iq/aixfcmR7WsDLZFdGsHHHCmUwWFZq7tUTIa89RRJUx5Op3kks NVLI8lGQXOMoGGfD7IUzv60oICSzTJ4EEkCbv+PXd5FCygO5yQEBAFT4r3FZY7ymgMeb 60NNSqYe+IhhZjAreJyHcqbM/9fyj+XdnuQHAKpC0jdJUrHwXA26tbu50i+vwuaPUvnr ZP7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:cc:message-id:date:subject:to:from:delivered-to :arc-authentication-results; bh=PH288IPrdAI5frMLl46cDc769PbpDPRS9MfXHf1/9/0=; b=wt3Kl4JGaShQYzh9fV+5YkbaxG6imFz9JDuxFHi0V20T0DHgxjh4D276NiAaMlZ4dB 6bKGHxxtpKA9jBxOjRtm8+fgOpu/8bm987tfo1mOW6sqoYGrP/tVQMg1u2eBUTpwKG6z 3ohg8RGfJ0wKDxeoyTb3+cpjk9tqN029g3OkVR4lUABJ1ABCD+1XfW5fB3/oY3H8+kL9 53/ruSodk0oXGu4/Ek7ITmrEiyhJuWjHPukk21ShHUJI+c6spfXQuo4nH1asqr74vfuK QEZFCkjO+L3Y81X4x+gE4NBaHf1+uCjhOcE+KVcf5Gk5ugxg7tWMLJ0OsKvfDpgaFwGE XveQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id p33si1910311pld.217.2017.10.06.14.31.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 06 Oct 2017 14:31:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4BD1F6E9D8; Fri, 6 Oct 2017 21:31:49 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-oi0-f66.google.com (mail-oi0-f66.google.com [209.85.218.66]) by gabe.freedesktop.org (Postfix) with ESMTPS id C45826E9D8 for ; Fri, 6 Oct 2017 21:31:47 +0000 (UTC) Received: by mail-oi0-f66.google.com with SMTP id n129so10778510oia.0 for ; Fri, 06 Oct 2017 14:31:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=jWd1xRhdJtmKXgfHwW/G1TlnR9AA7wCRRplOkNDmuKs=; b=tgclyf2YaqjUOtsZZdNZgzg//b16ZEnep64VcyMQwfed8H5mk/PP2OxmTeS4/LATEY lldzbO+24Ot8ORSEF41EXTuXUMaPtkL1XeNIUCmEZozkdELj43lNnSkgT2AlCeruzLOS 7glXYYMQk99pKxslBN9dI1w3Dk57unU6VPF4w/soy8ye1RUNJFHOdz/9I6+sIVo0RSyg 907/oRRllWtzssCEB9Ku3PvSseTuE34rz8VEhrAAGph5ed8JSicplZp20zB6QrGZqfDS ltWPJmJytNidDMyHLwAbirFVDEzHRV9tBZ+0NzvtBWa1ov444ISb3FX59/vgryqPZsPw r6QQ== X-Gm-Message-State: AMCzsaXkubJ9MuuKbaKjtqHOrEsm5ZXhBUIc04ISr1wcCv0ta2qWZmwL VyBtHspnGGgb7M6ktdWdvV4EdAM= X-Google-Smtp-Source: AOwi7QDfFuP5ENrjCWRcQ0iQVnV/IkcxqSJE/MaU7Z2do+8329kZ46fkTg6cjqGibY08YzpiTg+qqw== X-Received: by 10.157.68.119 with SMTP id f52mr1913353otj.267.1507325506662; Fri, 06 Oct 2017 14:31:46 -0700 (PDT) Received: from localhost.localdomain (216-188-254-6.dyn.grandenetworks.net. [216.188.254.6]) by smtp.googlemail.com with ESMTPSA id u65sm1048387oig.13.2017.10.06.14.31.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 06 Oct 2017 14:31:46 -0700 (PDT) From: Rob Herring To: dri-devel@lists.freedesktop.org Subject: [PATCH libdrm] headers: sync DRM_MODE_ROTATE/REFLECT defines from kernel v4.14-rc1 Date: Fri, 6 Oct 2017 16:31:43 -0500 Message-Id: <20171006213143.8410-1-robh@kernel.org> X-Mailer: git-send-email 2.11.0 Cc: Robert Foss X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Add the new DRM_MODE_ROTATE_* and DRM_MODE_REFLECT_* defines from v4.14-rc1 kernel. Signed-off-by: Rob Herring Reviewed-by: Thierry Reding --- include/drm/drm_mode.h | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/include/drm/drm_mode.h b/include/drm/drm_mode.h index 080779785eb8..e01f129c0204 100644 --- a/include/drm/drm_mode.h +++ b/include/drm/drm_mode.h @@ -119,6 +119,53 @@ extern "C" { #define DRM_MODE_LINK_STATUS_GOOD 0 #define DRM_MODE_LINK_STATUS_BAD 1 +/* + * DRM_MODE_ROTATE_ + * + * Signals that a drm plane is been rotated degrees in counter + * clockwise direction. + * + * This define is provided as a convenience, looking up the property id + * using the name->prop id lookup is the preferred method. + */ +#define DRM_MODE_ROTATE_0 (1<<0) +#define DRM_MODE_ROTATE_90 (1<<1) +#define DRM_MODE_ROTATE_180 (1<<2) +#define DRM_MODE_ROTATE_270 (1<<3) + +/* + * DRM_MODE_ROTATE_MASK + * + * Bitmask used to look for drm plane rotations. + */ +#define DRM_MODE_ROTATE_MASK (\ + DRM_MODE_ROTATE_0 | \ + DRM_MODE_ROTATE_90 | \ + DRM_MODE_ROTATE_180 | \ + DRM_MODE_ROTATE_270) + +/* + * DRM_MODE_REFLECT_ + * + * Signals that the contents of a drm plane is reflected in the axis, + * in the same way as mirroring. + * + * This define is provided as a convenience, looking up the property id + * using the name->prop id lookup is the preferred method. + */ +#define DRM_MODE_REFLECT_X (1<<4) +#define DRM_MODE_REFLECT_Y (1<<5) + +/* + * DRM_MODE_REFLECT_MASK + * + * Bitmask used to look for drm plane reflections. + */ +#define DRM_MODE_REFLECT_MASK (\ + DRM_MODE_REFLECT_X | \ + DRM_MODE_REFLECT_Y) + + struct drm_mode_modeinfo { __u32 clock; __u16 hdisplay;