]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Network/SnpDxe/WaitForPacket.c
MdeModulePkg: Stop the timer before clean IP service.
[mirror_edk2.git] / MdeModulePkg / Universal / Network / SnpDxe / WaitForPacket.c
index 8dd8fd997e8c6b3730132712b80eeecf15adb7fd..23d7455fd197e29c51db56153d1b754cb7ad20bb 100644 (file)
@@ -1,8 +1,8 @@
 /** @file\r
     Event handler to check for available packet.\r
 \r
-Copyright (c) 2004 - 2008, Intel Corporation. <BR> \r
-All rights reserved. This program and the accompanying materials are licensed \r
+Copyright (c) 2004 - 2008, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials are licensed \r
 and made available under the terms and conditions of the BSD License which \r
 accompanies this distribution. The full text of the license may be found at \r
 http://opensource.org/licenses/bsd-license.php \r
@@ -25,8 +25,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 VOID\r
 EFIAPI\r
 SnpWaitForPacketNotify (\r
-  EFI_EVENT Event,\r
-  VOID      *SnpPtr\r
+  EFI_EVENT     Event,\r
+  VOID          *SnpPtr\r
   )\r
 {\r
   PXE_DB_GET_STATUS PxeDbGetStatus;\r
@@ -56,7 +56,7 @@ SnpWaitForPacketNotify (
   ((SNP_DRIVER *) SnpPtr)->Cdb.OpFlags    = 0;\r
   ((SNP_DRIVER *) SnpPtr)->Cdb.CPBsize    = PXE_CPBSIZE_NOT_USED;\r
   ((SNP_DRIVER *) SnpPtr)->Cdb.CPBaddr    = PXE_CPBADDR_NOT_USED;\r
-  ((SNP_DRIVER *) SnpPtr)->Cdb.DBsize     = sizeof (UINT32) * 2;\r
+  ((SNP_DRIVER *) SnpPtr)->Cdb.DBsize     = (UINT16) (sizeof (UINT32) * 2);\r
   ((SNP_DRIVER *) SnpPtr)->Cdb.DBaddr     = (UINT64)(UINTN) (((SNP_DRIVER *) SnpPtr)->Db);\r
   ((SNP_DRIVER *) SnpPtr)->Cdb.StatCode   = PXE_STATCODE_INITIALIZE;\r
   ((SNP_DRIVER *) SnpPtr)->Cdb.StatFlags  = PXE_STATFLAGS_INITIALIZE;\r
@@ -90,5 +90,3 @@ SnpWaitForPacketNotify (
     gBS->SignalEvent (Event);\r
   }\r
 }\r
-\r
-/* eof - WaitForPacket.c */\r