Ignore:
Timestamp:
Nov 10, 2010, 11:14:21 AM (15 years ago)
Author:
markus
Message:

fixed NCQ disabling via switch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/os2ahci/ahci.c

    r37 r42  
    14411441  ai->ports[p].devs[d].removable = (id_buf[ATA_ID_CONFIG] & 0x0080U) != 0;
    14421442  ai->ports[p].devs[d].dev_type  = UIB_TYPE_DISK;
    1443 
     1443 
    14441444  if (id_buf[ATA_ID_CONFIG] & 0x8000U) {
    14451445    /* this is an ATAPI device; augment device information */
     
    14531453      /* MT: set ncq_max to 1 if NCQ is disabled for this port */
    14541454      ai->ports[p].devs[d].ncq_max = 1;
     1455      dprintf("NCQ off for a:%d p:%d\n", (int) ad_no(ai), p);
    14551456    } else {
    14561457      ai->ports[p].devs[d].ncq_max = id_buf[ATA_ID_QUEUE_DEPTH] & 0x001fU;
     1458      dprintf("NCQ max=%d for a:%d p:%d\n", ai->ports[p].devs[d].ncq_max, (int) ad_no(ai), p);
    14571459    }
    14581460
Note: See TracChangeset for help on using the changeset viewer.