From patchwork Tue Apr 8 12:19:15 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 27961 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f199.google.com (mail-ie0-f199.google.com [209.85.223.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 4A1A02066E for ; Tue, 8 Apr 2014 12:20:47 +0000 (UTC) Received: by mail-ie0-f199.google.com with SMTP id rl12sf3695860iec.10 for ; Tue, 08 Apr 2014 05:20:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:subject:date :message-id:in-reply-to:references:cc:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :mime-version:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list:content-type :content-transfer-encoding; bh=4zgVR5Hv9/qYhzkb1dvCGxUa1Od7WQqWggJDCaqlb6M=; b=Finj4KChxUWX4qD9xkgrs1n3WEGrLHRIPxvyjz7LqW8It7xUw8lgE64dYwvoMy50i6 CaPJ8KMnpWuO1pZgYOp8u3GsYvrYo9khZX0uAFo7bCVZUsfQZiArzY/u3vBGbpNdHbp0 tw30ucDEAoXoN8SR9yGHi53yCZ8+9sMP3yudSeWmvJ/WDO95mZBF2JqoQ6LPaHXF1EZp qyFFj3a9cLy+V0QCL2YWz4nHxAiZBCkDirzvoYE4dqBhdXjYXNoMDMdOy6hWPcQts//y Rmk736GlD5WX3G3aVRd4lMe4usxfJS1dZHy8zyayi2m9eYtUyLexpElC20PiWZXrrDVI lehg== X-Gm-Message-State: ALoCoQmReGl7ZSLMGVSGsOFACPjk5uBCnFP4YN4gpdLYstrtm7sj05e6ddwsd1LnsKOKiDH+xXVw X-Received: by 10.182.65.168 with SMTP id y8mr1647154obs.38.1396959646755; Tue, 08 Apr 2014 05:20:46 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.81.69 with SMTP id e63ls187959qgd.29.gmail; Tue, 08 Apr 2014 05:20:46 -0700 (PDT) X-Received: by 10.52.78.231 with SMTP id e7mr1287619vdx.28.1396959646656; Tue, 08 Apr 2014 05:20:46 -0700 (PDT) Received: from mail-ve0-f176.google.com (mail-ve0-f176.google.com [209.85.128.176]) by mx.google.com with ESMTPS id cb3si362100vdc.5.2014.04.08.05.20.46 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 08 Apr 2014 05:20:46 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.176 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.176; Received: by mail-ve0-f176.google.com with SMTP id db11so676808veb.35 for ; Tue, 08 Apr 2014 05:20:46 -0700 (PDT) X-Received: by 10.52.69.146 with SMTP id e18mr2480669vdu.15.1396959646562; Tue, 08 Apr 2014 05:20:46 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.12.8 with SMTP id v8csp240706vcv; Tue, 8 Apr 2014 05:20:46 -0700 (PDT) X-Received: by 10.69.0.198 with SMTP id ba6mr894022pbd.16.1396959643952; Tue, 08 Apr 2014 05:20:43 -0700 (PDT) Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTP id hw8si996354pbc.120.2014.04.08.05.20.42 for ; Tue, 08 Apr 2014 05:20:43 -0700 (PDT) Received-SPF: pass (google.com: domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5405B6E9DE; Tue, 8 Apr 2014 05:20:38 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wg0-f43.google.com (mail-wg0-f43.google.com [74.125.82.43]) by gabe.freedesktop.org (Postfix) with ESMTP id 72F026E9DE for ; Tue, 8 Apr 2014 05:20:37 -0700 (PDT) Received: by mail-wg0-f43.google.com with SMTP id x13so860778wgg.14 for ; Tue, 08 Apr 2014 05:20:36 -0700 (PDT) X-Received: by 10.194.118.163 with SMTP id kn3mr1565807wjb.77.1396959636759; Tue, 08 Apr 2014 05:20:36 -0700 (PDT) Received: from lmenx321.lme.st.com (LPuteaux-656-01-48-212.w82-127.abo.wanadoo.fr. [82.127.83.212]) by mx.google.com with ESMTPSA id v6sm2683904wif.0.2014.04.08.05.20.35 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 08 Apr 2014 05:20:36 -0700 (PDT) From: Benjamin Gaignard To: dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org Subject: [PATCH v1 08/19] drm: sti: add sti layer interface definition Date: Tue, 8 Apr 2014 14:19:15 +0200 Message-Id: <1396959566-2960-9-git-send-email-benjamin.gaignard@linaro.org> X-Mailer: git-send-email 1.9.0 In-Reply-To: <1396959566-2960-1-git-send-email-benjamin.gaignard@linaro.org> References: <1396959566-2960-1-git-send-email-benjamin.gaignard@linaro.org> Cc: Fabien Dessenne , Benjamin Gaignard X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: 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-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: benjamin.gaignard@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.176 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 STI hardware have various input sub-devices before mixing block. Each type of sub-device have different capabilities for scaling, filtering or accepted pixel format. This layer interface abstract those differences and make the interaction with compositor more simple. Signed-off-by: Benjamin Gaignard Signed-off-by: Vincent Abriou Signed-off-by: Fabien Dessenne --- drivers/gpu/drm/sti/sti_layer.h | 104 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 104 insertions(+) create mode 100644 drivers/gpu/drm/sti/sti_layer.h diff --git a/drivers/gpu/drm/sti/sti_layer.h b/drivers/gpu/drm/sti/sti_layer.h new file mode 100644 index 0000000..ed8386a --- /dev/null +++ b/drivers/gpu/drm/sti/sti_layer.h @@ -0,0 +1,104 @@ +/* + * Copyright (C) STMicroelectronics SA 2013 + * Authors: Benjamin Gaignard + * Fabien Dessenne + * for STMicroelectronics. + * License terms: GNU General Public License (GPL), version 2 + */ + +#ifndef _STI_LAYER_H_ +#define _STI_LAYER_H_ + +#include + +#define to_sti_layer(x) container_of(x, struct sti_layer, plane) + +#define STI_LAYER_TYPE_SHIFT 8 +#define STI_LAYER_TYPE_MASK (~((1<