Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B9C68C433EF for ; Tue, 26 Oct 2021 03:36:02 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3837C60E0B for ; Tue, 26 Oct 2021 03:36:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 3837C60E0B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 693818363D; Tue, 26 Oct 2021 05:33:48 +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="FJpAunG5"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2F3F283598; Tue, 26 Oct 2021 05:31:50 +0200 (CEST) Received: from mail-io1-xd2b.google.com (mail-io1-xd2b.google.com [IPv6:2607:f8b0:4864:20::d2b]) (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 59A8783569 for ; Tue, 26 Oct 2021 05:31:29 +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-xd2b.google.com with SMTP id q6so14258706iod.7 for ; Mon, 25 Oct 2021 20:31:29 -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=Ot1n6XF1VQihsE0y8vxw8U4CDzi2dMp2A7xl3dFBFoM=; b=FJpAunG5CpmxiygZyNDxOyWsnEdijjO+BSUXv/fi9StOIHBUAZ5CB7CE7iJ2BvCI/p X/gGwA1uGMI2ECNNc/AkWgEUYN2nBfxulL8ewgrsorvqG4T9EYt3/1ormiOprw1j6EHe X3fC118bn/m0+C6DylOaWrxq91GXvbi4sQbiI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Ot1n6XF1VQihsE0y8vxw8U4CDzi2dMp2A7xl3dFBFoM=; b=l6xQsMGAVtdn+Pimy4MAE01mGbZfp0ro3natAPBtqcHKxaAZTIYlunUBMMLHZG7Mzr VphEc/twj/wuqcrEq2nQq8LvU4BsmK1tRFtMICyoOQDixZ2C9Dn0B5By/QPDGbZ/nTVq gUfzsho4TaOXo14MG0TIUXWLPUAO2qqXc+BDNnUpt/kGADqZ5ZFDDU/Hln7B9p3/1gT9 vLdBnRrvfa38eiCatDXugP8moQotGKLxRnuQaNuXHoGj/002JxLdmhs0Be22oXwNjBJy j8L+yNyH44H8wBTNIQNxdOBfJ6rshSvQ1xQp+GOky6EJt/qbN2ZOesjyFQ1uKiYVIs/2 LVSw== X-Gm-Message-State: AOAM530/G83Db+8S3PVxNsGDMg2fNBymSynrqvLH2U9A9qwlmmU6FuGe AMtVPqiFTOHsFgXkPKSHFAFRqXk2YL8mbA== X-Google-Smtp-Source: ABdhPJz6aKUoYhQjzS4CU6kFNl+mOE2QQk0XdaZXFCBz0HdP3Th2PxajFk8rrxGTomkIv3qvm+PaiA== X-Received: by 2002:a5d:81c7:: with SMTP id t7mr5131371iol.65.1635219087923; Mon, 25 Oct 2021 20:31:27 -0700 (PDT) Received: from kiwi.bld.corp.google.com (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id s10sm10127203ild.78.2021.10.25.20.31.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Oct 2021 20:31:27 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Ilias Apalodimas , Christian Melki , Bin Meng , Tom Rini , Heinrich Schuchardt , Simon Glass , Alexander Graf Subject: [PATCH v3 24/35] efi: Add comments to struct efi_priv Date: Mon, 25 Oct 2021 21:30:47 -0600 Message-Id: <20211026033058.430010-13-sjg@chromium.org> X-Mailer: git-send-email 2.33.0.1079.g6e70778dc9-goog In-Reply-To: <20211026033058.430010-1-sjg@chromium.org> References: <20211026033058.430010-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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.103.2 at phobos.denx.de X-Virus-Status: Clean This structure is uncommented. Fix it. Signed-off-by: Simon Glass --- Changes in v3: - Drop comments that confuse sphinx - Move device_path path change to its own patch include/efi.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/include/efi.h b/include/efi.h index 77e599c256e..6622a733e6e 100644 --- a/include/efi.h +++ b/include/efi.h @@ -400,14 +400,37 @@ static inline struct efi_mem_desc *efi_get_next_mem_desc( return (struct efi_mem_desc *)((ulong)desc + map->desc_size); } +/** + * struct efi_priv - Information about the environment provided by EFI + * + * @parent_image: image passed into the EFI app or stub + * @sys_table: Pointer to system table + * @boot: Pointer to boot-services table + * @run: Pointer to runtime-services table + * + * @use_pool_for_malloc: true if all allocation should go through the EFI 'pool' + * methods allocate_pool() and free_pool(); false to use 'pages' methods + * allocate_pages() and free_pages() + * @ram_base: Base address of RAM (size CONFIG_EFI_RAM_SIZE) + * @image_data_type: Type of the loaded image (e.g. EFI_LOADER_CODE) + * + * @info: Header of the info list, holding info collected by the stub and passed + * to U-Boot + * @info_size: Size of the info list, in bytes from @info + * @next_hdr: Pointer to where to put the next header when adding to the list + */ struct efi_priv { efi_handle_t parent_image; struct efi_system_table *sys_table; struct efi_boot_services *boot; struct efi_runtime_services *run; + + /* app: */ bool use_pool_for_malloc; unsigned long ram_base; unsigned int image_data_type; + + /* stub: */ struct efi_info_hdr *info; unsigned int info_size; void *next_hdr; -- 2.33.0.1079.g6e70778dc9-goog