Changeset 82 for trunk/src/os2ahci/ata.h


Ignore:
Timestamp:
Mar 2, 2011, 11:48:03 PM (14 years ago)
Author:
chris
Message:

Version 1.09
============

  • Added new command line parameter, "/4", which will force a track size of 56 sectors to be reported in geometry requests. This will improve performance for newer HDs with 4K sectors and file systems which use block sizes larger than 512 bytes (FAT, JFS, ...) because all partitions will be aligned on 4K (8 sector) boundaries.
  • Changed AP_DEVICE parameter to ata_cmd() from 16 bits to 8 bits -- the corresponding field in ATA_CMD has always been 8 bits and there's no point discarding the lower 8 bits of the AP_DEVICE parameter as a general rule. Besides, it confused me in the end...
  • Always return some kind of error in ata_req_sense() because this function will only be called when we received an error interrupt; atapi_req_sense() already does this.
  • Cosmetic changes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/os2ahci/ata.h

    r76 r82  
    2121
    2222/* -------------------------- macros and constants ------------------------- */
     23
     24/******************************************************************************
     25 * Right now, os2ahci uses a fixed sector size of 512 bytes for hard disks.
     26 * This may change in the future...
     27 */
     28#define ATA_SECTOR_SIZE    512
    2329
    2430/******************************************************************************
     
    411417  AP_SECTOR_28,    /* [u32]               28-bit sector address              */
    412418  AP_SECTOR_48,    /* [u32, u16]          48-bit sector address              */
    413   AP_DEVICE,       /* [u16]               ATA cmd "device" field (LSB masked) */
     419  AP_DEVICE,       /* [u16]               ATA cmd "device" field             */
    414420  AP_SGLIST,       /* [void _far *, u16]  buffer S/G (SCATGATENTRY/count)    */
    415421  AP_VADDR,        /* [void _far *, u16]  buffer virtual address (buf/len)   */
Note: See TracChangeset for help on using the changeset viewer.