]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkModulePkg/Bus/Isa/IsaFloppyDxe/IsaFloppyCtrl.c
IntelFrameworkModulePkg: Clean up source files
[mirror_edk2.git] / IntelFrameworkModulePkg / Bus / Isa / IsaFloppyDxe / IsaFloppyCtrl.c
index 16ad6b02e30eab781f2bf3e2f2940e81e21addb6..48e214f173984096bdc0a6367b9546b935a83b30 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Internal floppy disk controller programming functions for the floppy driver.\r
-  \r
-Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
+\r
+Copyright (c) 2006 - 2018, 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
@@ -16,7 +16,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 /**\r
   Detect whether a floppy drive is present or not.\r
\r
+\r
   @param[in] FdcDev  A pointer to the FDC_BLK_IO_DEV\r
 \r
   @retval EFI_SUCCESS    The floppy disk drive is present\r
@@ -49,7 +49,7 @@ DiscoverFddDevice (
 /**\r
   Do recalibrate and check if the drive is present or not\r
   and set the media parameters if the driver is present.\r
-  \r
+\r
   @param[in] FdcDev  A pointer to the FDC_BLK_IO_DEV\r
 \r
   @retval EFI_SUCCESS       The floppy disk drive is present\r
@@ -123,9 +123,9 @@ FddIdentify (
 \r
 /**\r
   Reset the Floppy Logic Drive.\r
-  \r
+\r
   @param  FdcDev FDC_BLK_IO_DEV * : A pointer to the FDC_BLK_IO_DEV\r
-  \r
+\r
   @retval EFI_SUCCESS:    The Floppy Logic Drive is reset\r
   @retval EFI_DEVICE_ERROR: The Floppy Logic Drive is not functioning correctly and\r
                       can not be reset\r
@@ -222,9 +222,9 @@ FddReset (
 /**\r
   Turn the floppy disk drive's motor on.\r
   The drive's motor must be on before any command can be executed.\r
-  \r
+\r
   @param[in] FdcDev  A pointer to the FDC_BLK_IO_DEV\r
-  \r
+\r
   @retval  EFI_SUCCESS            The drive's motor was turned on successfully\r
   @retval  EFI_DEVICE_ERROR       The drive is busy, so can not turn motor on\r
 **/\r
@@ -298,9 +298,9 @@ MotorOn (
 \r
 /**\r
   Set a Timer and when Timer goes off, turn the motor off.\r
-  \r
+\r
   @param[in] FdcDev  A pointer to the FDC_BLK_IO_DEV\r
-  \r
+\r
   @retval  EFI_SUCCESS            Set the Timer successfully\r
   @retval  EFI_INVALID_PARAMETER  Fail to Set the timer\r
 **/\r
@@ -317,9 +317,9 @@ MotorOff (
 \r
 /**\r
   Detect whether the disk in the drive is changed or not.\r
-  \r
+\r
   @param[in] FdcDev  A pointer to FDC_BLK_IO_DEV\r
-  \r
+\r
   @retval  EFI_SUCCESS        No disk media change\r
   @retval  EFI_DEVICE_ERROR   Fail to do the recalibrate or seek operation\r
   @retval  EFI_NO_MEDIA       No disk in the drive\r
@@ -382,9 +382,9 @@ DisketChanged (
   Do the Specify command, this command sets DMA operation\r
   and the initial values for each of the three internal\r
   times: HUT, SRT and HLT.\r
-  \r
+\r
   @param[in] FdcDev  Pointer to instance of FDC_BLK_IO_DEV\r
-  \r
+\r
   @retval EFI_SUCCESS       Execute the Specify command successfully\r
   @retval EFI_DEVICE_ERROR  Fail to execute the command\r
 **/\r
@@ -422,7 +422,7 @@ Specify (
 \r
 /**\r
   Set the head of floppy drive to track 0.\r
\r
+\r
   @param  FdcDev FDC_BLK_IO_DEV *: A pointer to FDC_BLK_IO_DEV\r
   @retval EFI_SUCCESS:    Execute the Recalibrate operation successfully\r
   @retval EFI_DEVICE_ERROR: Fail to execute the Recalibrate operation\r
@@ -496,10 +496,10 @@ Recalibrate (
 \r
 /**\r
   Set the head of floppy drive to the new cylinder.\r
-  \r
+\r
   @param  FdcDev FDC_BLK_IO_DEV *: A pointer to FDC_BLK_IO_DEV\r
   @param  Lba EFI_LBA     : The logic block address want to seek\r
-  \r
+\r
   @retval  EFI_SUCCESS:    Execute the Seek operation successfully\r
   @retval  EFI_DEVICE_ERROR: Fail to execute the Seek operation\r
 \r
@@ -600,12 +600,12 @@ Seek (
 /**\r
   Do the Sense Interrupt Status command, this command\r
   resets the interrupt signal.\r
-  \r
+\r
   @param  FdcDev FDC_BLK_IO_DEV *: A pointer to FDC_BLK_IO_DEV\r
   @param  StatusRegister0 UINT8 *: Be used to save Status Register 0 read from FDC\r
   @param  PresentCylinderNumber  UINT8 *: Be used to save present cylinder number\r
                                     read from FDC\r
-  \r
+\r
   @retval  EFI_SUCCESS:    Execute the Sense Interrupt Status command successfully\r
   @retval  EFI_DEVICE_ERROR: Fail to execute the command\r
 \r
@@ -637,10 +637,10 @@ SenseIntStatus (
 \r
 /**\r
   Do the Sense Drive Status command.\r
-  \r
+\r
   @param  FdcDev FDC_BLK_IO_DEV *: A pointer to FDC_BLK_IO_DEV\r
   @param  Lba EFI_LBA     : Logic block address\r
-  \r
+\r
   @retval  EFI_SUCCESS:    Execute the Sense Drive Status command successfully\r
   @retval  EFI_DEVICE_ERROR: Fail to execute the command\r
   @retval  EFI_WRITE_PROTECTED:The disk is write protected\r
@@ -700,9 +700,9 @@ SenseDrvStatus (
 \r
 /**\r
   Update the disk media properties and if necessary reinstall Block I/O interface.\r
\r
+\r
   @param  FdcDev FDC_BLK_IO_DEV *: A pointer to FDC_BLK_IO_DEV\r
-  \r
+\r
   @retval  EFI_SUCCESS:    Do the operation successfully\r
   @retval  EFI_DEVICE_ERROR: Fail to the operation\r
 \r
@@ -778,7 +778,7 @@ DetectMedia (
 \r
 /**\r
   Set the data rate and so on.\r
\r
+\r
   @param  FdcDev  A pointer to FDC_BLK_IO_DEV\r
 \r
   @retval EFI_SUCCESS success to set the data rate\r
@@ -811,13 +811,13 @@ Setup (
 \r
 /**\r
   Read or Write a number of blocks in the same cylinder.\r
\r
+\r
   @param  FdcDev      A pointer to FDC_BLK_IO_DEV\r
-  @param  HostAddress device address \r
+  @param  HostAddress device address\r
   @param  Lba         The starting logic block address to read from on the device\r
   @param  NumberOfBlocks The number of block wanted to be read or write\r
   @param  Read        Operation type: read or write\r
-  \r
+\r
   @retval EFI_SUCCESS Success operate\r
 \r
 **/\r
@@ -961,7 +961,7 @@ ReadWriteDataSector (
 \r
 /**\r
   Fill in FDD command's parameter.\r
-  \r
+\r
   @param FdcDev   Pointer to instance of FDC_BLK_IO_DEV\r
   @param Lba      The starting logic block address to read from on the device\r
   @param Command  FDD command\r
@@ -1002,10 +1002,10 @@ FillPara (
 \r
 /**\r
   Read result byte from Data Register of FDC.\r
-  \r
+\r
   @param FdcDev   Pointer to instance of FDC_BLK_IO_DEV\r
   @param Pointer  Buffer to store the byte read from FDC\r
-  \r
+\r
   @retval EFI_SUCCESS       Read result byte from FDC successfully\r
   @retval EFI_DEVICE_ERROR  The FDC is not ready to be read\r
 \r
@@ -1041,10 +1041,10 @@ DataInByte (
 \r
 /**\r
   Write command byte to Data Register of FDC.\r
-  \r
+\r
   @param FdcDev  Pointer to instance of FDC_BLK_IO_DEV\r
   @param Pointer Be used to save command byte written to FDC\r
-  \r
+\r
   @retval  EFI_SUCCESS:    Write command byte to FDC successfully\r
   @retval  EFI_DEVICE_ERROR: The FDC is not ready to be written\r
 \r
@@ -1081,10 +1081,10 @@ DataOutByte (
 \r
 /**\r
   Detect the specified floppy logic drive is busy or not within a period of time.\r
-  \r
+\r
   @param FdcDev           Indicate it is drive A or drive B\r
   @param Timeout          The time period for waiting\r
-  \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 Timeout\r
@@ -1135,11 +1135,11 @@ FddWaitForBSYClear (
 \r
 /**\r
   Determine whether FDC is ready to write or read.\r
-  \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  Timeout           The time period for waiting\r
-  \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
 \r
@@ -1196,7 +1196,7 @@ FddDRQReady (
 }\r
 \r
 /**\r
-  Set FDC control structure's attribute according to result. \r
+  Set FDC control structure's attribute according to result.\r
 \r
   @param Result  Point to result structure\r
   @param FdcDev  FDC control structure\r
@@ -1247,9 +1247,9 @@ CheckResult (
 \r
 /**\r
   Check the drive status information.\r
-  \r
+\r
   @param StatusRegister3  the value of Status Register 3\r
-  \r
+\r
   @retval EFI_SUCCESS           The disk is not write protected\r
   @retval EFI_WRITE_PROTECTED:  The disk is write protected\r
 \r
@@ -1268,11 +1268,11 @@ CheckStatus3 (
 \r
 /**\r
   Calculate the number of block in the same cylinder according to LBA.\r
-  \r
+\r
   @param FdcDev FDC_BLK_IO_DEV *: A pointer to FDC_BLK_IO_DEV\r
   @param LBA EFI_LBA:      The starting logic block address\r
   @param NumberOfBlocks UINTN: The number of blocks\r
-  \r
+\r
   @return The number of blocks in the same cylinder which the starting\r
         logic block address is LBA\r
 \r
@@ -1304,7 +1304,7 @@ GetTransferBlockCount (
 \r
 /**\r
   When the Timer(2s) off, turn the drive's motor off.\r
-  \r
+\r
   @param Event EFI_EVENT: Event(the timer) whose notification function is being\r
                      invoked\r
   @param Context VOID *:  Pointer to the notification function's context\r
@@ -1343,7 +1343,7 @@ FddTimerProc (
 \r
 /**\r
   Read an I/O port of FDC.\r
\r
+\r
   @param[in] FdcDev  A pointer to FDC_BLK_IO_DEV.\r
   @param[in] Offset  The address offset of the I/O port.\r
 \r
@@ -1372,7 +1372,7 @@ FdcReadPort (
 \r
 /**\r
   Write an I/O port of FDC.\r
\r
+\r
   @param[in] FdcDev  A pointer to FDC_BLK_IO_DEV\r
   @param[in] Offset  The address offset of the I/O port\r
   @param[in] Data    8-bit Value written to the I/O port\r