]> git.proxmox.com Git - mirror_edk2.git/blobdiff - PcAtChipsetPkg/Library/AcpiTimerLib/AcpiTimerLib.c
PcAtChipsetPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / PcAtChipsetPkg / Library / AcpiTimerLib / AcpiTimerLib.c
index 2f3cb4bca4b5913430ac4e1f6dfbfed99ced21a4..7dc11014a5888c7531008d6e696a8fb8eda709ab 100644 (file)
@@ -2,13 +2,7 @@
   ACPI Timer implements one instance of Timer Library.\r
 \r
   Copyright (c) 2013 - 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
-  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
+  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
 \r
@@ -58,13 +52,13 @@ AcpiTimerLibConstructor (
   UINT8   EnableMask;\r
 \r
   //\r
-  // ASSERT for the invalid PCD values. They must be configured to the real value. \r
+  // ASSERT for the invalid PCD values. They must be configured to the real value.\r
   //\r
   ASSERT (PcdGet16 (PcdAcpiIoPciBarRegisterOffset) != 0xFFFF);\r
   ASSERT (PcdGet16 (PcdAcpiIoPortBaseAddress)      != 0xFFFF);\r
 \r
   //\r
-  // If the register offset to the BAR for the ACPI I/O Port Base Address is 0x0000, then \r
+  // If the register offset to the BAR for the ACPI I/O Port Base Address is 0x0000, then\r
   // no PCI register programming is required to enable access to the the ACPI registers\r
   // specified by PcdAcpiIoPortBaseAddress\r
   //\r
@@ -73,7 +67,7 @@ AcpiTimerLibConstructor (
   }\r
 \r
   //\r
-  // ASSERT for the invalid PCD values. They must be configured to the real value. \r
+  // ASSERT for the invalid PCD values. They must be configured to the real value.\r
   //\r
   ASSERT (PcdGet8  (PcdAcpiIoPciDeviceNumber)   != 0xFF);\r
   ASSERT (PcdGet8  (PcdAcpiIoPciFunctionNumber) != 0xFF);\r
@@ -101,7 +95,7 @@ AcpiTimerLibConstructor (
       EnableMask\r
       );\r
   }\r
-  \r
+\r
   return RETURN_SUCCESS;\r
 }\r
 \r
@@ -119,23 +113,23 @@ InternalAcpiGetAcpiTimerIoPort (
   )\r
 {\r
   UINT16  Port;\r
-  \r
+\r
   Port = PcdGet16 (PcdAcpiIoPortBaseAddress);\r
-  \r
+\r
   //\r
-  // If the register offset to the BAR for the ACPI I/O Port Base Address is not 0x0000, then \r
-  // read the PCI register for the ACPI BAR value in case the BAR has been programmed to a \r
+  // If the register offset to the BAR for the ACPI I/O Port Base Address is not 0x0000, then\r
+  // read the PCI register for the ACPI BAR value in case the BAR has been programmed to a\r
   // value other than PcdAcpiIoPortBaseAddress\r
   //\r
   if (PcdGet16 (PcdAcpiIoPciBarRegisterOffset) != 0x0000) {\r
     Port = PciRead16 (PCI_LIB_ADDRESS (\r
-                        PcdGet8  (PcdAcpiIoPciBusNumber), \r
-                        PcdGet8  (PcdAcpiIoPciDeviceNumber), \r
-                        PcdGet8  (PcdAcpiIoPciFunctionNumber), \r
+                        PcdGet8  (PcdAcpiIoPciBusNumber),\r
+                        PcdGet8  (PcdAcpiIoPciDeviceNumber),\r
+                        PcdGet8  (PcdAcpiIoPciFunctionNumber),\r
                         PcdGet16 (PcdAcpiIoPciBarRegisterOffset)\r
                         ));\r
   }\r
-  \r
+\r
   return (Port & PcdGet16 (PcdAcpiIoPortBaseAddressMask)) + PcdGet16 (PcdAcpiPm1TmrOffset);\r
 }\r
 \r