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 (Arm)" X-Patchwork-Id: 9990373 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 765D560247 for ; Fri, 6 Oct 2017 21:31:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 684ED28DF0 for ; Fri, 6 Oct 2017 21:31:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5D38928DF7; Fri, 6 Oct 2017 21:31:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0158228DF0 for ; Fri, 6 Oct 2017 21:31:50 +0000 (UTC) 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" X-Virus-Scanned: ClamAV using ClamSMTP 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;