Oops, fix compile error due to the new way of storing the transfer mode.
This commit is contained in:
parent
930ba557d5
commit
6a7f51845b
@ -87,12 +87,12 @@ atapi_attach(struct ata_softc *scp, int32_t device)
|
||||
|
||||
#ifdef ATA_ENABLE_ATAPI_DMA
|
||||
if (!(ATP_PARAM->drqtype == ATAPI_DRQT_INTR)) {
|
||||
if (!ata_dmainit(atp->controller, atp->unit,
|
||||
(ata_pmode(ATP_PARAM) < 0) ?
|
||||
(ATP_PARAM->dmaflag ? 4 : 0) : ata_pmode(ATP_PARAM),
|
||||
(ata_wmode(ATP_PARAM) < 0) ?
|
||||
(ATP_PARAM->dmaflag ? 2 : 0) : ata_wmode(ATP_PARAM),
|
||||
ata_umode(ATP_PARAM)))
|
||||
ata_dmainit(atp->controller, atp->unit,
|
||||
(ata_pmode(ATP_PARAM) < 0) ?
|
||||
(ATP_PARAM->dmaflag ? 4 : 0) : ata_pmode(ATP_PARAM),
|
||||
(ata_wmode(ATP_PARAM) < 0) ?
|
||||
(ATP_PARAM->dmaflag ? 2 : 0) : ata_wmode(ATP_PARAM),
|
||||
ata_umode(ATP_PARAM));
|
||||
}
|
||||
else
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user