]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBus.c
clean up the un-suitable ';' location when declaring the functions.
[mirror_edk2.git] / MdeModulePkg / Bus / Scsi / ScsiBusDxe / ScsiBus.c
index 1fdbc762bace6e67a6668137bebf6bea47250f48..f59116733e9fe1151a24724981260c80fea83b2a 100644 (file)
@@ -1,6 +1,8 @@
-/*++\r
+/** @file\r
+  SCSI Bus driver that layers on every SCSI Pass Thru and\r
+  Extended SCSI Pass Thru protocol in the system.\r
 \r
-Copyright (c) 2006, Intel Corporation\r
+Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
 All rights reserved. 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
@@ -9,18 +11,10 @@ http://opensource.org/licenses/bsd-license.php
 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
 \r
-Module Name:\r
-\r
-    scsibus.c\r
-\r
-Abstract:\r
-\r
-\r
-Revision History\r
---*/\r
+**/\r
 \r
 \r
-#include <PiDxe.h>\r
+#include <Uefi.h>\r
 \r
 \r
 #include <Protocol/ScsiPassThru.h>\r
@@ -66,8 +60,7 @@ EFIAPI
 ScsiioToPassThruPacket (\r
   IN      EFI_SCSI_IO_SCSI_REQUEST_PACKET         *Packet,\r
   IN OUT  EFI_SCSI_PASS_THRU_SCSI_REQUEST_PACKET  *CommandPacket\r
-  )\r
-;\r
+  );\r
 \r
 \r
 STATIC\r
@@ -76,16 +69,14 @@ EFIAPI
 PassThruToScsiioPacket (\r
   IN     EFI_SCSI_PASS_THRU_SCSI_REQUEST_PACKET  *ScsiPacket,\r
   IN OUT EFI_SCSI_IO_SCSI_REQUEST_PACKET         *Packet\r
-  )\r
-;\r
+  );\r
 STATIC\r
 VOID\r
 EFIAPI\r
 NotifyFunction (\r
   EFI_EVENT  Event,\r
   VOID       *Context\r
-  )\r
-;\r
+  );\r
 \r
 /**\r
   The user Entry Point for module ScsiBus. The user code starts with this function.\r
@@ -393,7 +384,6 @@ Returns:
     }\r
   }\r
 \r
-  DEBUG ((EFI_D_ERROR, "ScsiExted Support: %d Frome First Target: %d\r\n" , ScsiBusDev->ExtScsiSupport, FromFirstTarget));\r
   while(ScanOtherPuns) {\r
     if (FromFirstTarget) {\r
       //\r
@@ -405,7 +395,6 @@ Returns:
       } else {\r
         Status = ScsiBusDev->ScsiInterface->GetNextDevice (ScsiBusDev->ScsiInterface, &ScsiTargetId->ScsiId.Scsi, &Lun);\r
       }\r
-      DEBUG ((EFI_D_ERROR, "ScsiExte Error= %r\r\n" , Status));\r
       if (EFI_ERROR (Status)) {\r
         //\r
         // no legal Pun and Lun found any more\r
@@ -432,7 +421,6 @@ Returns:
     // then create handle and install scsi i/o protocol.\r
     //\r
     Status = ScsiScanCreateDevice (This, Controller, ScsiTargetId, Lun, ScsiBusDev);\r
-    DEBUG ((EFI_D_ERROR, "CreateDevice %d, %d at %p Status = %r\r\n" , ScsiTargetId, Lun, Controller, Status));\r
   }\r
   gBS->FreePool (ScsiTargetId);\r
   return EFI_SUCCESS;\r