]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Rename TimeoutInSeconds to Timeout to avoid confusion.
authorJeff Fan <jeff.fan@intel.com>
Wed, 4 Jun 2014 01:47:24 +0000 (01:47 +0000)
committervanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 4 Jun 2014 01:47:24 +0000 (01:47 +0000)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Mike Maslenkin <mihailm@parallels.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15556 6f19259b-4bc3-4df7-8a09-765794883524

IntelFrameworkModulePkg/Bus/Isa/IsaFloppyDxe/IsaFloppy.h
IntelFrameworkModulePkg/Bus/Isa/IsaFloppyDxe/IsaFloppyCtrl.c

index 8adc386e974e95275172f5846fad76db60423832..30a2d7bf0c3c74f1770f1812d1c80e3f1307b674 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Include file for ISA Floppy Driver\r
   \r
-Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\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
@@ -917,18 +917,18 @@ DataOutByte (
 /**\r
   Detect the specified floppy logic drive is busy or not within a period of time.\r
   \r
-  @param FdcDev          Indicate it is drive A or drive B\r
-  @param TimeoutInSeconds the time period for waiting\r
+  @param FdcDev           Indicate it is drive A or drive B\r
+  @param Timeout          The time period for waiting\r
   \r
   @retval EFI_SUCCESS:  The drive and command are not busy\r
   @retval EFI_TIMEOUT:  The drive or command is still busy after a period time that\r
-                        set by TimeoutInSeconds\r
+                        set by Timeout\r
 \r
 **/\r
 EFI_STATUS\r
 FddWaitForBSYClear (\r
   IN FDC_BLK_IO_DEV  *FdcDev,\r
-  IN UINTN           TimeoutInSeconds\r
+  IN UINTN           Timeout\r
   );\r
 \r
 /**\r
@@ -936,7 +936,7 @@ FddWaitForBSYClear (
   \r
   @param  FdcDev Pointer to instance of FDC_BLK_IO_DEV\r
   @param  Dio BOOLEAN:      Indicate the FDC is waiting to write or read\r
-  @param  TimeoutInSeconds UINTN: The time period for waiting\r
+  @param  Timeout           The time period for waiting\r
   \r
   @retval EFI_SUCCESS:  FDC is ready to write or read\r
   @retval EFI_NOT_READY:  FDC is not ready within the specified time period\r
@@ -946,7 +946,7 @@ EFI_STATUS
 FddDRQReady (\r
   IN FDC_BLK_IO_DEV  *FdcDev,\r
   IN BOOLEAN         Dio,\r
-  IN UINTN           TimeoutInSeconds\r
+  IN UINTN           Timeout\r
   );\r
 \r
 /**\r
index d8f181c2e25f1a17c487d3b1eb3147fcf89e29ab..16ad6b02e30eab781f2bf3e2f2940e81e21addb6 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Internal floppy disk controller programming functions for the floppy driver.\r
   \r
-Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\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
@@ -1083,17 +1083,17 @@ DataOutByte (
   Detect the specified floppy logic drive is busy or not within a period of time.\r
   \r
   @param FdcDev           Indicate it is drive A or drive B\r
-  @param TimeoutInSeconds the time period for waiting\r
+  @param Timeout          The time period for waiting\r
   \r
   @retval EFI_SUCCESS:  The drive and command are not busy\r
   @retval EFI_TIMEOUT:  The drive or command is still busy after a period time that\r
-                        set by TimeoutInSeconds\r
+                        set by Timeout\r
 \r
 **/\r
 EFI_STATUS\r
 FddWaitForBSYClear (\r
   IN FDC_BLK_IO_DEV  *FdcDev,\r
-  IN UINTN           TimeoutInSeconds\r
+  IN UINTN           Timeout\r
   )\r
 {\r
   UINTN Delay;\r
@@ -1112,7 +1112,7 @@ FddWaitForBSYClear (
   //\r
   Mask  = (UINT8) ((FdcDev->Disk == FdcDisk0 ? MSR_DAB : MSR_DBB) | MSR_CB);\r
 \r
-  Delay = ((TimeoutInSeconds * STALL_1_MSECOND) / 50) + 1;\r
+  Delay = ((Timeout * STALL_1_MSECOND) / 50) + 1;\r
   do {\r
     StatusRegister = FdcReadPort (FdcDev, FDC_REGISTER_MSR);\r
     if ((StatusRegister & Mask) == 0x00) {\r
@@ -1134,12 +1134,11 @@ FddWaitForBSYClear (
 }\r
 \r
 /**\r
-\r
-  Routine Description:  Determine whether FDC is ready to write or read.\r
+  Determine whether FDC is ready to write or read.\r
   \r
   @param  FdcDev Pointer to instance of FDC_BLK_IO_DEV\r
   @param  Dio BOOLEAN:      Indicate the FDC is waiting to write or read\r
-  @param  TimeoutInSeconds UINTN: The time period for waiting\r
+  @param  Timeout           The time period for waiting\r
   \r
   @retval EFI_SUCCESS:  FDC is ready to write or read\r
   @retval EFI_NOT_READY:  FDC is not ready within the specified time period\r
@@ -1149,7 +1148,7 @@ EFI_STATUS
 FddDRQReady (\r
   IN FDC_BLK_IO_DEV  *FdcDev,\r
   IN BOOLEAN         Dio,\r
-  IN  UINTN          TimeoutInSeconds\r
+  IN UINTN           Timeout\r
   )\r
 {\r
   UINTN Delay;\r
@@ -1169,7 +1168,7 @@ FddDRQReady (
   //\r
   // in order to compare bit6\r
   //\r
-  Delay = ((TimeoutInSeconds * STALL_1_MSECOND) / 50) + 1;\r
+  Delay = ((Timeout * STALL_1_MSECOND) / 50) + 1;\r
   do {\r
     StatusRegister = FdcReadPort (FdcDev, FDC_REGISTER_MSR);\r
     if ((StatusRegister & MSR_RQM) == MSR_RQM && (StatusRegister & MSR_DIO) == DataInOut) {\r