]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmulatorPkg/EmuBusDriverDxe/EmuBusDriverDxe.c
EmulatorPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / EmulatorPkg / EmuBusDriverDxe / EmuBusDriverDxe.c
index 0430ec3dd22fe5a23e21be6c6dcf5fc7264f8106..0bf6e723a1d1b04cac649274e05ee86fea95baee 100644 (file)
@@ -3,13 +3,7 @@
 \r
 Copyright (c) 2006 - 2011, 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
+SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 \r
 **/\r
@@ -50,7 +44,7 @@ EmuBusDriverBindingSupported (
   //\r
   if (RemainingDevicePath != NULL) {\r
     //\r
-    // Check if RemainingDevicePath is the End of Device Path Node, \r
+    // Check if RemainingDevicePath is the End of Device Path Node,\r
     // if yes, go on checking other conditions\r
     //\r
     if (!IsDevicePathEnd (RemainingDevicePath)) {\r
@@ -65,7 +59,7 @@ EmuBusDriverBindingSupported (
       }\r
     }\r
   }\r
-  \r
+\r
   //\r
   // Open the IO Abstraction(s) needed to perform the supported test\r
   //\r
@@ -226,8 +220,8 @@ EmuBusDriverBindingStart (
     if (RemainingDevicePath != NULL) {\r
       CreateDevice  = FALSE;\r
       //\r
-      // Check if RemainingDevicePath is the End of Device Path Node, \r
-      // if yes, don't create any child device \r
+      // Check if RemainingDevicePath is the End of Device Path Node,\r
+      // if yes, don't create any child device\r
       //\r
       if (!IsDevicePathEnd (RemainingDevicePath)) {\r
         //\r
@@ -259,7 +253,7 @@ EmuBusDriverBindingStart (
       EmuDevice->ControllerHandle   = ControllerHandle;\r
       EmuDevice->ParentDevicePath   = ParentDevicePath;\r
       CopyMem (&EmuDevice->EmuIoThunk, EmuIoThunk, sizeof (EMU_IO_THUNK_PROTOCOL));\r
-      \r
+\r
       EmuDevice->ControllerNameTable = NULL;\r
 \r
       StrnCpy (ComponentName, EmuIoThunk->ConfigString, sizeof (ComponentName)/sizeof (CHAR16));\r
@@ -404,7 +398,7 @@ EmuBusDriverBindingStop (
       Status = gBS->UninstallMultipleProtocolInterfaces (\r
                       EmuDevice->Handle,\r
                       &gEfiDevicePathProtocolGuid,  EmuDevice->DevicePath,\r
-                      &gEmuIoThunkProtocolGuid,     EmuDevice->EmuIoThunk,\r
+                      &gEmuIoThunkProtocolGuid,     &EmuDevice->EmuIoThunk,\r
                       NULL\r
                       );\r
 \r
@@ -455,7 +449,7 @@ Arguments:
 \r
 Returns:\r
 \r
-  EFI_DEVICE_PATH_PROTOCOL \r
+  EFI_DEVICE_PATH_PROTOCOL\r
 \r
 **/\r
 EFI_DEVICE_PATH_PROTOCOL *\r
@@ -493,9 +487,9 @@ EmuBusCreateDevicePath (
 /**\r
   The user Entry Point for module EmuBusDriver. 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
   @retval other             Some error occurs when executing this entry point.\r
 \r