diff options
author | sos <sos@FreeBSD.org> | 2000-01-07 08:28:41 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 2000-01-07 08:28:41 +0000 |
commit | e69b1ea5c9a5104ae1afe7dd26c89222983ed04e (patch) | |
tree | 4077a36778aded4abe7e9e93c0d578d20a127981 /sys/dev/ata | |
parent | 35c4148f77d496f66ff635642d112ad0066f581a (diff) | |
download | FreeBSD-src-e69b1ea5c9a5104ae1afe7dd26c89222983ed04e.zip FreeBSD-src-e69b1ea5c9a5104ae1afe7dd26c89222983ed04e.tar.gz |
Set PIO mode in all cases.
Diffstat (limited to 'sys/dev/ata')
-rw-r--r-- | sys/dev/ata/atapi-all.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/dev/ata/atapi-all.c b/sys/dev/ata/atapi-all.c index 94362e0..1a77754 100644 --- a/sys/dev/ata/atapi-all.c +++ b/sys/dev/ata/atapi-all.c @@ -139,7 +139,7 @@ atapi_attach(void *notused) atp->atapi_parm->dmaflag); #ifdef ATA_ENABLE_ATAPI_DMA - if (!(atp->atapi_parm->drqtype == ATAPI_DRQT_INTR) && + if (!(atp->atapi_parm->drqtype == ATAPI_DRQT_INTR)) { !ata_dmainit(atp->controller, atp->unit, (apiomode(atp->atapi_parm) < 0) ? (atp->atapi_parm->dmaflag ? 4 : 0) : @@ -149,7 +149,13 @@ atapi_attach(void *notused) wdmamode(atp->atapi_parm), udmamode(atp->atapi_parm))) atp->flags |= ATAPI_F_DMA_ENABLED; + } + else #endif + /* set PIO mode */ + ata_dmainit(atp->controller, atp->unit, + (apiomode(atp->atapi_parm) < 0) ? + 0 : apiomode(atp->atapi_parm), -1, -1); switch (atp->atapi_parm->device_type) { #if NATAPICD > 0 |