Fix non-AHCI channels detection on combined JMicron controllers,

broken by r188694.
This commit is contained in:
Alexander Motin 2009-02-23 22:13:05 +00:00
parent 3a3f90c6c3
commit 9738772d4e

View File

@ -132,6 +132,8 @@ ata_jmicron_chipinit(device_t dev)
/* set the number of HW channels */
ctlr->channels = ctlr->chip->cfg1 + ctlr->chip->cfg2;
ctlr->ichannels |= ((0xffffffffU >> (32 - ctlr->chip->cfg2))
<< ctlr->chip->cfg1);
}
return 0;
}