From patchwork Fri Jul 3 03:12:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1322042 X-Patchwork-Delegate: bmeng.cn@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=K+9C95nT; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49yg6c6ry1z9sR4 for ; Fri, 3 Jul 2020 13:14:16 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E4B6181BD8; Fri, 3 Jul 2020 05:13:14 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="K+9C95nT"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id EFE3781BB2; Fri, 3 Jul 2020 05:12:56 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-il1-x143.google.com (mail-il1-x143.google.com [IPv6:2607:f8b0:4864:20::143]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 5EB9581B89 for ; Fri, 3 Jul 2020 05:12:51 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-il1-x143.google.com with SMTP id e18so15378269ilr.7 for ; Thu, 02 Jul 2020 20:12:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=/w+zwAGE+AqaDgClV/PakBddvrpSSl4PYq3AbL2ggm8=; b=K+9C95nTOM3IQ4FVfsZUOKgcrKgKgEKoAKRgVNntL6EQfjVILrWhJZEe8cMC7aKDUa GdsmaP1DYrut7HfWV4VyrAzNCsldaOoA5o/mP0qReju5TVSvzNrgY63nLYr+miAM2/Q+ 79ad9jEfQxTvBSGWa+33MpDeMzctAduLm71Eg= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=/w+zwAGE+AqaDgClV/PakBddvrpSSl4PYq3AbL2ggm8=; b=Rvf2tsG4/8hNoOo/tjhoEl0M+8ajqRRKPG2GX4tPva2XVFDId1wTnXuaCnDT30ElbZ oUNXALAwd+EUturX9xingEhn3iFEc9J3WGMOfAWxsdNRaEF0MoWZoc7QnXQPK7nSUQma nsuSqEX8sEUtKdp3yoF9UkvoN7pNJA+K3CoUoh7Azly3NKpALMB7gvBpgb2dMUtCGc17 PXnp91vm38wMX0cFSxPwPBlbKhfRWnDrH0Qqunz+dt0c/wcanBU8+v5YTAc6mjZTCsyb mW/7GYiYmgW3q9XsQpJKjHRh7BaUCRY46RwsNbYzws7eefoMYe1XRp1R9BCZNKU/4tUT wCqw== X-Gm-Message-State: AOAM531hQ/RT7zyBPgEjAqGDWT0xi0wt8KUGrnF6uu8cXTkedF1126qn zGKwWk1hyDvIyfaf9GyxVXq++A== X-Google-Smtp-Source: ABdhPJy3lTWpI+LBh53u0cUM4+7HqCPk3zrj20McoHFe6RPmy7psSEcgf+PrkTDTK6yla2kj2/PE7w== X-Received: by 2002:a92:b685:: with SMTP id m5mr15093675ill.219.1593745970201; Thu, 02 Jul 2020 20:12:50 -0700 (PDT) Received: from localhost.localdomain (c-73-14-175-90.hsd1.co.comcast.net. [73.14.175.90]) by smtp.gmail.com with ESMTPSA id c16sm5859654ilh.54.2020.07.02.20.12.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jul 2020 20:12:49 -0700 (PDT) From: Simon Glass To: Bin Meng Cc: Simon Glass , Anatolij Gustschin , u-boot@lists.denx.de Subject: [RESEND PATCH v3 08/26] video: Add a comment for struct video_uc_platdata Date: Thu, 2 Jul 2020 21:12:19 -0600 Message-Id: <20200702211204.RESEND.v3.8.Ia4b140d3a91a26c97fa8609ad63a4a3784621d5a@changeid> X-Mailer: git-send-email 2.27.0.212.ge8ba1cc988-goog In-Reply-To: <20200703031237.1546362-1-sjg@chromium.org> References: <20200703031237.1546362-1-sjg@chromium.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean Add a few notes to explain the purpose of each member of this struct. Signed-off-by: Simon Glass Reviewed-by: Anatolij Gustschin --- (no changes since v1) include/video.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/include/video.h b/include/video.h index e7c58e86cb..813b5653b0 100644 --- a/include/video.h +++ b/include/video.h @@ -19,6 +19,18 @@ struct udevice; +/** + * struct video_uc_platdata - uclass platform data for a video device + * + * This holds information that the uclass needs to know about each device. It + * is accessed using dev_get_uclass_platdata(dev). See 'Theory of operation' at + * the top of video-uclass.c for details on how this information is set. + * + * @align: Frame-buffer alignment, indicating the memory boundary the frame + * buffer should start on. If 0, 1MB is assumed + * @size: Frame-buffer size, in bytes + * @base: Base address of frame buffer, 0 if not yet known + */ struct video_uc_platdata { uint align; uint size;