From patchwork Tue May 13 18:26:17 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 30119 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ig0-f197.google.com (mail-ig0-f197.google.com [209.85.213.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7028B20369 for ; Tue, 13 May 2014 18:27:15 +0000 (UTC) Received: by mail-ig0-f197.google.com with SMTP id hn18sf2023823igb.8 for ; Tue, 13 May 2014 11:27:15 -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=LDR7d13IoALVLnHfviOZNv7CtHhRkXnD6BAXC0wjqKM=; b=Uyp1z2s/KTvRzngnnUnDQNdx6f4dHCDQRW8FxIB3ynKLqx/XM7sSRXBTbTc1PGE4FT J71n93XJtLT1yLfoA2RUxfErZxTV57JOapSyHRAro7CwQekgslxVSdWXqw71SlSegcTa PIBB0uoknJRY/K7VBzNBcEk0PFbK3I6j/I3CgpHFDalMatBtGm3pSTVF57n209ujwr+q HTe6i9U0QpKOmTbOLFVCufpAKurj/+fhR5DmYdK+n4v3zo3/1TmLkI3Wc8OgoP/hhnr0 zTeJjqro9YbBOpSMT3gemRXdiPqVR4xLVZz2pxcSVIOK1eWzGhT2y70cYi9mg5XwqYu6 WjvA== X-Gm-Message-State: ALoCoQmNTRvBF2jYVlco1sAwm3unjs+kbeCpNr7PNSLF8os27mG0OEeqWIjZfAglXCY1KUkpBhT0 X-Received: by 10.42.62.11 with SMTP id w11mr16105424ich.29.1400005634762; Tue, 13 May 2014 11:27:14 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.27.138 with SMTP id 10ls1524058qgx.9.gmail; Tue, 13 May 2014 11:27:14 -0700 (PDT) X-Received: by 10.220.160.67 with SMTP id m3mr1745107vcx.56.1400005634619; Tue, 13 May 2014 11:27:14 -0700 (PDT) Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by mx.google.com with ESMTPS id tv3si2778692vdc.90.2014.05.13.11.27.14 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 13 May 2014 11:27:14 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.171 as permitted sender) client-ip=209.85.220.171; Received: by mail-vc0-f171.google.com with SMTP id lc6so1002595vcb.30 for ; Tue, 13 May 2014 11:27:14 -0700 (PDT) X-Received: by 10.221.7.71 with SMTP id on7mr5475088vcb.18.1400005634523; Tue, 13 May 2014 11:27:14 -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.221.72 with SMTP id ib8csp172954vcb; Tue, 13 May 2014 11:27:14 -0700 (PDT) X-Received: by 10.66.142.42 with SMTP id rt10mr66668194pab.1.1400005632922; Tue, 13 May 2014 11:27:12 -0700 (PDT) Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTP id wp2si14093930pab.65.2014.05.13.11.27.11 for ; Tue, 13 May 2014 11:27:12 -0700 (PDT) Received-SPF: none (google.com: dri-devel-bounces@lists.freedesktop.org does not designate permitted sender hosts) client-ip=131.252.210.177; Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 489C86EBAE; Tue, 13 May 2014 11:27:10 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-we0-f169.google.com (mail-we0-f169.google.com [74.125.82.169]) by gabe.freedesktop.org (Postfix) with ESMTP id C16596EBA8 for ; Tue, 13 May 2014 11:27:08 -0700 (PDT) Received: by mail-we0-f169.google.com with SMTP id u56so820321wes.0 for ; Tue, 13 May 2014 11:27:08 -0700 (PDT) X-Received: by 10.194.189.80 with SMTP id gg16mr79463wjc.84.1400005628030; Tue, 13 May 2014 11:27:08 -0700 (PDT) Received: from lmenx321.lme.st.com (lya72-2-88-175-155-153.fbx.proxad.net. [88.175.155.153]) by mx.google.com with ESMTPSA id f7sm23191631wjy.24.2014.05.13.11.27.06 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 13 May 2014 11:27:07 -0700 (PDT) From: Benjamin Gaignard To: dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org Subject: [PATCH v2 08/19] drm: sti: add sti layer interface definition Date: Tue, 13 May 2014 20:26:17 +0200 Message-Id: <1400005588-3974-9-git-send-email-benjamin.gaignard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1400005588-3974-1-git-send-email-benjamin.gaignard@linaro.org> References: <1400005588-3974-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=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.171 as permitted sender) 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<