VirtualBox

Ignore:
Timestamp:
Oct 28, 2010 9:27:05 AM (14 years ago)
Author:
vboxsync
Message:

*: spelling fixes, thanks Timeless!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/Firmware2/VBoxPkg/VBoxIdeBusDxe/Ata.c

    r33027 r33540  
    3030  @par Revision Reference:
    3131  2002-6: Add Atapi6 enhancement, support >120GB hard disk, including
    32   update - ATAIdentity() func
     32  update - ATAIdentify() func
    3333  update - AtaBlockIoReadBlocks() func
    3434  update - AtaBlockIoWriteBlocks() func
     
    5151  @retval EFI_SUCCESS       The disk specified by IdeDev is a Atapi6 supported one and
    5252                            48-bit addressing must be used
    53   @retval EFI_UNSUPPORTED   The disk dosn't not support Atapi6 or it supports but the
     53  @retval EFI_UNSUPPORTED   The disk doesn't not support Atapi6 or it supports but the
    5454                            capacity is below 120G, 48bit addressing is not needed
    5555  @retval  EFI_DEVICE_ERROR      The identify data in IdeDev is incorrect
     
    8585  if ((Atapi6IdentifyStruct->AtapiData.cmd_set_support_83 & BIT10) == 0) {
    8686    //
    87     // The device dosn't support 48 bit addressing
     87    // The device doesn't support 48 bit addressing
    8888    //
    8989    return EFI_UNSUPPORTED;
     
    575575
    576576  //
    577   // used to record bytes of currently transfered data
     577  // used to record bytes of currently transferred data
    578578  //
    579579  WordCount = 0;
     
    11411141  Protocol, supporting ATA/ATAPI-6 standard
    11421142
    1143   Comparing with ATA-3 data in protocol, we have two differents here:
     1143  Comparing with ATA-3 data in protocol, we have two differences here:
    11441144  1. Do NOT wait for DRQ clear before sending command into IDE device.(the
    11451145  wait will frequently fail... cause writing function return error)
    11461146
    1147   2. Do NOT wait for DRQ clear after all data readed.(the wait greatly
     1147  2. Do NOT wait for DRQ clear after all data read.(the wait greatly
    11481148  slow down writing performance by 100 times!)
    11491149
     
    11541154  @param AtaCommand   value of the Command Register
    11551155  @param StartLba     the start LBA of this transaction
    1156   @param SectorCount  the count of sectors to be transfered
     1156  @param SectorCount  the count of sectors to be transferred
    11571157
    11581158  @retval EFI_SUCCESS      send out the ATA command and device send required data successfully.
     
    11971197
    11981198  //
    1199   // Wait for DRDY singnal asserting. ATAPI device needn't wait
     1199  // Wait for DRDY signal asserting. ATAPI device needn't wait
    12001200  //
    12011201  if ( (IdeDev->Type == IdeHardDisk)  ||
     
    12591259
    12601260  //
    1261   // used to record bytes of currently transfered data
     1261  // used to record bytes of currently transferred data
    12621262  //
    12631263  WordCount = 0;
     
    16401640      //
    16411641      //  SectorCount is used to record the number of sectors to be read
    1642       //  Max 65536 sectors can be transfered at a time.
     1642      //  Max 65536 sectors can be transferred at a time.
    16431643      //
    16441644      NumberOfBlocks = MaxDmaCommandSectors;
     
    20052005      //
    20062006      //  SectorCount is used to record the number of sectors to be read
    2007       //  Max 65536 sectors can be transfered at a time.
     2007      //  Max 65536 sectors can be transferred at a time.
    20082008      //
    20092009      SectorCount = 0xffff;
     
    21252125  if (IdeBlkIoDevice->Type == Ide48bitAddressingHardDisk) {
    21262126    //
    2127     // For ATA/ATAPI-6 device(capcity > 120GB), use ATA-6 read block mechanism
     2127    // For ATA/ATAPI-6 device(capacity > 120GB), use ATA-6 read block mechanism
    21282128    //
    21292129    if (IdeBlkIoDevice->UdmaMode.Valid) {
     
    21552155  PIO Data Out Protocol, supporting ATA/ATAPI-6 standard
    21562156
    2157   Comparing with ATA-3 data out protocol, we have two differents here:<BR>
     2157  Comparing with ATA-3 data out protocol, we have two differences here:<BR>
    21582158  1. Do NOT wait for DRQ clear before sending command into IDE device.(the
    21592159  wait will frequently fail... cause writing function return error)
    21602160
    2161   2. Do NOT wait for DRQ clear after all data readed.(the wait greatly
     2161  2. Do NOT wait for DRQ clear after all data read.(the wait greatly
    21622162  slow down writing performance by 100 times!)
    21632163
     
    21682168  @param AtaCommand   value of the Command Register
    21692169  @param StartLba     the start LBA of this transaction
    2170   @param SectorCount  the count of sectors to be transfered
     2170  @param SectorCount  the count of sectors to be transferred
    21712171
    21722172  @retval EFI_SUCCESS      send out the ATA command and device receive required
     
    22122212
    22132213  //
    2214   // Wait for DRDY singnal asserting.
     2214  // Wait for DRDY signal asserting.
    22152215  //
    22162216  Status = DRDYReady (IdeDev, ATATIMEOUT);
     
    22662266
    22672267  //
    2268   // used to record bytes of currently transfered data
     2268  // used to record bytes of currently transferred data
    22692269  //
    22702270  WordCount = 0;
     
    23972397      //
    23982398      //  SectorCount is used to record the number of sectors to be written.
    2399       //  Max 65536 sectors can be transfered at a time.
     2399      //  Max 65536 sectors can be transferred at a time.
    24002400      //
    24012401      SectorCount = 0xffff;
     
    25122512  if (IdeBlkIoDevice->Type == Ide48bitAddressingHardDisk) {
    25132513    //
    2514     // For ATA/ATAPI-6 device(capcity > 120GB), use ATA-6 write block mechanism
     2514    // For ATA/ATAPI-6 device(capacity > 120GB), use ATA-6 write block mechanism
    25152515    //
    25162516    if (IdeBlkIoDevice->UdmaMode.Valid) {
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette