From patchwork Wed Oct 19 14:25:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 9384143 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 C13A3607D0 for ; Wed, 19 Oct 2016 14:26:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B3DA529A3D for ; Wed, 19 Oct 2016 14:26:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A8A7029A42; Wed, 19 Oct 2016 14:26:35 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID 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 3FA1B29A3D for ; Wed, 19 Oct 2016 14:26:35 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 820E76E935; Wed, 19 Oct 2016 14:26:32 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from galahad.ideasonboard.com (galahad.ideasonboard.com [IPv6:2001:4b98:dc2:45:216:3eff:febb:480d]) by gabe.freedesktop.org (Postfix) with ESMTPS id 11E1C6E935 for ; Wed, 19 Oct 2016 14:25:53 +0000 (UTC) Received: from localhost.localdomain (37-136-126-33.rev.dnainternet.fi [37.136.126.33]) by galahad.ideasonboard.com (Postfix) with ESMTPSA id BA53420092; Wed, 19 Oct 2016 16:25:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1476887102; bh=p4N472PqsxbU13WWQTLEtk6BPfG3j+4VjyV7nG+Kt7Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mW7NShlwGpc+0FfN27z7eBVsC183B+tlL2gF2obSSsc6cg1rLfbC1qdPT8trljx2N tdOdQk43KNuHB0pbL2TLSTwFp5lrc7OFCt/4y0tv33Im10igoKso98tPFS9KD/BXED 7ftGJtwlGQPj9Pbcx0T0TuEtKGyt3H9FWkHNzFwc= From: Laurent Pinchart To: dri-devel@lists.freedesktop.org Subject: [PATCH 4/8] drm: Add encoder_type field to the drm_bridge structure Date: Wed, 19 Oct 2016 17:25:39 +0300 Message-Id: <1476887143-24831-5-git-send-email-laurent.pinchart+renesas@ideasonboard.com> X-Mailer: git-send-email 2.7.3 In-Reply-To: <1476887143-24831-1-git-send-email-laurent.pinchart+renesas@ideasonboard.com> References: <1476887143-24831-1-git-send-email-laurent.pinchart+renesas@ideasonboard.com> Cc: linux-renesas-soc@vger.kernel.org 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 The drm_bridge object models on- or off-chip hardware encoders and provide an abstract control API to display drivers. In order to help display drivers creating the right kind of drm_encoder object, expose the type of the hardware encoder associated with each bridge. Signed-off-by: Laurent Pinchart --- include/drm/drm_bridge.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/drm/drm_bridge.h b/include/drm/drm_bridge.h index 530a1d6e8cde..e93105bffc3c 100644 --- a/include/drm/drm_bridge.h +++ b/include/drm/drm_bridge.h @@ -194,6 +194,14 @@ struct drm_bridge { #endif struct list_head list; + /** + * @encoder_type: + * + * Type of the hardware encoder modeled by the bridge as one of the + * DRM_MODE_ENCODER_* types. This will usually be identical to the + * ->encoder.encoder_type for the last bridge in the chain only. + */ + int encoder_type; const struct drm_bridge_funcs *funcs; void *driver_private; };