diff options
| author | Søren Schmidt <sos@FreeBSD.org> | 2000-01-07 08:28:41 +0000 |
|---|---|---|
| committer | Søren Schmidt <sos@FreeBSD.org> | 2000-01-07 08:28:41 +0000 |
| commit | e960abaf96e77c12fe0e35bf3fe4ed8cbe310468 (patch) | |
| tree | 33acfacec8ff86e176251e98d8b37f720b99ba9c /sys/dev | |
| parent | 9204aeeb1394820404ce0e495b596c3443a9765a (diff) | |
Notes
Diffstat (limited to 'sys/dev')
| -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 94362e00a9cb..1a777544c407 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 |
