summaryrefslogtreecommitdiff
path: root/MdePkg
diff options
context:
space:
mode:
authorjji4 <jji4@6f19259b-4bc3-4df7-8a09-765794883524>2009-02-13 06:28:15 +0000
committerjji4 <jji4@6f19259b-4bc3-4df7-8a09-765794883524>2009-02-13 06:28:15 +0000
commit8f0dd97eab98969bb26825852cb498f22daa4efd (patch)
tree48842ccf09d60f8e629ce35b93c274d027059541 /MdePkg
parent89c18a1e9e6c6c5da7a377eff3578781a3ebcb0e (diff)
downloadedk2-8f0dd97eab98969bb26825852cb498f22daa4efd.zip
edk2-8f0dd97eab98969bb26825852cb498f22daa4efd.tar.gz
edk2-8f0dd97eab98969bb26825852cb498f22daa4efd.tar.bz2
Spec checked
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7521 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg')
-rw-r--r--MdePkg/Library/BasePcdLibNull/PcdLib.c16
-rw-r--r--MdePkg/Library/DxeRuntimePciExpressLib/PciExpressLib.c3
-rw-r--r--MdePkg/Library/PeiPcdLib/PeiPcdLib.c16
-rw-r--r--MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c6
-rw-r--r--MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLib.c6
5 files changed, 18 insertions, 29 deletions
diff --git a/MdePkg/Library/BasePcdLibNull/PcdLib.c b/MdePkg/Library/BasePcdLibNull/PcdLib.c
index 6ad91b8..3b3e7f2 100644
--- a/MdePkg/Library/BasePcdLibNull/PcdLib.c
+++ b/MdePkg/Library/BasePcdLibNull/PcdLib.c
@@ -847,18 +847,12 @@ LibPcdGetNextToken (
/**
Used to retrieve the list of available PCD token space GUIDs.
- Retrieves the next PCD token space from a token space specified by Guid.
- Guid of NULL is reserved to mark the default local token namespace on the current
- platform. If Guid is NULL, then the GUID of the first non-local token space of the
- current platform is returned. If Guid is the last non-local token space,
- then NULL is returned.
-
- If Guid is not NULL and is not a valid token space in the current platform, then ASSERT().
-
-
+ Returns the PCD token space GUID that follows TokenSpaceGuid in the list of token spaces
+ in the platform.
+ If TokenSpaceGuid is NULL, then a pointer to the first PCD token spaces returned.
+ If TokenSpaceGuid is the last PCD token space GUID in the list, then NULL is returned.
- @param[in] Guid Pointer to a 128-bit unique value that designates from which namespace
- to start the search.
+ @param TokenSpaceGuid Pointer to the a PCD token space GUID
@return The next valid token namespace.
diff --git a/MdePkg/Library/DxeRuntimePciExpressLib/PciExpressLib.c b/MdePkg/Library/DxeRuntimePciExpressLib/PciExpressLib.c
index 9f414d8..696f7bb 100644
--- a/MdePkg/Library/DxeRuntimePciExpressLib/PciExpressLib.c
+++ b/MdePkg/Library/DxeRuntimePciExpressLib/PciExpressLib.c
@@ -183,7 +183,8 @@ DxeRuntimePciExpressLibDestructor (
This internal functions retrieves PCI Express Base Address via a PCD entry
PcdPciExpressBaseAddress.
- @return The base address of PCI Express.
+ @param Address Address that encodes the PCI Bus, Device, Function and Register.
+ @return The base address of PCI Express.
**/
UINTN
diff --git a/MdePkg/Library/PeiPcdLib/PeiPcdLib.c b/MdePkg/Library/PeiPcdLib/PeiPcdLib.c
index 57cf646..9a55875 100644
--- a/MdePkg/Library/PeiPcdLib/PeiPcdLib.c
+++ b/MdePkg/Library/PeiPcdLib/PeiPcdLib.c
@@ -954,18 +954,12 @@ LibPcdGetNextToken (
/**
Used to retrieve the list of available PCD token space GUIDs.
- Retrieves the next PCD token space from a token space specified by Guid.
- Guid of NULL is reserved to mark the default local token namespace on the current
- platform. If Guid is NULL, then the GUID of the first non-local token space of the
- current platform is returned. If Guid is the last non-local token space,
- then NULL is returned.
-
- If Guid is not NULL and is not a valid token space in the current platform, then ASSERT().
-
-
+ Returns the PCD token space GUID that follows TokenSpaceGuid in the list of token spaces
+ in the platform.
+ If TokenSpaceGuid is NULL, then a pointer to the first PCD token spaces returned.
+ If TokenSpaceGuid is the last PCD token space GUID in the list, then NULL is returned.
- @param[in] Guid Pointer to a 128-bit unique value that designates from which namespace
- to start the search.
+ @param TokenSpaceGuid Pointer to the a PCD token space GUID
@return The next valid token namespace.
diff --git a/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c b/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c
index b2602e2..15b16a2 100644
--- a/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c
+++ b/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c
@@ -222,12 +222,12 @@ IsDevicePathEndInstance (
UINT16
SetDevicePathNodeLength (
IN OUT VOID *Node,
- IN UINTN NodeLength
+ IN UINTN Length
)
{
ASSERT (Node != NULL);
- ASSERT (NodeLength < 0x10000);
- return WriteUnaligned16 ((UINT16 *)&((EFI_DEVICE_PATH_PROTOCOL *)(Node))->Length[0], (UINT16)(NodeLength));
+ ASSERT (Length < 0x10000);
+ return WriteUnaligned16 ((UINT16 *)&((EFI_DEVICE_PATH_PROTOCOL *)(Node))->Length[0], (UINT16)(Length));
}
/**
diff --git a/MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLib.c b/MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLib.c
index 8f2488a..5dd0998 100644
--- a/MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLib.c
+++ b/MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLib.c
@@ -251,12 +251,12 @@ IsDevicePathEndInstance (
UINT16
SetDevicePathNodeLength (
IN OUT VOID *Node,
- IN UINTN NodeLength
+ IN UINTN Length
)
{
ASSERT (Node != NULL);
- ASSERT (NodeLength < 0x10000);
- return WriteUnaligned16 ((UINT16 *)&((EFI_DEVICE_PATH_PROTOCOL *)(Node))->Length[0], (UINT16)(NodeLength));
+ ASSERT (Length < 0x10000);
+ return WriteUnaligned16 ((UINT16 *)&((EFI_DEVICE_PATH_PROTOCOL *)(Node))->Length[0], (UINT16)(Length));
}
/**