Ignore:
Timestamp:
Feb 23, 2021, 10:10:11 PM (4 years ago)
Author:
David Azarewicz
Message:

Add 64/48 bit LBA support.

File:
1 edited

Legend:

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

    r205 r207  
    230230
    231231typedef struct {
    232     USHORT Cylinders;
     232    ULONG Cylinders;
    233233    USHORT HeadsPerCylinder;
    234234    USHORT SectorsPerTrack;
    235     ULONG  TotalSectors;
     235    ULONGLONG  TotalSectors;
    236236    char *Method;
    237237} DEV_INFO;
     
    248248  u32           dma_buf_phys;          /* 14 physical address of DMA scratch buffer */
    249249  u8           *dma_buf;               /* 18 DMA scatch buffers */
     250  u32 unaligned_read_count;
     251  u32 error_count;
     252  u32 ulResetCount; /* added in 2.07 */
    250253
    251254  struct {                             /* 1c */
     
    263266    char dev_name[AHCI_DEV_NAME_LEN];
    264267  } devs[AHCI_MAX_DEVS];
    265 
    266   u32 unaligned_read_count;
    267   u32 error_count;
    268   u32 ulResetCount; /* added in 2.07 */
    269268} P_INFO;
    270269
     
    313312  unsigned short processing    :1;     /* 0e IORB is being processd */
    314313  unsigned short idempotent    :1;     /*    IORB is idempotent (can be retried) */
     314  unsigned short fIs64bit      :1;     /* Transaction is a 64 bit operation */
    315315  unsigned short queued_hw     :1;     /*    IORB has been queued to hardware */
    316316  unsigned short no_ncq        :1;     /*    must not use native command queuing */
     
    354354                                   /* These are the four entries which correspond to the entries in the partition table. */
    355355} DLA_Table_Sector, *PDLA_Table_Sector;
     356
     357typedef struct _ahcistats_
     358{
     359  ULONG ulSize;
     360  ULONG ulVersion;
     361  ULONG ulTestCount3;
     362  ULONG ulTestCount2;
     363  ULONG ulTestCount1;
     364} AHCISTATS;
    356365
    357366static inline unsigned long readl(void *a)
     
    487496extern int suspended; /* indicates if the driver is suspended */
    488497extern int resume_sleep_flag;
     498extern AHCISTATS AhciStats;
    489499
    490500/* port restart context hook and input data */
Note: See TracChangeset for help on using the changeset viewer.