From patchwork Fri Oct 1 05:02:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 515000 Delivered-To: patch@linaro.org Received: by 2002:a02:606e:0:0:0:0:0 with SMTP id d46csp453162jaf; Thu, 30 Sep 2021 22:07:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxV5/vpc5iip/6ZWuCk+lxNeuvG1xTz9r1AfgRfmf10nGz5IeaN2r+eC4nnBPT0v2GoLsVO X-Received: by 2002:a05:6402:5c2:: with SMTP id n2mr12166783edx.239.1633064848018; Thu, 30 Sep 2021 22:07:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633064848; cv=none; d=google.com; s=arc-20160816; b=PFe+rNADNjPm6hWDsTg0Isl8Vp3lKYUutY5YxiQeqU0QN+CMCj/K1WiPp3Gv2Ci085 w6bY3bsXrdMugooMDdVeL97K4B+Cl4QtC+xQ0THY2JOvIEDXxD8dGNIP+5y96qayc1cM B+kkiHU20G2rgVG46pamTU0Cw6jNEuh+EOuUPGhNySC4b8qLm4ABNQ2D6QRyvybaxENg QJ5GRGro83VBrCi0XVhSbWooeTzatpnQ+xtWQSKpZqB76ewge/ZZyuRAhGkgzpvbhCh8 aV/WnGRqFJQ8lsOsSJK0wC1tXBP4p1TmXvNop/gwjzlyo9lQ/TsZgbChQ6bFoI84wf2x ttaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=4mn44Pr4crHZayV4dJN9FRKvZepqTA8aJ3PwtV1W9t8=; b=ECSKURU77Y3aLcvSR8af2yl6yF3uqujqohTMSskeFjcQACLL2hSP7LCacLm5jtENaH u8UWSB6FF0Y5pRSA9iKTiTiH/NM8+J8aa7e6lITxWwSq9uJLGAnor1X/5KS7jCYxU7tL CibKNP3V0YaQT8btnGE+T4/WBbMWhgm1Qlp3y8N4ulVxz2HQE8DEjt9jNw4FiFJO4pn4 Z7/+DD6hUnfd1T8spj98tKAaIKtNJ3A5xdLNujayrAIgJTKPCOWrVtNiXq/Z3PbDAD6Z +O8CK6p8di0ASPfPVKiiD2HY5Nj/5ZEjSBPwiglXclVCyaHNj7rrK04HVpGwB2R7yUyT Vpfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rNGFRybx; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id v2si5444362ejv.739.2021.09.30.22.07.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Sep 2021 22:07:28 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rNGFRybx; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5AA03832E9; Fri, 1 Oct 2021 07:04:36 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="rNGFRybx"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1192F83405; Fri, 1 Oct 2021 07:04:21 +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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) (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 2406283325 for ; Fri, 1 Oct 2021 07:04:08 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=takahiro.akashi@linaro.org Received: by mail-pj1-x1031.google.com with SMTP id k23-20020a17090a591700b001976d2db364so6402479pji.2 for ; Thu, 30 Sep 2021 22:04:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=4mn44Pr4crHZayV4dJN9FRKvZepqTA8aJ3PwtV1W9t8=; b=rNGFRybxbJhedVavrpDjECKD4Qlf2Vu8CIHhlDmIpfuJ/txjcshAbRltficzTLTyQA aktwtYSEG5qUq1rfiwF5sRchKi68EcmX0slsZ8x48REYhcSzS+4229T/zaW8zg8jdvBU t6pxGN0UD2BLILQPNVYk9UKNcMwhLWp6bxh3iMmCacCyX3P5NNKH2ZWIS/wGFpJzh8/7 BQeIGBQgtfNbh50phQOfh8BIPaNQD5VTsb0lbd2utTHcpEpH3J6JFKtYsVoqNu9GR0yo AKQ+Ebba7eUjs06EaWxMJ6gn3ZCX5froaeq1XBd8HiIG4kWpPcmDPL0MgSpq5zTUKnT7 AWdQ== 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=4mn44Pr4crHZayV4dJN9FRKvZepqTA8aJ3PwtV1W9t8=; b=Rk8nOXG7bGC4RIPAycU+QdGGxbA9UnD3XIg8wLf52I6JRqqpkSZH2v78CWgdoAX/XV 93T88470MjZe2o7y8yUCrwzfks5lAmxxys4JXOgRav6BA4oqrA8jMov6GwrzXbm2kkjO RMtNEFpMgbq0qvjluOU8+DZddothLk4GHVXU1j10IDeL07p12uDbr3RfANrMXdSb4ups R3st+fbAA9l/Tkf2mloABzKba3ScNqxZdvncC+2kANITbDKUAVhCEedOqVx6bTdzu9iz A+wLn/SuymHMoxyjb2hstuwUAlMkXVqZEZNmXF1aUEXHMlKuoADUYTUQ6yY2eUgW5ung iAag== X-Gm-Message-State: AOAM533Y0+8nk4TbLEoHyuD/8hs7jDtyLDOsQje2xyODcNdFLb/VZeGr AQn9C/pr7HBbtRpRtDU3PH24iQ== X-Received: by 2002:a17:90a:7a8b:: with SMTP id q11mr10922841pjf.35.1633064646285; Thu, 30 Sep 2021 22:04:06 -0700 (PDT) Received: from localhost.localdomain (122-100-26-52m5.mineo.jp. [122.100.26.52]) by smtp.gmail.com with ESMTPSA id z8sm4615113pgc.53.2021.09.30.22.04.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Sep 2021 22:04:05 -0700 (PDT) From: AKASHI Takahiro To: xypron.glpk@gmx.de, agraf@csgraf.de, sjg@chromium.org, ilias.apalodimas@linaro.org Cc: u-boot@lists.denx.de, AKASHI Takahiro Subject: [RFC 12/22] dm: add a hidden link to efi object Date: Fri, 1 Oct 2021 14:02:07 +0900 Message-Id: <20211001050228.55183-24-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211001050228.55183-1-takahiro.akashi@linaro.org> References: <20211001050228.55183-1-takahiro.akashi@linaro.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.103.2 at phobos.denx.de X-Virus-Status: Clean This member field in udevice will be used to dereference from udevice to efi_object (or efi_handle). Signed-off-by: AKASHI Takahiro --- include/dm/device.h | 4 ++++ 1 file changed, 4 insertions(+) -- 2.33.0 diff --git a/include/dm/device.h b/include/dm/device.h index 0a9718a5b81a..33b09a836f06 100644 --- a/include/dm/device.h +++ b/include/dm/device.h @@ -190,6 +190,10 @@ struct udevice { #if CONFIG_IS_ENABLED(DM_DMA) ulong dma_offset; #endif +#if CONFIG_IS_ENABLED(EFI_LOADER) + /* link to efi_object */ + void *efi_obj; +#endif }; /**