]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Network/MnpDxe/MnpIo.c
BaseTools:Change the path of the file that Binary Cache
[mirror_edk2.git] / MdeModulePkg / Universal / Network / MnpDxe / MnpIo.c
index ba0f36e710db712a2fc902ccea6d92949009609d..56405d62b5e05b1b1f9f6b743576b32301f539ec 100644 (file)
@@ -1,15 +1,8 @@
 /** @file\r
   Implementation of Managed Network Protocol I/O functions.\r
 \r
-Copyright (c) 2005 - 2016, Intel Corporation. All rights reserved.<BR>\r
-This program and the accompanying materials\r
-are licensed and made available under the terms and conditions\r
-of the BSD License which accompanies this distribution.  The full\r
-text of the license may be found at<BR>\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) 2005 - 2018, Intel Corporation. All rights reserved.<BR>\r
+SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
 \r
@@ -129,14 +122,14 @@ MnpBuildTxPacket (
   UINT16                  Index;\r
   MNP_DEVICE_DATA         *MnpDeviceData;\r
   UINT8                   *TxBuf;\r
-  \r
+\r
   MnpDeviceData = MnpServiceData->MnpDeviceData;\r
-  \r
+\r
   TxBuf = MnpAllocTxBuf (MnpDeviceData);\r
   if (TxBuf == NULL) {\r
     return EFI_OUT_OF_RESOURCES;\r
   }\r
-  \r
+\r
   //\r
   // Reserve space for vlan tag if needed.\r
   //\r
@@ -145,14 +138,14 @@ MnpBuildTxPacket (
   } else {\r
     *PktBuf = TxBuf;\r
   }\r
-  \r
+\r
   if ((TxData->DestinationAddress == NULL) && (TxData->FragmentCount == 1)) {\r
     CopyMem (\r
         *PktBuf,\r
         TxData->FragmentTable[0].FragmentBuffer,\r
         TxData->FragmentTable[0].FragmentLength\r
         );\r
-    \r
+\r
     *PktLen = TxData->FragmentTable[0].FragmentLength;\r
   } else {\r
     //\r
@@ -160,7 +153,7 @@ MnpBuildTxPacket (
     // one fragment, copy the data into the packet buffer. Reserve the\r
     // media header space if necessary.\r
     //\r
-    SnpMode = MnpDeviceData->Snp->Mode; \r
+    SnpMode = MnpDeviceData->Snp->Mode;\r
     DstPos  = *PktBuf;\r
     *PktLen = 0;\r
     if (TxData->DestinationAddress != NULL) {\r
@@ -195,7 +188,7 @@ MnpBuildTxPacket (
 \r
 \r
 /**\r
-  Synchronously send out the packet. \r
+  Synchronously send out the packet.\r
 \r
   This functon places the packet buffer to SNP driver's tansmit queue. The packet\r
   can be considered successfully sent out once SNP acccetp the packet, while the\r
@@ -245,7 +238,7 @@ MnpSyncSendPacket (
     goto SIGNAL_TOKEN;\r
   }\r
 \r
-  \r
+\r
   if (MnpServiceData->VlanId != 0) {\r
     //\r
     // Insert VLAN tag\r
@@ -282,9 +275,9 @@ MnpSyncSendPacket (
                     TxData->SourceAddress,\r
                     TxData->DestinationAddress,\r
                     &ProtocolType\r
-                    ); \r
+                    );\r
   }\r
-  \r
+\r
   if (EFI_ERROR (Status)) {\r
     Token->Status = EFI_DEVICE_ERROR;\r
   }\r