Ignore:
Timestamp:
Jun 2, 2013, 5:10:06 AM (12 years ago)
Author:
David Azarewicz
Message:

driver info updates, misc cleanup, add comments
This is version 1.28

File:
1 edited

Legend:

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

    r161 r162  
    333333} IORB_QUEUE;
    334334
     335typedef struct {
     336    USHORT Cylinders;
     337    USHORT HeadsPerCylinder;
     338    USHORT SectorsPerTrack;
     339    ULONG  TotalSectors;
     340    char *Method;
     341} DEV_INFO;
     342
    335343/* port information structure */
    336344typedef struct {
    337345  IORB_QUEUE    iorb_queue;            /* IORB queue for this port */
    338   unsigned      dev_max     : 4;       /* maximum device number on this port (0-15) */
     346  unsigned      dev_max     : 4;       /* maximum device number on this port (0..AHCI_MAX_DEVS-1) */
    339347  unsigned      cmd_slot    : 5;       /* current command slot index (using round-
    340348                                        * robin indexes to prevent starvation) */
     
    353361    unsigned    ncq_max   : 5;         /* maximum tag number for queued commands */
    354362    UNITINFO _far *unit_info;          /* pointer to modified unit info */
    355   } devs[15];
     363    DEV_INFO    dev_info;
     364  } devs[AHCI_MAX_DEVS];
    356365} P_INFO;
    357366
     
    360369  PCI_ID       *pci;                   /* pointer to corresponding PCI ID */
    361370
    362   unsigned      port_max : 5;          /* maximum port number (0-31) */
     371  unsigned      port_max : 5;          /* maximum port number (0..AHCI_MAX_PORTS-1) */
    363372  unsigned      cmd_max : 5;           /* maximum cmd slot number (0-31) */
    364373  unsigned      port_scan_done : 1;    /* if != 0, port scan already done */
Note: See TracChangeset for help on using the changeset viewer.