From patchwork Mon May 25 01:48:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1297048 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=eDEeXx7b; 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 49Vg6l74fqz9sPF for ; Mon, 25 May 2020 11:51:11 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E789C8167F; Mon, 25 May 2020 03:49:58 +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="eDEeXx7b"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B8D9881497; Mon, 25 May 2020 03:49:24 +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-io1-xd43.google.com (mail-io1-xd43.google.com [IPv6:2607:f8b0:4864:20::d43]) (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 7C2B4801D6 for ; Mon, 25 May 2020 03:49:15 +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-io1-xd43.google.com with SMTP id u23so4149818iot.12 for ; Sun, 24 May 2020 18:49:15 -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=PtefK9S7dm4IRyQ304zmit1ey0EEr3Rr7TPD6edNM/M=; b=eDEeXx7bHVzGdA/CYQ02PHRXayM5yYlteieN06KVQtzuG4ex/IbaNbgVshj1rP68xU HAW26yw+dDETPAnJmsBiGWb6oxEh8IialuHADVMufcLBOz4zhs1ObfNmxmju0nOsKnoe WTPJt7+an6z7doFClVf1vs5zwHGNSITBgDA9I= 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=PtefK9S7dm4IRyQ304zmit1ey0EEr3Rr7TPD6edNM/M=; b=VwLc5LMJJtznwRR8InkgTj8LIriDk3F7pxXBuv1vtK9dX8MJCZkvxTY3h2Y2++D9gR OIFu9umrHMTG2/nxE9ng0VJJf941hJUqxMRkpX5Q9wZe+y6MdH0yMjo4tQJQGSHeLGcm KbW7pRe7G3qOmczNkR3MIDkd6ATVSMqXpOmnNrXPgPt4RvULx3PJE9a23TPsPkGslyP4 O0/+VHcGJdRaR79QBtYDPE9b7jYfZU8uqnBd6uZX1iJUdJWrWcc6smgPJeBZosDkHLYv Eges9ts/sdIptNjl39QcWf60gZ8581VPNL0FK44TMbOXnwyxr79xA1BZJb33ddDvx7zF cdtQ== X-Gm-Message-State: AOAM5318aIQwO1WXS3lqHY3nUcosZTJ1g7/Z3lxYcUdER9YU+Jkzr2oy I0izRl//X/gqwfWOqf/EZwccC5ECkDEDRA== X-Google-Smtp-Source: ABdhPJwzLeHknEyE3MCYYadWSjM5sf8PcyK/UIbvL7ekdQ4+daWC65L0RHSAJe4YfBsigipeqx43OA== X-Received: by 2002:a02:82cd:: with SMTP id u13mr4298098jag.32.1590371354276; Sun, 24 May 2020 18:49:14 -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 s7sm6822965ioc.37.2020.05.24.18.49.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 May 2020 18:49:14 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Bin Meng , Simon Glass , Anatolij Gustschin Subject: [PATCH v2 08/26] video: Add a comment for struct video_uc_platdata Date: Sun, 24 May 2020 19:48:45 -0600 Message-Id: <20200524194852.v2.8.Ia4b140d3a91a26c97fa8609ad63a4a3784621d5a@changeid> X-Mailer: git-send-email 2.27.0.rc0.183.gde8f92d652-goog In-Reply-To: <20200525014904.115621-1-sjg@chromium.org> References: <20200525014904.115621-1-sjg@chromium.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 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.2 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 --- Changes in v2: None 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;