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 ED190740034 for ; Thu, 21 Dec 2023 13:53:35 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=xHqblysAhiU9kS3GKOvGWmxtE4twML2S5Tpeya6Sbj8=; c=relaxed/simple; d=groups.io; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:Received-SPF:ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:Authentication-Results-Original:Message-ID:Date:User-Agent:Subject:To:Cc:References:From:In-Reply-To:MIME-Version:NoDisclaimer:Original-Authentication-Results:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type:Content-Transfer-Encoding; s=20140610; t=1703166814; v=1; b=jwXinlGhT1m3AFxum0lFGPFaLZhZOK395zSkrWI584HwZQaVdW8HeICewal2mcicrVuV8+d6 4XeoYusaIY4xqsdoB+BTr/H7dR5kpj33d5ayjssPHQNJt4EJnj9AbPII5o2cnNJAVQgOjF4xNG0 fBILxX/JfUweb7enaxVdneV0= X-Received: by 127.0.0.2 with SMTP id ktuZYY7687511x1Rl0LtZVHb; Thu, 21 Dec 2023 05:53:34 -0800 X-Received: from EUR02-VI1-obe.outbound.protection.outlook.com (EUR02-VI1-obe.outbound.protection.outlook.com [40.107.241.87]) by mx.groups.io with SMTP id smtpd.web10.51614.1703166812779044443 for ; Thu, 21 Dec 2023 05:53:33 -0800 ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=kzfnggJyeQDIjyBxhtWRCw+uanir3ULet2JK1bGGa/sD2b8ep5BrIHc4TLayBFAWrU0bwCHchA8DR93lc5V83dM4v4HlLsNn376ntEZuQ/T3M1YB7EfiHZ7UXi+C7EXiqaD2mhUJqfmymvf63CAHjOINSnzdvLyaxUKfc9RZ0Bv9ohhEoxiIbOj3kcya4iaehiLjmom+fnPgCsqNQZWI6Pnj5LMth7eAm7NRt2KY/t5PwbpFNBhUwYc2G6SGImtzGmI4bQ3iAFDSF9YGSwdUdxnrryax1srWBDrz+e+0A0e0Utp6on5mC+874hC+0qv165FHC8BxJiPaRbvehXONMw== ARC-Message-Signature: i=2; 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=d8urbOt3kyC9Y+yE25hWSWTdfp0V6ePClO1NWI6mBiM=; b=hzzW8ROqj9/2jJrR6osYwQsOubM74/wtbo0WJzFUHFB1S/GDbtrXm6nGEDL/tje0LbLu4GLIG4WG2M+mPOD7ZVVEdmjhfaG05LdxnXCWiq9YuPcOOGXF4Ubfgwsw1R9N7HsUQr97dfzg224y3qKVtFMuGoCOjkuInfZV2IMaBHef2N7fQpt+qLjlFcnnkGQMeoZyhpt3j1mgWmscT4JnJFY907iWzmd/Rx1gCatKFBfQ/LtNR99dX/jdhEREy0LgaOx1b4+5GGfRhI5XVopSKuAX6hnsc9QNlkIdNoMOouwLsTKpHdT5HbShchKSCSY+J15LKhnfBdibSqNAJaF1FA== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com]) X-Received: from AM0PR07CA0030.eurprd07.prod.outlook.com (2603:10a6:208:ac::43) by DB4PR08MB9287.eurprd08.prod.outlook.com (2603:10a6:10:3f5::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7113.18; Thu, 21 Dec 2023 13:53:25 +0000 X-Received: from AM4PEPF00027A6C.eurprd04.prod.outlook.com (2603:10a6:208:ac:cafe::83) by AM0PR07CA0030.outlook.office365.com (2603:10a6:208:ac::43) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7113.18 via Frontend Transport; Thu, 21 Dec 2023 13:53:25 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C X-Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM4PEPF00027A6C.mail.protection.outlook.com (10.167.16.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7113.14 via Frontend Transport; Thu, 21 Dec 2023 13:53:25 +0000 X-Received: ("Tessian outbound 5d213238733f:v228"); Thu, 21 Dec 2023 13:53:25 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 4224c6cf0f6b3ccd X-CR-MTA-TID: 64aa7808 X-Received: from 7a33d766c6f7.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 79E1D576-5CF0-43CD-A0EA-651EC265D818.1; Thu, 21 Dec 2023 13:53:14 +0000 X-Received: from EUR03-AM7-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 7a33d766c6f7.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 21 Dec 2023 13:53:14 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=B5wo6Pn4sMnw+BTn13Zyn2T3Uz1WUYG9MRwbxL8IZlw/+BIuA/lXXKC2p5yO1wsZkl4h+Rqh4HEuilSorDZ+7+tRkN2aOKNupq1Ttxp/gc6Z4KXhqjSCvX1C8QAcOC5QcIErXXszEgznULMpuc5uzhCtf2figyi8+s0z+eiBBuOvh745LStFDOcfJUavYsUcGHMJgjkXaL7yC7k6S6OhyrkA8rI3554Ja29TQ7dudXtpzlrLcjPhfiP8SwUXdGt1tbHdCPl89kBlb8/Cd5zkZ+yT8P16lMTOJFzzAZ+HPwtQEysSLqLjGb/iEs6viYqEXr1SIsu6vzSAw0XUsHcZJw== 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=d8urbOt3kyC9Y+yE25hWSWTdfp0V6ePClO1NWI6mBiM=; b=k7i0VCUXlz3Ft896lvHNVcYyF+LR2LPOm+Oo0+kwl9bipXQVYwkj7KjseCZvJf6VbioJUlrDSrLojlzYaeHWhhJWucKtWKqMVpKzLBDjgxQ2pIKJ1gJKpAu7p2Z7ySvHuLrMQMuprYz2U1/L4ZHneXo1/qbXAjA6Q+eIY5j2TBnCG7wq6VyLbf93SJG9E3wXP7n1rIu8phSF6Ychy6d+M6sCq8R+80ueol0OuiNN9G3qOi1sCJZgikB1GxsiFvOkmfgoLMeme+cXKMURnEHtyHzBPizi4f1JxQ9Nhsi1m6uNrNWnJF8rgWNC0vuG+j6Iop0Rtn2n7mdcK4k5LlfPww== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-Received: from AS8PR08MB6806.eurprd08.prod.outlook.com (2603:10a6:20b:39b::12) by DU0PR08MB10367.eurprd08.prod.outlook.com (2603:10a6:10:409::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7113.18; Thu, 21 Dec 2023 13:53:11 +0000 X-Received: from AS8PR08MB6806.eurprd08.prod.outlook.com ([fe80::f36e:3882:2fce:d775]) by AS8PR08MB6806.eurprd08.prod.outlook.com ([fe80::f36e:3882:2fce:d775%4]) with mapi id 15.20.7113.019; Thu, 21 Dec 2023 13:53:11 +0000 Message-ID: Date: Thu, 21 Dec 2023 13:53:09 +0000 User-Agent: Mozilla Thunderbird Subject: Re: [edk2-devel] [Resend PATCH v5 1/4] DynamicTablesPkg: AML Code generation for word I/O ranges To: Abdul Lateef Attar , devel@edk2.groups.io Cc: Abdul Lateef Attar , Pierre Gondois , "nd@arm.com" References: <5b55e437561bb634f848050fb170b804c519c7ec.1703064925.git.AbdulLateef.Attar@amd.com> From: "Sami Mujawar" In-Reply-To: <5b55e437561bb634f848050fb170b804c519c7ec.1703064925.git.AbdulLateef.Attar@amd.com> X-ClientProxiedBy: LO4P123CA0369.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:18e::14) To AS8PR08MB6806.eurprd08.prod.outlook.com (2603:10a6:20b:39b::12) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: AS8PR08MB6806:EE_|DU0PR08MB10367:EE_|AM4PEPF00027A6C:EE_|DB4PR08MB9287:EE_ X-MS-Office365-Filtering-Correlation-Id: 6caf0a18-3208-40c7-8682-08dc022c33e5 x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: rx9yN3qiZxeP+tP7GtO689Zq3E128Sev+ZWeDafalezjLFuxWteh4NtWrtIi8ozdqplbC+uu/JZyCazbwyrwBR0GP7Brr+Oq/YvvSBKvtMaGqDEbrVwnj1Qudyrx2zRuBVtHmO40sx1p9V9sZge2HzSgG6aTlpwsrpZsIWo+RjUKp6Evxs5Jv+TKeG4TZx7yZWALX1GPjYuqtLKdsDS5VoLtwARrjhhVwzLtIQ74hFi3CoQNfmTciVRmirvUxECr7JFbLKRYxxoB/ppOWfrYy1uNNZUumrIAhF+teuXOFbz9xcsvAFFyiHvKde/6DEhVwEMqTZ+NYQaPAjEohaRRG/s4SVSKfGpmV0P2bUqHupTo9c0R3Xw4gk9yEzrlj4bQfjKxYWRX+3DKBEiMutRko0xk3pV1TND3HOCReZeas4uYMJSjfycMbWBsuP7P1G9WuWxaezAziw4kMtXx/JV9WKgovZcc0kOUQPJyvMdsO6qWPLCL/H1PRW9TYITVoH8kkILQ/4I2VPgJcERfbYKiGDLTDuy1wDh/5QALhDjmb7IPket9DHlirug8xIdepX/kvI5i3C+mpBckXHAJb8BrQGsWuxE5+EpuuC4dGBc8i3KZNUdwqS79fkF4RGg2aQc1o0wMKatORthJ641h37AuIA== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AS8PR08MB6806.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376002)(136003)(346002)(39860400002)(366004)(396003)(230922051799003)(186009)(64100799003)(451199024)(1800799012)(31686004)(41300700001)(38100700002)(66556008)(2906002)(5660300002)(8936002)(66476007)(4326008)(8676002)(54906003)(316002)(66946007)(44832011)(31696002)(26005)(86362001)(6512007)(36756003)(83380400001)(6506007)(6486002)(2616005)(478600001)(53546011)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR08MB10367 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM4PEPF00027A6C.eurprd04.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: e9c32f83-6241-43fd-eb11-08dc022c2b47 X-Microsoft-Antispam-Message-Info: fXcgMS94JcMCQIJJM4o9dfPVqMCdXDZmLD1uq9jmX/KTNjvRgLlhvjwA6wQUGCmLnQxLqBcwiGiKJ0PKda/nt51lPY+GPguNl4Kqr1GoPdgfzP9b+xckQ8lgbVRTtKytjCmumBwR0Fs5E+U4B+BKaVtbuWVaXzW810KEFYdVE9dXrEBj8QcSsCk/f5js+EAxvtpKnb5UWkm5bTmUi6Q5zEq2TGimd/2khMe/Gj9/MugUgXEY3wrJugC3N4kksUEHB9CyDGH+LlnocD+/7AwOKgVAlXrIwExg4OOLIJ0jlYLu5dzDC7Q0KlqIgkTEAUswgWPaDAXX2Xpj0jBxEIIEjq2j3NaRz2N59CcxcRsfJO4po5MMzqQ5UlvtxUL1a4MHFxtY4MrDkHBmvtzYE2DND0uXZFYf6E9nEeDE8JgvAInZxyzrp6H+ktMoH5TeLfFP+ulNkA2gCLqEGoK6bg+G1uAa95MZNOOLp+mVn8XTy1P+41KvdERd5bWb5GzCVq1JnZoFFW9oFUGrDxV+hu366SfXitcN9XsiYwE2Y1gTo4bzYT8AwIZxnXU83loReRe+JqbkvW/COWHAGLb/uFXnoUaonx8uihCnkSZqnPe+ySclOndp668BbHP9EtY2mS0g/PlR1itHH5aT58ac97e2bfUo14KWEbB9nuzbvcQHFNg9PbQ1dxBoAP4fN+qVdyDSZR5IbFez6orzbBbvgW2Ck3K9HUO5jOQpQN1jtB9eyNY50y5BgyA95zRPR7YitmXq X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Dec 2023 13:53:25.1639 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6caf0a18-3208-40c7-8682-08dc022c33e5 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AM4PEPF00027A6C.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB4PR08MB9287 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,sami.mujawar@arm.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: 5zsjYT15dWs7b6ZAsnomIwQwx7686176AA= Content-Language: en-GB Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=jwXinlGh; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=arm.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; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}") Hi Abdul, Thank you for this patch. These changes look good to me. Reviewed-by: Sami Mujawar Regards, Sami Mujawar On 20/12/2023 09:38 am, Abdul Lateef Attar wrote: > From: Abdul Lateef Attar > > Add helper functions to generate AML resource data > for word I/O. > > Cc: Pierre Gondois > Cc: Sami Mujawar > Signed-off-by: Abdul Lateef Attar > Reviewed-by: Pierre Gondois > --- > .../Include/Library/AmlLib/AmlLib.h | 65 ++++++++++++++ > .../AmlLib/CodeGen/AmlResourceDataCodeGen.c | 88 +++++++++++++++++++ > 2 files changed, 153 insertions(+) > > diff --git a/DynamicTablesPkg/Include/Library/AmlLib/AmlLib.h b/DynamicTa= blesPkg/Include/Library/AmlLib/AmlLib.h > index 71e8539b30..5e340b94ce 100644 > --- a/DynamicTablesPkg/Include/Library/AmlLib/AmlLib.h > +++ b/DynamicTablesPkg/Include/Library/AmlLib/AmlLib.h > @@ -2,6 +2,7 @@ > AML Lib. > =20 > Copyright (c) 2019 - 2021, Arm Limited. All rights reserved.
> + Copyright (C) 2023 Advanced Micro Devices, Inc. All rights reserved. > =20 > SPDX-License-Identifier: BSD-2-Clause-Patent > **/ > @@ -724,6 +725,70 @@ AmlCodeGenRdWordBusNumber ( > OUT AML_DATA_NODE_HANDLE *NewRdNode OPTIONAL > ); > =20 > +/** Code generation for the "WordIO ()" ASL function. > + > + The Resource Data effectively created is a Word Address Space Resource > + Data. Cf ACPI 6.5: > + - s6.4.3.5.3 "Word Address Space Descriptor". > + > + The created resource data node can be: > + - appended to the list of resource data elements of the NameOpNode. > + In such case NameOpNode must be defined by a the "Name ()" ASL stat= ement > + and initially contain a "ResourceTemplate ()". > + - returned through the NewRdNode parameter. > + > + @param [in] IsResourceConsumer ResourceUsage parameter. > + @param [in] IsMinFixed Minimum address is fixed. > + @param [in] IsMaxFixed Maximum address is fixed. > + @param [in] IsPosDecode Decode parameter > + @param [in] IsaRanges Possible values are: > + 0-Reserved > + 1-NonISAOnly > + 2-ISAOnly > + 3-EntireRange > + @param [in] AddressGranularity Address granularity. > + @param [in] AddressMinimum Minimum address. > + @param [in] AddressMaximum Maximum address. > + @param [in] AddressTranslation Address translation. > + @param [in] RangeLength Range length. > + @param [in] ResourceSourceIndex Resource Source index. > + Not supported. Must be 0. > + @param [in] ResourceSource Resource Source. > + Not supported. Must be NULL. > + @param [in] IsDenseTranslation TranslationDensity parameter. > + @param [in] IsTypeStatic TranslationType parameter. > + @param [in] NameOpNode NameOp object node defining a named = object. > + If provided, append the new resource= data > + node to the list of resource data el= ements > + of this node. > + @param [out] NewRdNode If provided and success, > + contain the created node. > + > + @retval EFI_SUCCESS The function completed successfully. > + @retval EFI_INVALID_PARAMETER Invalid parameter. > + @retval EFI_OUT_OF_RESOURCES Could not allocate memory. > +**/ > +EFI_STATUS > +EFIAPI > +AmlCodeGenRdWordIo ( > + IN BOOLEAN IsResourceConsumer, > + IN BOOLEAN IsMinFixed, > + IN BOOLEAN IsMaxFixed, > + IN BOOLEAN IsPosDecode, > + IN UINT8 IsaRanges, > + IN UINT16 AddressGranularity, > + IN UINT16 AddressMinimum, > + IN UINT16 AddressMaximum, > + IN UINT16 AddressTranslation, > + IN UINT16 RangeLength, > + IN UINT8 ResourceSourceIndex, > + IN CONST CHAR8 *ResourceSource, > + IN BOOLEAN IsDenseTranslation, > + IN BOOLEAN IsTypeStatic, > + IN AML_OBJECT_NODE_HANDLE NameOpNode, OPTIONAL > + OUT AML_DATA_NODE_HANDLE *NewRdNode OPTIONAL > + ); > + > /** Code generation for the "QWordIO ()" ASL function. > =20 > The Resource Data effectively created is a QWord Address Space Resour= ce > diff --git a/DynamicTablesPkg/Library/Common/AmlLib/CodeGen/AmlResourceDa= taCodeGen.c b/DynamicTablesPkg/Library/Common/AmlLib/CodeGen/AmlResourceDat= aCodeGen.c > index 0bc1c1d119..60fe69ba6d 100644 > --- a/DynamicTablesPkg/Library/Common/AmlLib/CodeGen/AmlResourceDataCodeG= en.c > +++ b/DynamicTablesPkg/Library/Common/AmlLib/CodeGen/AmlResourceDataCodeG= en.c > @@ -2,6 +2,7 @@ > AML Resource Data Code Generation. > =20 > Copyright (c) 2020 - 2021, Arm Limited. All rights reserved.
> + Copyright (C) 2023 Advanced Micro Devices, Inc. All rights reserved. > =20 > SPDX-License-Identifier: BSD-2-Clause-Patent > =20 > @@ -878,6 +879,93 @@ AmlCodeGenRdWordBusNumber ( > ); > } > =20 > +/** Code generation for the "WordIO ()" ASL function. > + > + The Resource Data effectively created is a Word Address Space Resource > + Data. Cf ACPI 6.5: > + - s6.4.3.5.3 "Word Address Space Descriptor". > + > + The created resource data node can be: > + - appended to the list of resource data elements of the NameOpNode. > + In such case NameOpNode must be defined by a the "Name ()" ASL stat= ement > + and initially contain a "ResourceTemplate ()". > + - returned through the NewRdNode parameter. > + > + @param [in] IsResourceConsumer ResourceUsage parameter. > + @param [in] IsMinFixed Minimum address is fixed. > + @param [in] IsMaxFixed Maximum address is fixed. > + @param [in] IsPosDecode Decode parameter > + @param [in] IsaRanges Possible values are: > + 0-Reserved > + 1-NonISAOnly > + 2-ISAOnly > + 3-EntireRange > + @param [in] AddressGranularity Address granularity. > + @param [in] AddressMinimum Minimum address. > + @param [in] AddressMaximum Maximum address. > + @param [in] AddressTranslation Address translation. > + @param [in] RangeLength Range length. > + @param [in] ResourceSourceIndex Resource Source index. > + Not supported. Must be 0. > + @param [in] ResourceSource Resource Source. > + Not supported. Must be NULL. > + @param [in] IsDenseTranslation TranslationDensity parameter. > + @param [in] IsTypeStatic TranslationType parameter. > + @param [in] NameOpNode NameOp object node defining a named = object. > + If provided, append the new resource= data > + node to the list of resource data el= ements > + of this node. > + @param [out] NewRdNode If provided and success, > + contain the created node. > + > + @retval EFI_SUCCESS The function completed successfully. > + @retval EFI_INVALID_PARAMETER Invalid parameter. > + @retval EFI_OUT_OF_RESOURCES Could not allocate memory. > +**/ > +EFI_STATUS > +EFIAPI > +AmlCodeGenRdWordIo ( > + IN BOOLEAN IsResourceConsumer, > + IN BOOLEAN IsMinFixed, > + IN BOOLEAN IsMaxFixed, > + IN BOOLEAN IsPosDecode, > + IN UINT8 IsaRanges, > + IN UINT16 AddressGranularity, > + IN UINT16 AddressMinimum, > + IN UINT16 AddressMaximum, > + IN UINT16 AddressTranslation, > + IN UINT16 RangeLength, > + IN UINT8 ResourceSourceIndex, > + IN CONST CHAR8 *ResourceSource, > + IN BOOLEAN IsDenseTranslation, > + IN BOOLEAN IsTypeStatic, > + IN AML_OBJECT_NODE_HANDLE NameOpNode, OPTIONAL > + OUT AML_DATA_NODE_HANDLE *NewRdNode OPTIONAL > + ) > +{ > + return AmlCodeGenRdWordSpace ( > + ACPI_ADDRESS_SPACE_TYPE_IO, > + IsResourceConsumer, > + IsPosDecode, > + IsMinFixed, > + IsMaxFixed, > + RdIoRangeSpecificFlags ( > + IsaRanges, > + IsDenseTranslation, > + IsTypeStatic > + ), > + AddressGranularity, > + AddressMinimum, > + AddressMaximum, > + AddressTranslation, > + RangeLength, > + ResourceSourceIndex, > + ResourceSource, > + NameOpNode, > + NewRdNode > + ); > +} > + > /** Code generation for the "QWordSpace ()" ASL function. > =20 > The Resource Data effectively created is a QWord Address Space Resour= ce -=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 (#112814): https://edk2.groups.io/g/devel/message/112814 Mute This Topic: https://groups.io/mt/103278518/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-