summaryrefslogtreecommitdiffstats
path: root/sys/dev/ata/atapi-tape.c
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>1999-04-10 18:53:35 +0000
committersos <sos@FreeBSD.org>1999-04-10 18:53:35 +0000
commiteaa27b537c5d047de6f6a009a76007a1c5b93c25 (patch)
treed83660490082d23d2ce1149199fa416bf09738cf /sys/dev/ata/atapi-tape.c
parent27798065075c40d2a717ef6503cde276883204b7 (diff)
downloadFreeBSD-src-eaa27b537c5d047de6f6a009a76007a1c5b93c25.zip
FreeBSD-src-eaa27b537c5d047de6f6a009a76007a1c5b93c25.tar.gz
Sixth update to the new ATA/ATAPI driver:
Fixed problems: Promise controllers was not always set up correctly. Parantheses are a good thing, fixed. Some older CDROM's could hang the probe. Proberly wait for the drive to catch its breath after IDENTIFY. Some CD writers fails because they dont support rezero. Rearranged the code to not use rezero. Warnings now that we use EGCS. Fixed.
Diffstat (limited to 'sys/dev/ata/atapi-tape.c')
-rw-r--r--sys/dev/ata/atapi-tape.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/ata/atapi-tape.c b/sys/dev/ata/atapi-tape.c
index c4e6d1d..e2ecce1 100644
--- a/sys/dev/ata/atapi-tape.c
+++ b/sys/dev/ata/atapi-tape.c
@@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: atapi-tape.c,v 1.4 1999/03/07 21:49:14 sos Exp $
+ * $Id: atapi-tape.c,v 1.5 1999/03/28 18:57:19 sos Exp $
*/
#include "ata.h"
@@ -441,6 +441,7 @@ ast_done(struct atapi_request *request)
(bp->b_flags&B_READ) ? DEVSTAT_READ:DEVSTAT_WRITE);
if (request->result) {
+ /* check for EOM and return ENOSPC */
atapi_error(request->device, request->result);
bp->b_error = EIO;
bp->b_flags |= B_ERROR;
@@ -550,7 +551,7 @@ ast_rewind(struct ast_softc *stp)
static void
ast_drvinit(void *unused)
{
- static ast_devsw_installed = 0;
+ static int32_t ast_devsw_installed = 0;
if (!ast_devsw_installed) {
dev_t dev = makedev(CDEV_MAJOR, 0);
OpenPOWER on IntegriCloud