From patchwork Tue May 20 13:56: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: 30456 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f71.google.com (mail-yh0-f71.google.com [209.85.213.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 77BE3202FE for ; Tue, 20 May 2014 13:57:13 +0000 (UTC) Received: by mail-yh0-f71.google.com with SMTP id 29sf1641433yhl.6 for ; Tue, 20 May 2014 06:57:13 -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=fsXEkPoa86dmqJKB9GVilgpHm55hVE4YCywK/HQlU3I=; b=iSrNI8UCkJWHz9PFW48XC0cnR1rHRKXAPy7zKPrKXlaUoNH6Lk2AbVxdW2AZO/g+hk s4pbIGr/4HaUEutMmPl7olL3I731ODfBazlAhpd0bL5XSvVelnx4ELbG6SxmIecCSNzr DdiGMD2nt5iLKd21KDERtvgEF6JLX8MdZqNp61t//2TRxUa3USYXofPkPzzrn/XcLJvj JBn//iynox7a5VA0zojmMdIhD2jZ3E3wi2jGqqMSLfqKjeysBjLRHr+QxYuXrIsSeVmp /RXrZ5sky5EoIJkb4130AvlA/sTV41p4MT2jnzIj/He1xQfS7gI96fyoJxrhhFwwMwK2 wUuQ== X-Gm-Message-State: ALoCoQlqCKIbr1NWtRmlxk3pnNEqjk205Iq702d1gIti0VpNcq2Wo39K46J9nv7ab9FQ0GWrcIkb X-Received: by 10.58.107.203 with SMTP id he11mr19727443veb.12.1400594233255; Tue, 20 May 2014 06:57:13 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.40.209 with SMTP id x75ls316447qgx.46.gmail; Tue, 20 May 2014 06:57:13 -0700 (PDT) X-Received: by 10.58.161.101 with SMTP id xr5mr1883183veb.36.1400594233105; Tue, 20 May 2014 06:57:13 -0700 (PDT) Received: from mail-vc0-f170.google.com (mail-vc0-f170.google.com [209.85.220.170]) by mx.google.com with ESMTPS id gu9si4982816vdc.70.2014.05.20.06.57.13 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 20 May 2014 06:57:13 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.170 as permitted sender) client-ip=209.85.220.170; Received: by mail-vc0-f170.google.com with SMTP id lf12so632752vcb.29 for ; Tue, 20 May 2014 06:57:13 -0700 (PDT) X-Received: by 10.221.26.10 with SMTP id rk10mr3883643vcb.0.1400594233030; Tue, 20 May 2014 06:57:13 -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 ib8csp32752vcb; Tue, 20 May 2014 06:57:12 -0700 (PDT) X-Received: by 10.66.131.9 with SMTP id oi9mr19097089pab.87.1400594231068; Tue, 20 May 2014 06:57:11 -0700 (PDT) Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTP id ja5si1920802pbd.13.2014.05.20.06.57.10 for ; Tue, 20 May 2014 06:57:11 -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 D7F966E8D5; Tue, 20 May 2014 06:57:09 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ee0-f49.google.com (mail-ee0-f49.google.com [74.125.83.49]) by gabe.freedesktop.org (Postfix) with ESMTP id EF96E6E17A for ; Tue, 20 May 2014 06:57:07 -0700 (PDT) Received: by mail-ee0-f49.google.com with SMTP id e53so609466eek.22 for ; Tue, 20 May 2014 06:57:07 -0700 (PDT) X-Received: by 10.15.36.8 with SMTP id h8mr56258928eev.12.1400594227257; Tue, 20 May 2014 06:57:07 -0700 (PDT) Received: from lmenx321.lme.st.com ([80.10.159.130]) by mx.google.com with ESMTPSA id x45sm4061136eee.37.2014.05.20.06.57.05 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 20 May 2014 06:57:06 -0700 (PDT) From: Benjamin Gaignard To: dri-devel@lists.freedesktop.org, airlied@linux.ie, linaro-mm-sig@lists.linaro.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 07/16] drm: sti: add sti layer interface definition Date: Tue, 20 May 2014 15:56:17 +0200 Message-Id: <1400594186-8956-8-git-send-email-benjamin.gaignard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1400594186-8956-1-git-send-email-benjamin.gaignard@linaro.org> References: <1400594186-8956-1-git-send-email-benjamin.gaignard@linaro.org> Cc: lee.jones@linaro.org, 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.170 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 --- 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<