]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Core/Dxe/Gcd/Gcd.c
Update to fix minor coding style issues.
[mirror_edk2.git] / MdeModulePkg / Core / Dxe / Gcd / Gcd.c
index bff13b3bf666148325e72545e0045c12932b0cfe..8536647fe7eb6025ec89b7e70d22cebef41966c6 100644 (file)
@@ -1,17 +1,16 @@
-/** @file \r
-\r
-    The file contains the GCD related services in the EFI Boot Services Table.\r
+/** @file\r
+  The file contains the GCD related services in the EFI Boot Services Table.\r
     The GCD services are used to manage the memory and I/O regions that \r
     are accessible to the CPU that is executing the DXE core.\r
 \r
-Copyright (c) 2006 - 2008, Intel Corporation                                                         \r
-All rights reserved. This program and the accompanying materials                          \r
-are licensed and made available under the terms and conditions of the BSD License         \r
-which accompanies this distribution.  The full text of the license may be found at        \r
-http://opensource.org/licenses/bsd-license.php                                            \r
-                                                                                          \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution.  The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 **/\r
 \r
@@ -122,7 +121,6 @@ CoreReleaseGcdMemoryLock (
   Acquire memory lock on mGcdIoSpaceLock.\r
 \r
 **/\r
-STATIC\r
 VOID\r
 CoreAcquireGcdIoLock (\r
   VOID\r
@@ -136,7 +134,6 @@ CoreAcquireGcdIoLock (
   Release memory lock on mGcdIoSpaceLock.\r
 \r
 **/\r
-STATIC\r
 VOID\r
 CoreReleaseGcdIoLock (\r
   VOID\r
@@ -163,7 +160,6 @@ CoreReleaseGcdIoLock (
   @return A 64 bit value is the aligned to the value nearest Value with an alignment by Alignment.\r
 \r
 **/\r
-STATIC\r
 UINT64\r
 AlignValue (\r
   IN UINT64   Value,\r
@@ -189,7 +185,6 @@ AlignValue (
   @return A 64 bit value is the aligned to the value nearest Value with an alignment by Alignment.\r
 \r
 **/\r
-STATIC\r
 UINT64\r
 PageAlignAddress (\r
   IN UINT64 Value\r
@@ -207,7 +202,6 @@ PageAlignAddress (
   @return A 64 bit value is the aligned to the value nearest Value with an alignment by Alignment.\r
 \r
 **/\r
-STATIC\r
 UINT64\r
 PageAlignLength (\r
   IN UINT64 Value\r
@@ -230,7 +224,6 @@ PageAlignLength (
   @retval EFI_SUCCESS            Both entries successfully allocated.\r
 \r
 **/\r
-STATIC\r
 EFI_STATUS\r
 CoreAllocateGcdMapEntry (\r
   IN OUT EFI_GCD_MAP_ENTRY  **TopEntry,\r
@@ -266,7 +259,6 @@ CoreAllocateGcdMapEntry (
   @retval EFI_SUCCESS            The new range was inserted into the linked list\r
 \r
 **/\r
-STATIC\r
 EFI_STATUS\r
 CoreInsertGcdMapEntry (\r
   IN LIST_ENTRY           *Link,\r
@@ -311,7 +303,6 @@ CoreInsertGcdMapEntry (
   @retval EFI_UNSUPPORTED        These adjacent regions could not merge.\r
 \r
 **/\r
-STATIC\r
 EFI_STATUS\r
 CoreMergeGcdMapEntry (\r
   IN LIST_ENTRY      *Link,\r
@@ -385,7 +376,6 @@ CoreMergeGcdMapEntry (
   @retval EFI_SUCCESS            GCD map successfully cleaned up.\r
 \r
 **/\r
-STATIC\r
 EFI_STATUS\r
 CoreCleanupGcdMapEntry (\r
   IN EFI_GCD_MAP_ENTRY  *TopEntry,\r
@@ -430,7 +420,6 @@ CoreCleanupGcdMapEntry (
   @retval EFI_NOT_FOUND          Not found.\r
 \r
 **/\r
-STATIC\r
 EFI_STATUS\r
 CoreSearchGcdMapEntry (\r
   IN  EFI_PHYSICAL_ADDRESS  BaseAddress,\r
@@ -475,7 +464,6 @@ CoreSearchGcdMapEntry (
   @return The count.\r
 \r
 **/\r
-STATIC\r
 UINTN\r
 CoreCountGcdMapEntry (\r
   IN LIST_ENTRY  *Map\r
@@ -503,11 +491,10 @@ CoreCountGcdMapEntry (
   @return The enum value of memory attribute.\r
 \r
 **/\r
-STATIC\r
 UINT64\r
 ConverToCpuArchAttributes (\r
   UINT64 Attributes\r
-  ) \r
+  )\r
 {\r
   if ( (Attributes & EFI_MEMORY_UC) == EFI_MEMORY_UC) {\r
     return EFI_MEMORY_UC;\r
@@ -557,7 +544,6 @@ ConverToCpuArchAttributes (
   @retval EFI_OUT_OF_RESOURCES   No buffer could be allocated.\r
 \r
 **/\r
-STATIC\r
 EFI_STATUS\r
 CoreConvertSpace (\r
   IN UINTN                 Operation,\r
@@ -801,7 +787,6 @@ Done:
                                  space.\r
 \r
 **/\r
-STATIC\r
 EFI_STATUS\r
 CoreAllocateSpaceCheckEntry (\r
   IN UINTN                Operation,\r
@@ -849,7 +834,6 @@ CoreAllocateSpaceCheckEntry (
   @retval EFI_SUCCESS            Space successfully allocated.\r
 \r
 **/\r
-STATIC\r
 EFI_STATUS\r
 CoreAllocateSpace (\r
   IN     UINTN                  Operation,\r
@@ -1096,7 +1080,6 @@ Done:
   @retval EFI_SUCCESS            Successfully add a segment of memory space.\r
 \r
 **/\r
-STATIC\r
 EFI_STATUS\r
 CoreInternalAddMemorySpace (\r
   IN EFI_GCD_MEMORY_TYPE   GcdMemoryType,\r
@@ -1283,7 +1266,6 @@ CoreRemoveMemorySpace (
   @param  Entry                  According to this entry\r
 \r
 **/\r
-STATIC\r
 VOID\r
 BuildMemoryDescriptor (\r
   IN OUT EFI_GCD_MEMORY_SPACE_DESCRIPTOR  *Descriptor,\r
@@ -1558,7 +1540,6 @@ CoreRemoveIoSpace (
   @param  Entry                  According to this entry\r
 \r
 **/\r
-STATIC\r
 VOID\r
 BuildIoDescriptor (\r
   IN EFI_GCD_IO_SPACE_DESCRIPTOR  *Descriptor,\r
@@ -1701,7 +1682,6 @@ Done:
   @return The capabilities mask for an EFI Memory Descriptor.\r
 \r
 **/\r
-STATIC\r
 UINT64\r
 CoreConvertResourceDescriptorHobAttributesToCapabilities (\r
   EFI_GCD_MEMORY_TYPE  GcdMemoryType,\r