From patchwork Wed Aug 30 08:21:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 111270 Delivered-To: patch@linaro.org Received: by 10.37.128.210 with SMTP id c18csp552395ybm; Wed, 30 Aug 2017 01:21:24 -0700 (PDT) X-Google-Smtp-Source: ADKCNb5EDyCQfdXnL/WgNF4cM0CMUUPYf8Ji+vBCxepJmcVly9whlkcOLd7cBJK0AwXGyOM+ztuM X-Received: by 10.84.217.135 with SMTP id p7mr973585pli.170.1504081284142; Wed, 30 Aug 2017 01:21:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1504081284; cv=none; d=google.com; s=arc-20160816; b=QrR/LW7luJKCw4XYCobKAsljoRGs3vr43UrDdaoKcsfZLA4Gi4jUuFxeiMkACA54t0 FtV/CashEF+tbtZ8sNNa9cboZ2F7/Z/dkm7T4lL/4JRp9Re52LN4VA7Qpa+cyNZw+fMs gEWiexq60ybUv7fPlDAjdDsRS/T+nq0x17R+X8QrOiv7J/qTUOg5Jn4+cV+E5+jiWjKO h5QygNylxkAP4iIffor1JbtolcyLNhoAAI+ezfWGwOZ9a2FanPYupXnVeNtVB3viM6NP qf5RLltGE6f77UmfLCMIRNfB4gPqZGLWyVsEkPYnz4Ubag2jaEC8X24zw9max5GwHTt3 9M+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=6MCVGd1fYlawR7bqWQCjWrAys7BcRWc3fQtjTjSAlS8=; b=FbyRhJqjab2L4+6KbXUEg6wQphnkVXv1NN67UoclmuL0h730z1cduOr0sofu2Wwz14 l5FMvH8DStec4/FXaX37zv7+C1jfKIG+4/BXRH9CyZVYQCgCAWkXyoPZx+odleOVZxe/ 1gxsTo6TWuSGbUaIV7pJ42OCfEErrs4V4h7ay65KynX5u0L6ITKUKn5nW9Io8kS1TZO6 82fmuFylqNhz5H8rgXirs2Lrx3Y73fX1gzIWyhWPb01zCUn0fVGCWBcoBi/H6V0hntXU JLyWyujAw4zoQH+KWgSHb7UlgtWL3Apoe6nJU1bEfa/HEDzcHqv431c5iBEGS6ITNgxr SCxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=KI0SxcMq; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id y14si3938822pfa.367.2017.08.30.01.21.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Aug 2017 01:21:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) client-ip=2001:19d0:306:5::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=KI0SxcMq; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 02F4921E95E18; Wed, 30 Aug 2017 01:18:41 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received: from mail-wr0-x22f.google.com (mail-wr0-x22f.google.com [IPv6:2a00:1450:400c:c0c::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 2275421E95E11 for ; Wed, 30 Aug 2017 01:18:38 -0700 (PDT) Received: by mail-wr0-x22f.google.com with SMTP id j29so15396670wre.2 for ; Wed, 30 Aug 2017 01:21:19 -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; bh=mrT7UhGcKB0nUxxC+2EHq3NEDxmSeoKA38UjCQL4iMs=; b=KI0SxcMqMPgP1M7HhEKVkajSDq99coP2IYUPHv44OxEvQU321oFi2r8VKh4LBSIpF9 ZF+XIdAgBiCNYAPlYgkWtLU6EKIfAeedGiLOYFVHtDFv8Cdp+8vvv5QG1aoOR2OUoBFf aU9CKCMOV5QMWQ7MokbD8wj0zW4IaMe3hLH/g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=mrT7UhGcKB0nUxxC+2EHq3NEDxmSeoKA38UjCQL4iMs=; b=oA69riFvzCdKpKVkBD9VmCEAuGqDs4Uqqgag51hg4btenDBUtDKdV4ebI4QNlN6tzR +F0BvXYex6Ob3qbPTHzJzftoisrrPKJ6sGDFpPPMH6dwsym4t0TxAAj5BcuJstzJ+TN4 +Ehxw2rk9/+445QKCChXNGGmZzc0pkkh+s23AFsIL1xlqA+TSGPD7q00GWN0/YahwSlO UjDwIs9s5K25TP28QMACLTWfV8S5U2wXjruiMwufslu2cF/p1J8X9PlN6MXjpQMN1la7 5w00VIE6gvcB9hMiPNge6XDXwS4QxCcVfiSzNZj0J7JXimOBIbzuR8PYUNWvqLaKOZqw 1YXw== X-Gm-Message-State: AHYfb5inVLNQm3BKCkSdI7p50xtffPFQ1CcX0dw5oiHkGs5KErczdzVW xKxexX3j1nqUCagctfvVQg== X-Received: by 10.223.134.161 with SMTP id 30mr509792wrx.147.1504081277843; Wed, 30 Aug 2017 01:21:17 -0700 (PDT) Received: from localhost.localdomain ([105.133.189.215]) by smtp.gmail.com with ESMTPSA id h8sm3051642wma.46.2017.08.30.01.21.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Aug 2017 01:21:17 -0700 (PDT) From: Ard Biesheuvel To: edk2-devel@lists.01.org, leif.lindholm@linaro.org Date: Wed, 30 Aug 2017 09:21:03 +0100 Message-Id: <20170830082108.7470-2-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170830082108.7470-1-ard.biesheuvel@linaro.org> References: <20170830082108.7470-1-ard.biesheuvel@linaro.org> Subject: [edk2] [PATCH 1/6] EmbeddedPkg: rename NullDmaLib to CoherentDmaLib X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ard Biesheuvel MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Rename NullDmaLib to CoherentDmaLib to better reflect its nature, and to better convey the fact that it actually serves a useful purpose, i.e., as a DmaLib library class resolution for drivers that control hardware that may only be cache coherent or in some cases (i.e., on some platforms but not on others). Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- EmbeddedPkg/EmbeddedPkg.dsc | 2 +- EmbeddedPkg/Library/{NullDmaLib/NullDmaLib.c => CoherentDmaLib/CoherentDmaLib.c} | 0 EmbeddedPkg/Library/{NullDmaLib/NullDmaLib.inf => CoherentDmaLib/CoherentDmaLib.inf} | 20 ++++++-------------- 3 files changed, 7 insertions(+), 15 deletions(-) -- 2.11.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Reviewed-by: Leif Lindholm diff --git a/EmbeddedPkg/EmbeddedPkg.dsc b/EmbeddedPkg/EmbeddedPkg.dsc index 4a34e34843ad..84c5a842e37e 100644 --- a/EmbeddedPkg/EmbeddedPkg.dsc +++ b/EmbeddedPkg/EmbeddedPkg.dsc @@ -250,7 +250,7 @@ [Components.common] EmbeddedPkg/Library/TemplateResetSystemLib/TemplateResetSystemLib.inf EmbeddedPkg/Library/TemplateRealTimeClockLib/TemplateRealTimeClockLib.inf EmbeddedPkg/Library/LzmaHobCustomDecompressLib/LzmaHobCustomDecompressLib.inf - EmbeddedPkg/Library/NullDmaLib/NullDmaLib.inf + EmbeddedPkg/Library/CoherentDmaLib/CoherentDmaLib.inf EmbeddedPkg/Library/DxeDtPlatformDtbLoaderLibDefault/DxeDtPlatformDtbLoaderLibDefault.inf EmbeddedPkg/Ebl/Ebl.inf diff --git a/EmbeddedPkg/Library/NullDmaLib/NullDmaLib.c b/EmbeddedPkg/Library/CoherentDmaLib/CoherentDmaLib.c similarity index 100% rename from EmbeddedPkg/Library/NullDmaLib/NullDmaLib.c rename to EmbeddedPkg/Library/CoherentDmaLib/CoherentDmaLib.c diff --git a/EmbeddedPkg/Library/NullDmaLib/NullDmaLib.inf b/EmbeddedPkg/Library/CoherentDmaLib/CoherentDmaLib.inf similarity index 78% rename from EmbeddedPkg/Library/NullDmaLib/NullDmaLib.inf rename to EmbeddedPkg/Library/CoherentDmaLib/CoherentDmaLib.inf index 38261d5ede2b..c40a600cf6a3 100644 --- a/EmbeddedPkg/Library/NullDmaLib/NullDmaLib.inf +++ b/EmbeddedPkg/Library/CoherentDmaLib/CoherentDmaLib.inf @@ -1,6 +1,8 @@ #/** @file # # Copyright (c) 2008 - 2010, Apple Inc. All rights reserved.
+# Copyright (c) 2017, Linaro, Ltd. All rights reserved.
+# # This program and the accompanying materials # are licensed and made available under the terms and conditions of the BSD License # which accompanies this distribution. The full text of the license may be found at @@ -12,15 +14,15 @@ #**/ [Defines] - INF_VERSION = 0x00010005 - BASE_NAME = NullDmaLib + INF_VERSION = 0x00010019 + BASE_NAME = CoherentDmaLib FILE_GUID = 0F2A0816-D319-4ee7-A6B8-D58524E4428F MODULE_TYPE = BASE VERSION_STRING = 1.0 LIBRARY_CLASS = DmaLib -[Sources.common] - NullDmaLib.c +[Sources] + CoherentDmaLib.c [Packages] MdePkg/MdePkg.dec @@ -29,13 +31,3 @@ [Packages] [LibraryClasses] DebugLib MemoryAllocationLib - - -[Protocols] - -[Guids] - -[Pcd] - -[Depex] - TRUE