From mboxrd@z Thu Jan 1 00:00:00 1970 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 12B89C433EF for ; Fri, 1 Oct 2021 05:07:08 +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 761C5611C8 for ; Fri, 1 Oct 2021 05:07:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 761C5611C8 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.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 E944283404; Fri, 1 Oct 2021 07:04:25 +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="bkrTk401"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DB9A483323; Fri, 1 Oct 2021 07:04:08 +0200 (CEST) Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) (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 8667B8323E for ; Fri, 1 Oct 2021 07:04:00 +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-pl1-x62f.google.com with SMTP id bb10so5554479plb.2 for ; Thu, 30 Sep 2021 22:04:00 -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=bkrTk401vE5oKuKWxesl9l24UoBIHX3y+xNcZf3XPssIqlf2GyWKHWRUgYoBF8Ms+K 5NK/Ae/649UVnbKZwoifcjJiBxa5ShpsGrQY85VvKeBfe5wruiMOhpn6hnViga/3l5kf 6fjbeAwYGpe/oaD94VKNi/c53Zp23oX5Q64iKrPgIuM73YDI+yurt9Lwgc6rV3lgIo4W pBkoOEdK9R05LcCStMtNDEgWvxiQOSuHKoo1l/ea1hy5mO/yADHrImjbJ/yMVQd335Tw UF4NYycsjWXAyr8G0DEUx25QYtz/WqPsosNfmQwp77e95LXPoLORQN3pUngKHT6sKJOi /bOw== 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=SZc0CHOWXcQ7XbXGAOTMgomuyjxuDzeGTNgIFZDk2ZSbJWnhWlVzUElBwM3hUyhoqd ET5SJLp1mJoh0bTaqrTvrszNkDE8WX8787wt09tbvCsEr/YuSfedwVrGjqUif1PCSiHa mCVCoEw0zMvT/zKaDnTxIudfqKBOXhSMPX8iSQ3OlIRrcnqBqTeh7+cJBZu7SFZyhMeC gQ7UT731iHHJihYUEChuPjtU+aAiJPKByHhvvZXtQeUc6+z+g23CJme/FmW8cowe1tL/ SYBc9ptICC5o2s7HBVRpqmW7d/9cDrCHNdjAJ6Fgnd74+yfgh3YjnnFnwIG71qoYX5uf V5tw== X-Gm-Message-State: AOAM531uuSt4nusDUu9ZG4pJVHuzNu1uxTJWryEUqPMn/HWMiAVJPtNt ldSr3AgegM+iuCnW5M5dQuL+6w== X-Google-Smtp-Source: ABdhPJzWO9dhW33HCw36wAYMXPYS2m19rmOTtpbi6GVnhoyJgjedfstzriyhlkYmzJ1MOYfa0wBXbw== X-Received: by 2002:a17:902:d88d:b0:13e:807b:d52b with SMTP id b13-20020a170902d88d00b0013e807bd52bmr3041746plz.69.1633064638690; Thu, 30 Sep 2021 22:03:58 -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.03.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Sep 2021 22:03:58 -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 11/22] dm: add a hidden link to efi object Date: Fri, 1 Oct 2021 14:02:05 +0900 Message-Id: <20211001050228.55183-22-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 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 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(+) 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 }; /** -- 2.33.0