From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (EUR05-DB8-obe.outbound.protection.outlook.com [40.107.20.88]) by mx.groups.io with SMTP id smtpd.web11.7316.1666183960951789497 for ; Wed, 19 Oct 2022 05:52:42 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=ewidsYch; spf=pass (domain: arm.com, ip: 40.107.20.88, mailfrom: sami.mujawar@arm.com) ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=lQxKWF+KA6oqFa73yZAVtNADI3LPCccrr0oEqQPMIe918u2tmshXNSjC+gDvtP/6eNdywo63jWwC00TQNppNZ0DC4SucmarVEOAAvRFcLnK1szr1+wgoQ2L0jT0XXVQZnglhjEb2k5SelXLNFk/ujwzFQPkP/0tY1AKL2suk8N1c7bd3ksSyPZ47Tn87ltPZiB+ZWuc6uTEqCySZ9g6ccvS0PxpHObTjGr19l/rBRND3t9SodhRCQi/w02ZCoxru7KWZsStzgb7j2WgnXAny392oGDviE4j8ABHTcEL088g7n3oKNYpyoyxLdghGucVnK8WOzoSG9UVvMXhVie/I/A== 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=di8PIeRpeooTjh2qBBW+Elw7PJqjo0qZUVjKcsRAT4c=; b=Vjr9jFc567AAQLZsawKgjHMrXrYtA2O2nSfkVnJysbNcn1mCdkP5qjwlMDtY1WvJ5FyZoCMcOqUgjKzKKhxeabWS1B+eVnVk71kSjR5bIMIosIkyQ9d+UlVxObpK2qr5hyXPVdhbwB39ErJ/Z+KMmh/fgrhPm8OVjqMLWZPztisn7Ckd3KIQYxtCbPhafV5vbbtRlY37lQT27QOFWyWGl0cNRF3FyaSr3x6T+VaMosiHODDCxEgAKBVmckfmSB7CIjmswNZkuW1EYybNsRrvmml59qwucX35yExDapOavq9trEJ7xUEmB7g0biPNwpRStLPODRDJS/JsoYS46Fun5w== 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]) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=di8PIeRpeooTjh2qBBW+Elw7PJqjo0qZUVjKcsRAT4c=; b=ewidsYchsNF8JLxF0SpkYJLLaIiEjFPGEJ7cePWYFwpcli+jkcf8SFI6vgUodU2mJM9OhBI/87M/P+rQWTjDiMWNsUioLvZcYuIG8inDXOpY6lLkGOJEq1HGzauISgZLvUdeOsbo8iDL+xra6wpSBedFKEydHSymTcAhai7ZY5k= Received: from DB6PR07CA0185.eurprd07.prod.outlook.com (2603:10a6:6:42::15) by DU0PR08MB9051.eurprd08.prod.outlook.com (2603:10a6:10:470::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.34; Wed, 19 Oct 2022 12:52:38 +0000 Received: from DBAEUR03FT010.eop-EUR03.prod.protection.outlook.com (2603:10a6:6:42:cafe::c8) by DB6PR07CA0185.outlook.office365.com (2603:10a6:6:42::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.16 via Frontend Transport; Wed, 19 Oct 2022 12:52:38 +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 Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DBAEUR03FT010.mail.protection.outlook.com (100.127.142.78) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5709.10 via Frontend Transport; Wed, 19 Oct 2022 12:52:37 +0000 Received: ("Tessian outbound 6c699027a257:v130"); Wed, 19 Oct 2022 12:52:37 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 232574866e39cb14 X-CR-MTA-TID: 64aa7808 Received: from 9628d36669fb.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 803DEB36-1D0F-4D79-86AB-2E14CB1880F6.1; Wed, 19 Oct 2022 12:52:30 +0000 Received: from EUR02-DB5-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 9628d36669fb.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 19 Oct 2022 12:52:30 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CESRYips8ptIW18sal5IKhW3jBSmGovjJO1NyRQeBMmy76BXVRQF8yv1iiF+DWFGR0mOH3kUHJ37OMIRxKdML8U4ayzcblprp5P/f18i3HaE0tMt0nbsgTIeTnxUXoKZvdSVo8cl0/0w5XiT+17kfdtR1XOgCfe1Ji+qZbhxVEOG63rVtVdJIdaHRfHIVgXmRctrb12iog73T+FhObVyQJGHhwxoSUfCdhdjAAjMSu3XYkV4pK5Kapgrc+gMb8d0pWTMtbhTX9FRaYmOIM492T1GBMH94cwi18VKcC7hwOjAcIolu8xzqgwcKhGy2aHeVVY+z9+ZPNDMCM60w7vqkg== 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=di8PIeRpeooTjh2qBBW+Elw7PJqjo0qZUVjKcsRAT4c=; b=czQYgwaYfoFCseiFVlZzg/2ebStQyn8OaUO3e3U6/4KpsqeTo64Ue2ZAdr4qDRvk+X/MNk5j6Rz7KwXr/TFRuVIQ/0EZUSp/8Po6Rinx0AqDGOUcXKypTBwCgbqLsp2khrvXC040fthi+UzvOzOBwfg2s4myUwXiOAKT66gW9rA2CxxBuqVOrbOpLDe5Y9iGMmsSCuqmTfCzCAgl+p9XNGdWhtRyzXlAbjzMICr+FuN5iOErAManS3msoFJoL0WmzYl4X6hQYb0jlS7FnQUJQo48bnVQ3pseN2feVZt7FBevOneadcs7Id4Jb5TPUSRbSpCD+PAcQtTrhij3ZBVxIg== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=di8PIeRpeooTjh2qBBW+Elw7PJqjo0qZUVjKcsRAT4c=; b=ewidsYchsNF8JLxF0SpkYJLLaIiEjFPGEJ7cePWYFwpcli+jkcf8SFI6vgUodU2mJM9OhBI/87M/P+rQWTjDiMWNsUioLvZcYuIG8inDXOpY6lLkGOJEq1HGzauISgZLvUdeOsbo8iDL+xra6wpSBedFKEydHSymTcAhai7ZY5k= Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; Received: from AS8PR08MB6806.eurprd08.prod.outlook.com (2603:10a6:20b:39b::12) by DB9PR08MB6650.eurprd08.prod.outlook.com (2603:10a6:10:26d::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.30; Wed, 19 Oct 2022 12:52:24 +0000 Received: from AS8PR08MB6806.eurprd08.prod.outlook.com ([fe80::283c:fe2e:699d:2bf]) by AS8PR08MB6806.eurprd08.prod.outlook.com ([fe80::283c:fe2e:699d:2bf%5]) with mapi id 15.20.5723.033; Wed, 19 Oct 2022 12:52:24 +0000 Message-ID: <0d8b82d3-83ce-e8a8-468a-c41907f015d6@arm.com> Date: Wed, 19 Oct 2022 13:52:23 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.3.3 Subject: Re: [PATCH edk2-platforms 2/4] Platform/ARM: create local definition of NorFlashPlatformLib To: Ard Biesheuvel , devel@edk2.groups.io Cc: Leif Lindholm , Thomas Abraham , "nd@arm.com" References: <20221019103555.493477-1-ardb@kernel.org> <20221019103555.493477-3-ardb@kernel.org> From: "Sami Mujawar" In-Reply-To: <20221019103555.493477-3-ardb@kernel.org> X-ClientProxiedBy: LO2P265CA0389.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:f::17) To AS8PR08MB6806.eurprd08.prod.outlook.com (2603:10a6:20b:39b::12) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: AS8PR08MB6806:EE_|DB9PR08MB6650:EE_|DBAEUR03FT010:EE_|DU0PR08MB9051:EE_ X-MS-Office365-Filtering-Correlation-Id: e1523d28-a724-429a-6c03-08dab1d0cd29 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: vzRJuj1PM15heGUHUb6YiCxSqCG5moxK8j2p4LxGcvR42AkHcrD6V095s5SHE++o77taomca6y/5Gg3ebUImuZ5NhCEF7eqYsQrVLnvFXNdUGr6Gb+I9iePw+tNUvK6Uor7/6ic/vDQeQA6oJXY8GA0m1WuddX2gfPO6vXplO/LllOOf20ma71bH5QHMVJCjOQWpYPiozdi5aPjSi6YRsl4Q3upduuZMxtgeLPXU9H7HSeDr5o7CzERBrNflNIerks3IV/Wxk+uc49irK3bCWR7ty/yB+tiV2qaqVaOZN0icNBljneFwqqUzEFuvBXkLAwD2mm7YBAneWDUv+KgbstJ2x2Epu38JZ63Ywbo80PsRHZI0myKkxyyjPh30yL1DdXpYuTzYWaxu9Ylu0VwFmALvgTxjlhpnNsy2KLDT9V/U40Zt8TKot9jnzeDDcuB1POYo3TJdy26RoGSqtqiV3oQtg54+PRzYexXSUXD5874q281+NB+DUfnqpKrD0uNUxx6cAcoPWIwel+IeX48UwnGVvl19+76ZEWkF42Y+23hR0u6dM8DRB+t2mC56AfP5OFNxtwJ3YYCZPhdsvPUMI7SMI9kNdhc3UluTWLsSoRon3N5RNK49TavtCtGyKiOXrDWhpU75UlHJYTpCB8g1CTps/HiF5Mu4j8Xw1TPewAbkw849rhsZaBxbrfb54c8jH5yBIV0IwEuE9PE6HQAcyXkvIVqGN+ZtcUOvBPhvnB107Daz/m5MrbZHOPm94ZYAg4j4eneV5u2vRr/FsuF7a9slTscFWGJqq6gf65IcRhokRl6kRScZu0Q74BnrwXSF 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:(13230022)(4636009)(39860400002)(396003)(346002)(376002)(136003)(366004)(451199015)(4326008)(66946007)(66476007)(8676002)(54906003)(316002)(2616005)(6506007)(66556008)(186003)(5660300002)(44832011)(86362001)(83380400001)(2906002)(31696002)(26005)(41300700001)(53546011)(36756003)(6512007)(8936002)(31686004)(478600001)(6486002)(38100700002)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR08MB6650 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; Return-Path: Sami.Mujawar@arm.com X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DBAEUR03FT010.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: b305bb70-d68b-439a-286f-08dab1d0c515 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6qJ3JRTFAl2PjH2pWEZXaPoaS6VyF3+Ern21GMt82Hfa0HcAt1dOQNC5MEhSycHYZCLGWN6ekS9ZSdJr6JDexEP4mgxuu5HutFQ4Q65wo25AsLM1f+0aT74CHcPuxp7YuRB6nim3XsvVnzTawzUDkeqBlmi55KFRRkGwlhOHaljS7KBe1vKs2DijJSb0uUFIprpiFzxx/xfskJ/hvxrD2CFe/7ZVDOl/F3TYJkrO0Fm/byAPZsYHIxqKz1KnqJnTJGvHsI8y/mgr2I7NqFWINLRsLJmUFnjrGIzAexzOnZtH8HxyiaCovswJ9wDcYoYAGMXps+8kBwX9fY7ja9aJ1Dq4VuVunW0mzV0xSLtjO0ldd1vt3T+tWJMNSgI+xNB/pIT2b2PkvYjnD8qPWJ0My1yfxeiQvENdrNyeKjHZFSKpirx050UY1aMVJtRKCLP0k3p2RFAnN1fEvcr7y37S4YpUurxm2qjrgr3GKAesTU2OoQXUG+YwLK5ckfnsH8rnqKChItqnj2cqdlAQyf2+9WieEwdYymmZXzTL2tUYYXtg1WiF04y6HwUQ15Bn3v7yBRlvFmIg4WQfJtaO1+NM4BiWZ35Vi3rBPXclHe1S6wCtShzHvysFJHnRzgrP1DrC1oTxhNwy8NPd4Vx7i4uFT19uCdVBwbM49Ap6eK5D87aolh3wcOyMsihACG59TMzyWHYdD0EqpDl/8wDjPdfbI1lLpjyuLM88jY9KxAZ24+QS0YRSVdqrv2qTUIVJpFhOygeAKz5RNV6HE4xxWNXd+RQmSIDTnGdQGUKA8GvmBDnN09W0dr83J86WZt5atLW9X9dIrjiuM1D5ciYt1p4d5A== X-Forefront-Antispam-Report: CIP:63.35.35.123;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:64aa7808-outbound-1.mta.getcheckrecipient.com;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;CAT:NONE;SFS:(13230022)(4636009)(346002)(136003)(39860400002)(376002)(396003)(451199015)(40470700004)(36840700001)(46966006)(44832011)(4326008)(5660300002)(54906003)(53546011)(6506007)(8676002)(70586007)(70206006)(36756003)(8936002)(316002)(6512007)(26005)(41300700001)(36860700001)(81166007)(82740400003)(356005)(82310400005)(2616005)(40480700001)(47076005)(40460700003)(336012)(186003)(2906002)(31696002)(86362001)(83380400001)(478600001)(31686004)(6486002)(43740500002);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Oct 2022 12:52:37.9704 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e1523d28-a724-429a-6c03-08dab1d0cd29 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: DBAEUR03FT010.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR08MB9051 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi Ard, Thank you for this patch. The patch at 'https://edk2.groups.io/g/devel/message/95239' is moving the NorFlashPlatformLib.h to MdePkg/Include/Library/NorFlashPlatformLib.h. Is the plan to drop Platform/ARM/Include/Library/NorFlashPlatformLib.h once the MdePkg patch is merged? Other than that, these changes look good to me. Reviewed-by: Sami Mujawar Regards, Sami Mujawar On 19/10/2022 11:35 am, Ard Biesheuvel wrote: > The version of NorFlashPlatformLib defined in ArmPlatformPkg will go > away once we retire its version of NorFlashDxe, so switch to a local > Platform/ARM version instead. > > Signed-off-by: Ard Biesheuvel > --- > Platform/ARM/ARM.dec | 1 + > Platform/ARM/JunoPkg/Library/NorFlashJunoLib/NorFlashJunoLib.inf | 2 +- > Platform/ARM/SgiPkg/Library/NorFlashLib/NorFlashLib.inf | 2 +- > Platform/ARM/SgiPkg/Library/NorFlashLib/StandaloneMmNorFlashLib.inf | 2 +- > Platform/ARM/Include/Library/NorFlashPlatformLib.h | 30 ++++++++++++++++++++ > 5 files changed, 34 insertions(+), 3 deletions(-) > > diff --git a/Platform/ARM/ARM.dec b/Platform/ARM/ARM.dec > index 5175b313f95a..cf1c8ef04742 100644 > --- a/Platform/ARM/ARM.dec > +++ b/Platform/ARM/ARM.dec > @@ -17,6 +17,7 @@ [Includes] > > > [LibraryClasses] > > BdsLib|Include/Library/BdsLib.h > > + NorFlashPlatformLib|Include/Library/NorFlashPlatformLib.h > > > > [Guids] > > gArmBootMonFsFileInfoGuid = { 0x41e26b9c, 0xada6, 0x45b3, { 0x80, 0x8e, 0x23, 0x57, 0xa3, 0x5b, 0x60, 0xd6 } } > > diff --git a/Platform/ARM/JunoPkg/Library/NorFlashJunoLib/NorFlashJunoLib.inf b/Platform/ARM/JunoPkg/Library/NorFlashJunoLib/NorFlashJunoLib.inf > index e5e5628de387..1a38bf81b349 100644 > --- a/Platform/ARM/JunoPkg/Library/NorFlashJunoLib/NorFlashJunoLib.inf > +++ b/Platform/ARM/JunoPkg/Library/NorFlashJunoLib/NorFlashJunoLib.inf > @@ -17,8 +17,8 @@ [Sources.common] > NorFlashJuno.c > > > > [Packages] > > - ArmPlatformPkg/ArmPlatformPkg.dec > > MdePkg/MdePkg.dec > > + Platform/ARM/ARM.dec > > Platform/ARM/JunoPkg/ArmJuno.dec > > > > [LibraryClasses] > > diff --git a/Platform/ARM/SgiPkg/Library/NorFlashLib/NorFlashLib.inf b/Platform/ARM/SgiPkg/Library/NorFlashLib/NorFlashLib.inf > index 74486eacd009..06068db0e4f3 100644 > --- a/Platform/ARM/SgiPkg/Library/NorFlashLib/NorFlashLib.inf > +++ b/Platform/ARM/SgiPkg/Library/NorFlashLib/NorFlashLib.inf > @@ -18,8 +18,8 @@ [Sources.common] > NorFlashLib.c > > > > [Packages] > > - ArmPlatformPkg/ArmPlatformPkg.dec > > MdePkg/MdePkg.dec > > + Platform/ARM/ARM.dec > > Platform/ARM/SgiPkg/SgiPlatform.dec > > > > [LibraryClasses] > > diff --git a/Platform/ARM/SgiPkg/Library/NorFlashLib/StandaloneMmNorFlashLib.inf b/Platform/ARM/SgiPkg/Library/NorFlashLib/StandaloneMmNorFlashLib.inf > index 96bbf1e42313..54b3cb041645 100644 > --- a/Platform/ARM/SgiPkg/Library/NorFlashLib/StandaloneMmNorFlashLib.inf > +++ b/Platform/ARM/SgiPkg/Library/NorFlashLib/StandaloneMmNorFlashLib.inf > @@ -19,8 +19,8 @@ [Sources.common] > StandaloneMmNorFlashLib.c > > > > [Packages] > > - ArmPlatformPkg/ArmPlatformPkg.dec > > MdePkg/MdePkg.dec > > + Platform/ARM/ARM.dec > > Platform/ARM/SgiPkg/SgiPlatform.dec > > > > [LibraryClasses] > > diff --git a/Platform/ARM/Include/Library/NorFlashPlatformLib.h b/Platform/ARM/Include/Library/NorFlashPlatformLib.h > new file mode 100644 > index 000000000000..6ef5b70e9948 > --- /dev/null > +++ b/Platform/ARM/Include/Library/NorFlashPlatformLib.h > @@ -0,0 +1,30 @@ > +/** @file > > + > > + Copyright (c) 2011-2012, ARM Ltd. All rights reserved.
> > + > > + SPDX-License-Identifier: BSD-2-Clause-Patent > > + > > + **/ > > + > > +#ifndef _NORFLASHPLATFORMLIB_H_ > > +#define _NORFLASHPLATFORMLIB_H_ > > + > > +typedef struct { > > + UINTN DeviceBaseAddress; // Start address of the Device Base Address (DBA) > > + UINTN RegionBaseAddress; // Start address of one single region > > + UINTN Size; > > + UINTN BlockSize; > > +} NOR_FLASH_DESCRIPTION; > > + > > +EFI_STATUS > > +NorFlashPlatformInitialization ( > > + VOID > > + ); > > + > > +EFI_STATUS > > +NorFlashPlatformGetDevices ( > > + OUT NOR_FLASH_DESCRIPTION **NorFlashDescriptions, > > + OUT UINT32 *Count > > + ); > > + > > +#endif /* _NORFLASHPLATFORMLIB_H_ */ >