summaryrefslogtreecommitdiffstats
path: root/sys/dev/ata/atapi-tape.c
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>1999-12-13 10:19:39 +0000
committersos <sos@FreeBSD.org>1999-12-13 10:19:39 +0000
commitdd933059e17546022cfd5d8f0461def61da4153f (patch)
tree95d9e8c94567790cc48573b6bd6e59bd42ab3e7b /sys/dev/ata/atapi-tape.c
parent20a1c0bf0c5e1385c134b541dbaeb056b0a8d177 (diff)
downloadFreeBSD-src-dd933059e17546022cfd5d8f0461def61da4153f.zip
FreeBSD-src-dd933059e17546022cfd5d8f0461def61da4153f.tar.gz
Add DMA support for the SiS 5591 and old PIIX chipsets.
Add a missing DELAY(1) in ata_wait. Change the info from ad_version, so the ATA version from the disk can be used to quantify the DAM modes valid for this drive, ie be more selective with turning DMA on on older disks that should not support it.. Fix the probe for BIOS enabled DMA in the generic case, master/slave was reversed in the test. Check the return for ata_command in all cases, and print warnings if it fails. Call ata_dmainit with all dmamodes off when falling back to PIO mode, that should take care of both the Promise & HPT366 controllers not being able to handle the fallback... Cleanup the printf's in the drivers, use the prober device name (if possible) instead of ataN-master/slave.
Diffstat (limited to 'sys/dev/ata/atapi-tape.c')
-rw-r--r--sys/dev/ata/atapi-tape.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/ata/atapi-tape.c b/sys/dev/ata/atapi-tape.c
index 9204993..9e4d8ea 100644
--- a/sys/dev/ata/atapi-tape.c
+++ b/sys/dev/ata/atapi-tape.c
@@ -148,6 +148,8 @@ astattach(struct atapi_softc *atp)
UID_ROOT, GID_OPERATOR, 0640, "nrast%d", stp->lun);
dev->si_drv1 = stp;
dev->si_iosize_max = 252 * DEV_BSIZE;
+ if ((stp->atp->devname = malloc(8, M_AST, M_NOWAIT)))
+ sprintf(stp->atp->devname, "ast%d", stp->lun);
return 0;
}
OpenPOWER on IntegriCloud