summaryrefslogtreecommitdiffstats
path: root/sys/dev/ata/atapi-cd.c
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>1999-11-24 21:40:05 +0000
committersos <sos@FreeBSD.org>1999-11-24 21:40:05 +0000
commit42b1a184cc764d7b708c377a71086cfe577afb36 (patch)
tree3d1312a0e5fed6c7864d25cef1a529c977252357 /sys/dev/ata/atapi-cd.c
parente0791da2562bf73cc81e807b086b3c3c433ac096 (diff)
downloadFreeBSD-src-42b1a184cc764d7b708c377a71086cfe577afb36.zip
FreeBSD-src-42b1a184cc764d7b708c377a71086cfe577afb36.tar.gz
Add DMA support for the VIA 82C586 & 82C686 chips, also rearrange
to fall back to slower speeds if the faster ones fails to probe. Log and retry request on UDMA CRC errors. Fix a couple of warnings.
Diffstat (limited to 'sys/dev/ata/atapi-cd.c')
-rw-r--r--sys/dev/ata/atapi-cd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ata/atapi-cd.c b/sys/dev/ata/atapi-cd.c
index 5e01911..cc18ecf 100644
--- a/sys/dev/ata/atapi-cd.c
+++ b/sys/dev/ata/atapi-cd.c
@@ -104,7 +104,7 @@ acdattach(struct atapi_softc *atp)
{
struct acd_softc *cdp;
struct changer *chp;
- int32_t error, count;
+ int32_t count, error = 0;
static int32_t acd_cdev_done = 0, acdnlun = 0;
if (!acd_cdev_done) {
OpenPOWER on IntegriCloud