diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2017-08-30 07:57:40 +0100 |
---|---|---|
committer | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2017-08-30 14:12:34 +0100 |
commit | 7385d2543e2a0c9b601673f244a75635d7ff90da (patch) | |
tree | b0c15923721e00fad8f8f07c8e8d7d5586b86c40 /EmbeddedPkg | |
parent | 5202e6c907e5769ac8ecb024b7a07509bdba6181 (diff) | |
download | edk2-7385d2543e2a0c9b601673f244a75635d7ff90da.tar.gz edk2-7385d2543e2a0c9b601673f244a75635d7ff90da.tar.bz2 edk2-7385d2543e2a0c9b601673f244a75635d7ff90da.zip |
EmbeddedPkg: rename NullDmaLib to CoherentDmaLib
The name NullDmaLib suggests that this library is a placeholder that
only exists to fulfil formal dependencies on the DmaLib library class
without providing an actual implementation. This is not the case, though:
NullDmaLib does implement DmaLib fully, but doing so simply requires very
little effort on a cache coherent platform. So let's rename it to
CoherentDmaLib instead.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
Diffstat (limited to 'EmbeddedPkg')
-rw-r--r-- | EmbeddedPkg/EmbeddedPkg.dsc | 2 | ||||
-rw-r--r-- | EmbeddedPkg/Library/CoherentDmaLib/CoherentDmaLib.c (renamed from EmbeddedPkg/Library/NullDmaLib/NullDmaLib.c) | 0 | ||||
-rw-r--r-- | EmbeddedPkg/Library/CoherentDmaLib/CoherentDmaLib.inf (renamed from EmbeddedPkg/Library/NullDmaLib/NullDmaLib.inf) | 20 |
3 files changed, 7 insertions, 15 deletions
diff --git a/EmbeddedPkg/EmbeddedPkg.dsc b/EmbeddedPkg/EmbeddedPkg.dsc index 09b1899c9b..4f0a3438e1 100644 --- a/EmbeddedPkg/EmbeddedPkg.dsc +++ b/EmbeddedPkg/EmbeddedPkg.dsc @@ -250,7 +250,7 @@ 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 index 4cbe349190..4cbe349190 100644 --- a/EmbeddedPkg/Library/NullDmaLib/NullDmaLib.c +++ b/EmbeddedPkg/Library/CoherentDmaLib/CoherentDmaLib.c diff --git a/EmbeddedPkg/Library/NullDmaLib/NullDmaLib.inf b/EmbeddedPkg/Library/CoherentDmaLib/CoherentDmaLib.inf index 38261d5ede..c40a600cf6 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.<BR>
+# Copyright (c) 2017, Linaro, Ltd. All rights reserved.<BR>
+#
# 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 @@ [LibraryClasses]
DebugLib
MemoryAllocationLib
-
-
-[Protocols]
-
-[Guids]
-
-[Pcd]
-
-[Depex]
- TRUE
|