]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/LegacyRegion2Dxe/LegacyRegion2.c
MdeModulePkg: Clean up source files
[mirror_edk2.git] / MdeModulePkg / Universal / LegacyRegion2Dxe / LegacyRegion2.c
index a956ea975a56cae8670817278cc2b68de9b40af9..db4a2e8ba9212c26e8e9819015d178fcaa7f9b53 100644 (file)
@@ -1,13 +1,13 @@
 /** @file\r
   Dummy implementation of Legacy Region 2 Protocol.\r
 \r
-  This generic implementation of the Legacy Region 2 Protocol does not actually \r
-  perform any lock/unlock operations.  This module may be used on platforms \r
-  that do not provide HW locking of the legacy memory regions.  It can also \r
+  This generic implementation of the Legacy Region 2 Protocol does not actually\r
+  perform any lock/unlock operations.  This module may be used on platforms\r
+  that do not provide HW locking of the legacy memory regions.  It can also\r
   be used as a template driver for implementing the Legacy Region 2 Protocol on\r
   a platform that does support HW locking of the legacy memory regions.\r
 \r
-Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
 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
@@ -33,9 +33,9 @@ EFI_LEGACY_REGION2_PROTOCOL  mLegacyRegion2 = {
 /**\r
   Modify the hardware to allow (decode) or disallow (not decode) memory reads in a region.\r
 \r
-  If the On parameter evaluates to TRUE, this function enables memory reads in the address range \r
+  If the On parameter evaluates to TRUE, this function enables memory reads in the address range\r
   Start to (Start + Length - 1).\r
-  If the On parameter evaluates to FALSE, this function disables memory reads in the address range \r
+  If the On parameter evaluates to FALSE, this function disables memory reads in the address range\r
   Start to (Start + Length - 1).\r
 \r
   @param  This[in]              Indicates the EFI_LEGACY_REGION_PROTOCOL instance.\r
@@ -114,7 +114,7 @@ LegacyRegion2Lock (
 /**\r
   Modify the hardware to disallow memory attribute changes in a region.\r
 \r
-  This function makes the attributes of a region read only. Once a region is boot-locked with this \r
+  This function makes the attributes of a region read only. Once a region is boot-locked with this\r
   function, the read and write attributes of that region cannot be changed until a power cycle has\r
   reset the boot-lock attribute. Calls to Decode(), Lock() and Unlock() will have no effect.\r
 \r
@@ -155,7 +155,7 @@ LegacyRegion2BootLock (
 /**\r
   Modify the hardware to allow memory writes in a region.\r
 \r
-  This function changes the attributes of a memory range to allow writes.  \r
+  This function changes the attributes of a memory range to allow writes.\r
 \r
   @param  This[in]              Indicates the EFI_LEGACY_REGION_PROTOCOL instance.\r
   @param  Start[in]             The beginning of the physical address of the region whose\r
@@ -193,9 +193,9 @@ LegacyRegion2Unlock (
 /**\r
   Get region information for the attributes of the Legacy Region.\r
 \r
-  This function is used to discover the granularity of the attributes for the memory in the legacy \r
+  This function is used to discover the granularity of the attributes for the memory in the legacy\r
   region. Each attribute may have a different granularity and the granularity may not be the same\r
-  for all memory ranges in the legacy region.  \r
+  for all memory ranges in the legacy region.\r
 \r
   @param  This[in]              Indicates the EFI_LEGACY_REGION2_PROTOCOL instance.\r
   @param  DescriptorCount[out]  The number of region descriptor entries returned in the Descriptor\r
@@ -223,9 +223,9 @@ LegacyRegionGetInfo (
 /**\r
   The user Entry Point for module LegacyRegionDxe.  The user code starts with this function.\r
 \r
-  @param[in] ImageHandle    The firmware allocated handle for the EFI image.  \r
+  @param[in] ImageHandle    The firmware allocated handle for the EFI image.\r
   @param[in] SystemTable    A pointer to the EFI System Table.\r
-  \r
+\r
   @retval EFI_SUCCESS       The entry point is executed successfully.\r
 \r
 **/\r
@@ -237,12 +237,12 @@ LegacyRegion2Install (
   )\r
 {\r
   EFI_STATUS  Status;\r
-  \r
+\r
   //\r
   // Make sure the Legacy Region 2 Protocol is not already installed in the system\r
   //\r
   ASSERT_PROTOCOL_ALREADY_INSTALLED (NULL, &gEfiLegacyRegion2ProtocolGuid);\r
-  \r
+\r
   //\r
   // Install the protocol on a new handle.\r
   //\r