From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 07C6DAC0996 for ; Mon, 18 Sep 2023 03:43:19 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=u1L2Z+iRvEZJJXlUrx27vJYLBSOGEKvZrrS6yLUcJSA=; c=relaxed/simple; d=groups.io; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:From:To:CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID:References:In-Reply-To:Accept-Language:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type; s=20140610; t=1695008598; v=1; b=QBorjeroOr0CHATgL+NRr0A2F7Pkk1iuTpOPbdTGx2DrHPxViNZDHlPKzbaAG+F1cXVm5fFf XoXvgBdhP7cJHLkhStF9GiwAOBbHVipxPqDfchfHEmHOz3+1EB2ODpgjXGocdKuu7i7gApexALv gMw7g6Hrit4hb3n8Qu8vjCF8= X-Received: by 127.0.0.2 with SMTP id dq8rYY7687511xgNED8oyVK4; Sun, 17 Sep 2023 20:43:18 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.24]) by mx.groups.io with SMTP id smtpd.web11.44402.1695008597810369497 for ; Sun, 17 Sep 2023 20:43:18 -0700 X-IronPort-AV: E=McAfee;i="6600,9927,10836"; a="382300589" X-IronPort-AV: E=Sophos;i="6.02,155,1688454000"; d="scan'208,217";a="382300589" X-Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Sep 2023 20:43:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10836"; a="695375082" X-IronPort-AV: E=Sophos;i="6.02,155,1688454000"; d="scan'208,217";a="695375082" X-Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by orsmga003.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 17 Sep 2023 20:43:16 -0700 X-Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32; Sun, 17 Sep 2023 20:43:16 -0700 X-Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32 via Frontend Transport; Sun, 17 Sep 2023 20:43:16 -0700 X-Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.176) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.32; Sun, 17 Sep 2023 20:43:16 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SWmDxoc9UmG5ZeIjzjh2m3lDN+bjmL6vkbmHjAVGOCL8T7M5jQWFS1ZD70huIQ9t36gc/Qhprr4dFpAVYRtEh+bYdzyx0Od5tb12gxirjxT7kZ5p1D1je4cN6wTAHY/RM7cCyzUceo+1zFBDuYADNVD9UpSv0UCsPRLmKDuCutLNc7xzDhuxnaZUU08Seeaq4ZHF5Llqwmz+22442QUlAzBXTvBJ/mN07RDy9av1tFWmaTigOp+RE+Sk96uVYAGXPbtqmi6LdKtM3w0EUiWFblFieP8qRYEo5frHxzR3G2GRaRRgx/hWl+9Rhsn64q/YXhANn4TuvEfviiwjb5P8Lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=K7PeZEiWPjZEB56LQu00ANPwHBPumDSzrXJai9HICI0=; b=Ka1oWBqpR95zgoDHwJr2MOmWZKStsdjQB79UHYt8w0qOTv9T5IQQLhfKalyman0Jwq6b6mJJ4Yb2cEhHZG07tlSs53zrnvCEcUwfwRCywwB4/ImIpmbXLhjMtNljbPpGF/Hbkoyu4/WRYfbOfkrD8vM5wKf4mp7AmeMGxZB5w743bApkz04rzbrybTo0Ld/siEte/2ZUVnvoObj9rHT56AE5+qwXBiMQnGqgvmLF68qzPIEny2hmGZJGZ8XuPLXi7tgtAWM43xeSvLN5Wv2Q4s28HcYp29RkHhKR7vCOqbB/0kC3L/Ymffcp+inNtsG1uPhXy62fhmzWU1Os+KGm0Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none X-Received: from BYAPR11MB3557.namprd11.prod.outlook.com (2603:10b6:a03:b4::21) by SA0PR11MB4767.namprd11.prod.outlook.com (2603:10b6:806:97::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.26; Mon, 18 Sep 2023 03:43:12 +0000 X-Received: from BYAPR11MB3557.namprd11.prod.outlook.com ([fe80::7254:8563:251a:40ef]) by BYAPR11MB3557.namprd11.prod.outlook.com ([fe80::7254:8563:251a:40ef%3]) with mapi id 15.20.6792.026; Mon, 18 Sep 2023 03:43:12 +0000 From: "Benny Lin" To: "Wang, BruceX" , "devel@edk2.groups.io" CC: "Wang, BruceX" , "Guo, Gua" , "Chiu, Chasel" , "Lu, James" Subject: Re: [edk2-devel] [PATCH v3 1/2] MdePkg/BaseFdtLib: Add Fdt function. Thread-Topic: [PATCH v3 1/2] MdePkg/BaseFdtLib: Add Fdt function. Thread-Index: AQHZ6IwJTgF7ZicDHUOx6KL/24D2CrAf8KkP Date: Mon, 18 Sep 2023 03:43:11 +0000 Message-ID: References: <20230916105318.1571-1-brucex.wang@intel.com> <20230916105318.1571-2-brucex.wang@intel.com> In-Reply-To: <20230916105318.1571-2-brucex.wang@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BYAPR11MB3557:EE_|SA0PR11MB4767:EE_ x-ms-office365-filtering-correlation-id: d40c598d-4761-4d25-8e2d-08dbb7f961bc x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam-message-info: XEEZVFYmIMQGy94CVVHAyJ30v5mmY8trleDzZxhC9MLmc9IH9PrOwuS/63CE/fk1E4HgMCC5EKrX9oC9RdhcBor8ruFym+LDwMoSD4uMzENiujyPlotzm4HU97wdCSnp+kKEd46deUtmFMB5Pv0DwpTsp8tNWRSazKeMcIhF/UQVoysHNzpe5RSyeXDDqiItLQD5l5JPm6rQmO7zPyhhj5FvlK1b9VcWzyt/rnqGZNJi5suM4+pe9w9+6oqRQLTRCdinKkrAHuiUk7wr/v2PB+gpdXJnoKpilgiVVxROUlA9f8LhO3yJZMvIdtKgcTj6Ob86kIT26QIyFczFOTF5crKIwznGkA5i+8fb8YnnGVYIFwT9lmMkKpN+Mkb92zxBB+G/1FFS3D0qi8op8Odk4xC9o7kQx1fsG4Vh7N/RVHXgbWx0AxfwnzG36F9fBufckUtlab5+NmI1ntd0Gob8pgBxXvy4YvzGiW7lzhpmiPWGZFj929zfSCzFj3bAznvwHl5RGpVuFQwy2WSp7j7OM03ny96+gTM/qi3MxuJCVNZSZKTXsH9WXAXtQWOvYTZUD83ald+WtkZXKNa/hLV44tYJ/DHf/kMR2RzcdujnVBCbcrrofP/KShLooNopirJD x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?1dX+pKV3/TgwjBqOwM4+fhDLwasIZ4KH+FISAOsHguKjclmZBjaLIjYC6Bpp?= =?us-ascii?Q?+OfuYfvWQDb5mS7yYC45orikkI4HoUuJC9n0QSj0LFvoR9/OU75mwg/bG178?= =?us-ascii?Q?eI8g6V8947B3FlsZJ54XRJmjcU/3Ntlp/1Ie/2ehZw0FJ/zHjrmNb+ClNm2e?= =?us-ascii?Q?6dkj6lI+0yssX7Di7OzFsEqPA8zADSCIADoLSflLtMUS2cLhUUOKzqhH704z?= =?us-ascii?Q?SLVDtmRH8s0TrbGt1vkxtwssfhAlDBJpSC/2ySjpETktgiJ7BzN5oyOqOh7l?= =?us-ascii?Q?wc/oAysFT6C5abCubaGcnqnY7KyvbHzP4cAEmWR7JYgT3ecl8K9ghsSEH9mB?= =?us-ascii?Q?0hyu0ea5awg5pjLKq0l6YWZDYjlMeDXKs9I9MV2zdxdGnZLHVKElV41YeKlS?= =?us-ascii?Q?x718HbpDVJsdahqEcFAoJNBKvrH40r2ivMm25XgZkZxUOq2bX3ox+5dVeyho?= =?us-ascii?Q?hWe2Y+flQG9WT9J3Oix9auLKx2R8vBWYWTI+qadb3un+7YnGvSkoW8SAVj4t?= =?us-ascii?Q?zFtxqc7me6fYZHSYy0kA6JO2sBm0Jo6XlvYt5PfTCkROpPuVPirMjwz/MU7Q?= =?us-ascii?Q?QZtfYyTYisT7BmG6LZpEH7xML+jXSxbNlKgYnkSdPM3qKsP+4yW2saDwMpSR?= =?us-ascii?Q?gnWCvfHELavFxRMUoymdfZxg3Fctz4IE7VbIDF/bnfaSZLhZtus4U0xejg5t?= =?us-ascii?Q?QTPIFq5QaOWlOEHsbbiLrM7F5iX1m9ePvUvPn3NTsa6qyYqau8lubdWB1H+V?= =?us-ascii?Q?v17HzgO0Sy/0Voj10eGW4GFJu5welgCnhVkF1Uh0/utGvu0eVWbm4lCxB9+A?= =?us-ascii?Q?GFoFffBn8yIEFSB54viZsTxt49z1BYxg3KZNT5XqXAhWJM5OYR1XCJu4ZltV?= =?us-ascii?Q?28esSVEmZCijF8sN9/b4+96KHbI/Y7dJfvrz3hCLy8YdRH2Yk64YpWdCsRe1?= =?us-ascii?Q?81VGJCpXxQAa/JcjEE73dxIDWPXjtOJzEUK5XV8zEwdFp8Ok2rzugnzd2Hjt?= =?us-ascii?Q?csrc3hVVuKpXMFZ3HShiAmeJXT7mHawbloHrLWrsiMYyD2dS3UH9V6PqXPwt?= =?us-ascii?Q?c9C1cQNcrmpsxH2574kZK57EEnQIciymSxXe4SHSXeftPBWqTV6YwODbZ+Jz?= =?us-ascii?Q?Bgdheqb0QQDlcQEDNRXarMBsHoY9G6KKpC1Kd+x13opmRSiooEweHyYOuU0N?= =?us-ascii?Q?Igux9lXh8SIWmIRQHs4ni6Kr2++riPL6W2JVjwFlcV93HuUdSLfPPzX9vl0W?= =?us-ascii?Q?kn7lvpo/GN9fhE20d3KJJJ1TBglb8mZlscgOFL7Fkgz52wpXigalUW82ncKy?= =?us-ascii?Q?CX3ztGFovJ9jPVxuZDhKbd341x/uMnD7f4exV95UijY98bVDo36GQFdoVkdo?= =?us-ascii?Q?Xg41qqslzeRr7KChH1ls8zFRi07sT49GMLjCqC+4/WOlKL/PYK/Z6f2HX2s4?= =?us-ascii?Q?OJ6KqgUmBGJVJg2mNdVstsFvmznJ1zutF80sB0KpiP+tIcIj3whGO/mYDqMk?= =?us-ascii?Q?XvgnxHl2VBr/Ezsxm6s3rwLRCn4mGtlDB8KJHyaHoXTKMdCTfC4zmlkaUNlC?= =?us-ascii?Q?14CyX6QJLaktm8ToRvm1fBHpGUndxeSW4awLuwzn?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR11MB3557.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: d40c598d-4761-4d25-8e2d-08dbb7f961bc X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Sep 2023 03:43:11.7013 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: WT5jkxR8DBzArCTzlEGnld+gDAmILKXJ+53xgfjmCwEQTCprgQ2DfyPNjlsoAcxAJRnb4jFzBslvabRkNFrQ8g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR11MB4767 X-OriginatorOrg: intel.com Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,benny.lin@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: tuwz1tMaEXzWehnSJpiNPodEx7686176AA= Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_BYAPR11MB355726AE521B60D37A97DC82F4FBABYAPR11MB3557namp_" X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=QBorjero; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}"); dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io --_000_BYAPR11MB355726AE521B60D37A97DC82F4FBABYAPR11MB3557namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, Bruce, A redundant space in the function comment of FdtNodeDepth. Please find my comment below. Thanks! QQQ Benny ________________________________ From: Wang, BruceX Sent: Saturday, September 16, 2023 6:53:17 PM To: devel@edk2.groups.io Cc: Wang, BruceX ; Lin, Benny ;= Guo, Gua ; Chiu, Chasel ; Lu, Ja= mes Subject: [PATCH v3 1/2] MdePkg/BaseFdtLib: Add Fdt function. From: "Brucex.Wang" Add FdtGetName() and FdtNodeDepth() function. Cc: Benny Lin Cc: Gua Guo Cc: Chasel Chiu Cc: James Lu Signed-off-by: BruceX Wang --- MdePkg/Include/Library/FdtLib.h | 34 +++++++++++++++++++++++++ MdePkg/Library/BaseFdtLib/FdtLib.c | 40 ++++++++++++++++++++++++++++++ 2 files changed, 74 insertions(+) diff --git a/MdePkg/Include/Library/FdtLib.h b/MdePkg/Include/Library/FdtLi= b.h index cf5ceba9e9..2bd926b5b4 100644 --- a/MdePkg/Include/Library/FdtLib.h +++ b/MdePkg/Include/Library/FdtLib.h @@ -398,4 +398,38 @@ FdtSetProp ( IN UINT32 Length ); +/** + Returns the name of a given node. + + @param[in] Fdt The pointer to FDT blob. + @param[in] NodeOffse Offset of node to check. + @param[in] Length The pointer to an integer variable (will be ov= erwritten) or NULL. + + @return The pointer to the node's name. + +**/ +CONST CHAR8 * +EFIAPI +FdtGetName ( + IN VOID *Fdt, + IN INT32 NodeOffset, + IN UINT32 *Length + ); + +/** + FdtNodeDepth() finds the depth of a given node. The root node + has depth 0, its immediate subnodes depth 1 and so forth. + + @param[in] Fdt The pointer to FDT blob. + @param[in] NodeOffset Offset of node to check. + + @return Depth of the node at NodeOffset. + **/ > A redundant space. +INT32 +EFIAPI +FdtNodeDepth ( + IN CONST VOID *Fdt, + IN INT32 NodeOffset + ); + #endif /* FDT_LIB_H_ */ diff --git a/MdePkg/Library/BaseFdtLib/FdtLib.c b/MdePkg/Library/BaseFdtLib= /FdtLib.c index 090b0b3fd4..1ef99ea882 100644 --- a/MdePkg/Library/BaseFdtLib/FdtLib.c +++ b/MdePkg/Library/BaseFdtLib/FdtLib.c @@ -402,3 +402,43 @@ FdtSetProp ( { return fdt_setprop (Fdt, NodeOffset, Name, Value, (int)Length); } + +/** + Returns the name of a given node. + + @param[in] Fdt The pointer to FDT blob. + @param[in] NodeOffset Offset of node to check. + @param[in] Length The pointer to an integer variable (will be ov= erwritten) or NULL. + + @return The pointer to the node's name. + +**/ +CONST CHAR8 * +EFIAPI +FdtGetName ( + IN VOID *Fdt, + IN INT32 NodeOffset, + IN UINT32 *Length + ) +{ + return fdt_get_name (Fdt, NodeOffset, (int *)Length); +} + +/** + FdtNodeDepth() finds the depth of a given node. The root node + has depth 0, its immediate subnodes depth 1 and so forth. + + @param[in] Fdt The pointer to FDT blob. + @param[in] NodeOffset Offset of node to check. + + @returns Depth of the node at NodeOffset. +**/ +INT32 +EFIAPI +FdtNodeDepth ( + IN CONST VOID *Fdt, + IN INT32 NodeOffset + ) +{ + return fdt_node_depth (Fdt, NodeOffset); +} -- 2.39.2.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#108766): https://edk2.groups.io/g/devel/message/108766 Mute This Topic: https://groups.io/mt/101398211/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- --_000_BYAPR11MB355726AE521B60D37A97DC82F4FBABYAPR11MB3557namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi, Bruce,

 

A redundant space in the function comment of FdtNode= Depth.

Please find my comment below. Thanks!

 

QQQ

Benny

 


From: Wang, BruceX <brucex.wang@intel.com>
Sent: Saturday, September 16, 2023 6:53:17 PM
To: devel@edk2.groups.io <devel@edk2.groups.io>
Cc: Wang, BruceX <brucex.wang@intel.com>; Lin, Benny <benny= .lin@intel.com>; Guo, Gua <gua.guo@intel.com>; Chiu, Chasel <ch= asel.chiu@intel.com>; Lu, James <james.lu@intel.com>
Subject: [PATCH v3 1/2] MdePkg/BaseFdtLib: Add Fdt function. =

 

From: "Brucex.Wa= ng" <brucex.wang@intel.com>

Add FdtGetName() and FdtNodeDepth() function.

Cc: Benny Lin <benny.lin@intel.com>
Cc: Gua Guo <gua.guo@intel.com>
Cc: Chasel Chiu <chasel.chiu@intel.com>
Cc: James Lu <james.lu@intel.com>

Signed-off-by: BruceX Wang <brucex.wang@intel.com>
---
 MdePkg/Include/Library/FdtLib.h    | 34 ++++++++++++++= +++++++++++
 MdePkg/Library/BaseFdtLib/FdtLib.c | 40 +++++++++++++++++++++++++++++= +
 2 files changed, 74 insertions(+)

diff --git a/MdePkg/Include/Library/FdtLib.h b/MdePkg/Include/Library/FdtLi= b.h
index cf5ceba9e9..2bd926b5b4 100644
--- a/MdePkg/Include/Library/FdtLib.h
+++ b/MdePkg/Include/Library/FdtLib.h
@@ -398,4 +398,38 @@ FdtSetProp (
   IN UINT32       Length

   );

 

+/**

+  Returns the name of a given node.

+

+  @param[in] Fdt         = ;   The pointer to FDT blob.

+  @param[in] NodeOffse      Offset of node t= o check.

+  @param[in] Length         T= he pointer to an integer variable (will be overwritten) or NULL.

+

+  @return The pointer to the node's name.

+

+**/

+CONST CHAR8 *

+EFIAPI

+FdtGetName (

+  IN VOID    *Fdt,

+  IN INT32   NodeOffset,

+  IN UINT32  *Length

+  );

+

+/**

+  FdtNodeDepth() finds the depth of a given node.  The root node=

+  has depth 0, its immediate subnodes depth 1 and so forth.

+

+  @param[in] Fdt         = ;   The pointer to FDT blob.

+  @param[in] NodeOffset     Offset of node to che= ck.

+

+  @return Depth of the node at NodeOffset.

+ **/

> A redundant spac= e.

+INT32

+EFIAPI

+FdtNodeDepth (

+  IN CONST VOID  *Fdt,

+  IN INT32       NodeOffset

+  );

+

 #endif /* FDT_LIB_H_ */

diff --git a/MdePkg/Library/BaseFdtLib/FdtLib.c b/MdePkg/Library/BaseFdtLib= /FdtLib.c
index 090b0b3fd4..1ef99ea882 100644
--- a/MdePkg/Library/BaseFdtLib/FdtLib.c
+++ b/MdePkg/Library/BaseFdtLib/FdtLib.c
@@ -402,3 +402,43 @@ FdtSetProp (
 {

   return fdt_setprop (Fdt, NodeOffset, Name, Value, (int)Length)= ;

 }

+

+/**

+  Returns the name of a given node.

+

+  @param[in] Fdt         = ;   The pointer to FDT blob.

+  @param[in] NodeOffset     Offset of node to che= ck.

+  @param[in] Length         T= he pointer to an integer variable (will be overwritten) or NULL.

+

+  @return The pointer to the node's name.

+

+**/

+CONST CHAR8 *

+EFIAPI

+FdtGetName (

+  IN VOID    *Fdt,

+  IN INT32   NodeOffset,

+  IN UINT32  *Length

+  )

+{

+  return fdt_get_name (Fdt, NodeOffset, (int *)Length);

+}

+

+/**

+  FdtNodeDepth() finds the depth of a given node.  The root node=

+  has depth 0, its immediate subnodes depth 1 and so forth.

+

+  @param[in] Fdt         = ;   The pointer to FDT blob.

+  @param[in] NodeOffset     Offset of node to che= ck.

+

+  @returns Depth of the node at NodeOffset.

+**/

+INT32

+EFIAPI

+FdtNodeDepth (

+  IN CONST VOID  *Fdt,

+  IN INT32       NodeOffset

+  )

+{

+  return fdt_node_depth (Fdt, NodeOffset);

+}

--
2.39.2.windows.1

_._,_._,_

Groups.io Links:

=20 You receive all messages sent to this group. =20 =20

View/Reply Online (#108766) | =20 | Mute= This Topic | New Topic
Your Subscriptio= n | Contact Group Owner | Unsubscribe [rebecca@openfw.io]

_._,_._,_
--_000_BYAPR11MB355726AE521B60D37A97DC82F4FBABYAPR11MB3557namp_--