From patchwork Mon Oct 4 03:44:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 515140 Delivered-To: patch@linaro.org Received: by 2002:ac0:890a:0:0:0:0:0 with SMTP id 10csp1062436imy; Sun, 3 Oct 2021 20:47:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJKZ4KeiDk1jxuPtlX9KCy2nAwFmDUmTUDfY/Z3DB3l+jj4VWnVfxx6VbOpVyY7pwRHXKt X-Received: by 2002:a17:906:6c84:: with SMTP id s4mr15100026ejr.121.1633319244239; Sun, 03 Oct 2021 20:47:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633319244; cv=none; d=google.com; s=arc-20160816; b=cJQoNdOi2Et6u4Uidv1vAxSblj7cXrxWOhC3Rwy2FOu6bAfxGcIqkmf2d2gnpAr7OC 6nBi3qQoI3DsglSXQEvOhH6gQiz64fk55ctoSKtnM6kadb4fUZ72qKvaFzWA6uGIHiRj G/H0Tvo9/zLckd+MRFiYQzjsNkBkWc5PgXiptPfrQ57O/pOY26alXSvJ0V6MVFnt+iDx tpV/3QHnrKSxGiKPuIta9TVbyXAM7nlqxy6i79etWBtchVmU0lNvnaLKf7iOYOhyjI4P cVjfdqM1vRF8pVgg0EdFfvYVARCg3s/kuBv4a6L4axaF5lLUpfKZnGzIbFO5mtF+gGHN foqQ== 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=09zzPUY9cLjo5QYknTZsS+xxCuy75tmCm6QwQx2+vJRD1FqPYOGoGyo7gXbIJJr63g nQLQl6vZI9vFBerXTbceR0zfts8I85bLvVInHhPYnjK5MtW+7izyEnpdjjQjdoU+QtEl BJ8RLqtF856t5+JXvrm7m4MXU/NG7GOc/e32u/nT6xs7oJUnjKzvJhqYl07cps/X+dij AIHnl0L50BONzC1jZbzhelo0bBzzt8EMrDAzclLOB/O1iE9b3pzdT/l4+885MniCJawL 9pWgI6Ok6kBKFW/ivrDMzU2htKwcQ9QlmlSuTBguMpuPJV+wcdOkN57V8V3J7X1JdmCN KDIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kCbhqxQJ; 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 jr11si3200569ejb.269.2021.10.03.20.47.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Oct 2021 20:47:24 -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=kCbhqxQJ; 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 108F28358E; Mon, 4 Oct 2021 05:46: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="kCbhqxQJ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6BF938353B; Mon, 4 Oct 2021 05:46:13 +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-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) (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 9A73583581 for ; Mon, 4 Oct 2021 05:45:59 +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-x1029.google.com with SMTP id pf6-20020a17090b1d8600b0019fa884ab85so2551100pjb.5 for ; Sun, 03 Oct 2021 20:45:59 -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=kCbhqxQJu1aNKk52Sn1cP6YNPCSdjbo1lunOHPc6Bht7H2nkX2Lvtb/XtHLRD1fZMk XqSxVlqqduliMV5GGcMT6/A2XTpgm+y4MtMYPlKzUkZQ5f+c8NKi5S5xycDa919s94wb 48tg5/gL2xtBJ9iytm9RW7X4K+3lhw8/52YBp+PIotmFvR31x5YpNoulqDnt5zowfpLw q4cXHuhpU1m5g2DcZLgijFSqKZhwEEutxuTglfbFWpFSHPimxwhQsceXyQOTua+L3Bwf srUvuIur5NYtbpx4IgxKfxYKrM8KEb3b3ZHs51CHcE0B/f8y/nyuRuYE2gm/h89UkU9M Yunw== 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=0+8t8z9ezfEi+bBkEAw2QaEzZS+r62xSWHEt3vrjAzwNu85LGAR6T/kX3oElmRkXf3 pQJQnE8ACuaCO1n9vQLoQ+VrND2ViruiUmzw3NH3bD/Yrzg/AC47tuCk+7lXT2g3mdHE fC/oNC16VetZSWbxCd2DjXk3ZQshjMMUGHBRz9UlPkYHF6LGcZvxGNSHxYi35xf8I4lE sffSYlVRYXttqUtr2LIaoR9Y7iWdo6kD2ljCY8SGY7mQZ2PvOehffSQK9mGzt/OMUh4M Uq75VFu3uIrLciIW972DLdCiC7dUbEELAQ2MTRTx+w6HRHmrg84o934LSQzZFsYUnZ7O iGkw== X-Gm-Message-State: AOAM532divNopJ+vLrUxmgRO4mdnK/dIMp6TUH7pBy0kEK52bY1YjaPs eYhXTmVcXShKRCZnxX9PcBfJrg== X-Received: by 2002:a17:90b:4a82:: with SMTP id lp2mr34886993pjb.57.1633319158013; Sun, 03 Oct 2021 20:45:58 -0700 (PDT) Received: from localhost.localdomain (61-205-96-147m5.grp4.mineo.jp. [61.205.96.147]) by smtp.gmail.com with ESMTPSA id a11sm11863515pgj.75.2021.10.03.20.45.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Oct 2021 20:45:57 -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: [resent RFC 12/22] dm: add a hidden link to efi object Date: Mon, 4 Oct 2021 12:44:20 +0900 Message-Id: <20211004034430.41355-13-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211004034430.41355-1-takahiro.akashi@linaro.org> References: <20211004034430.41355-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 }; /**