]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmulatorPkg/Library/DxeEmuLib/DxeEmuLib.c
EmulatorPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / EmulatorPkg / Library / DxeEmuLib / DxeEmuLib.c
index 2e42ea61519a50270789ebbac80bbc975f892b24..3247114d098c0157a31318e1dcd1d8e7dbf9f6cf 100644 (file)
@@ -1,14 +1,8 @@
 /*++ @file\r
 \r
 Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r
-Portions copyright (c) 2011, Apple Inc. All rights reserved. \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
+Portions copyright (c) 2011, Apple Inc. All rights reserved.\r
+SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
 \r
@@ -42,16 +36,16 @@ DxeEmuLibConstructor (
 \r
   GuidHob = GetFirstGuidHob (&gEmuThunkProtocolGuid);\r
   ASSERT (GuidHob != NULL);\r
-  \r
+\r
   gEmuThunk = (EMU_THUNK_PROTOCOL *)(*(UINTN *)(GET_GUID_HOB_DATA (GuidHob)));\r
   ASSERT (gEmuThunk != NULL);\r
-  \r
+\r
   return EFI_SUCCESS;\r
 }\r
 \r
 \r
 /**\r
-  Serach the EMU IO Thunk database for a matching EMU IO Thunk \r
+  Serach the EMU IO Thunk database for a matching EMU IO Thunk\r
   Protocol instance.\r
 \r
   @param  Protocol   Protocol to search for.\r
@@ -70,19 +64,19 @@ GetIoThunkInstance (
 {\r
   EFI_STATUS              Status;\r
   EMU_IO_THUNK_PROTOCOL   *EmuIoThunk;\r
-  \r
+\r
   for (Status = EFI_SUCCESS, EmuIoThunk = NULL; !EFI_ERROR (Status); ) {\r
     Status = gEmuThunk->GetNextProtocol (FALSE, &EmuIoThunk);\r
     if (EFI_ERROR (Status)) {\r
       break;\r
     }\r
-  \r
+\r
     if (EmuIoThunk->Instance == Instance) {\r
       if (CompareGuid (EmuIoThunk->Protocol, Protocol)) {\r
         return EmuIoThunk;\r
       }\r
     }\r
   }\r
-  \r
+\r
   return NULL;\r
-}
\ No newline at end of file
+}\r