st.c (b7e56edba4b02f2079042c326a8cd72a44635817) st.c (8a78362c4eefc1deddbefe2c7f38aabbc2429d6b)
1/*
2 SCSI Tape Driver for Linux version 1.1 and newer. See the accompanying
3 file Documentation/scsi/st.txt for more information.
4
5 History:
6 Rewritten from Dwayne Forsyth's SCSI tape driver by Kai Makisara.
7 Contribution and ideas from several people including (in alphabetical
8 order) Klaus Ehrenfried, Eugene Exarevsky, Eric Lee Green, Wolfgang Denk,

--- 3969 unchanged lines hidden (view full) ---

3978 if (SDp->type != TYPE_TAPE)
3979 return -ENODEV;
3980 if ((stp = st_incompatible(SDp))) {
3981 sdev_printk(KERN_INFO, SDp, "Found incompatible tape\n");
3982 printk(KERN_INFO "st: The suggested driver is %s.\n", stp);
3983 return -ENODEV;
3984 }
3985
1/*
2 SCSI Tape Driver for Linux version 1.1 and newer. See the accompanying
3 file Documentation/scsi/st.txt for more information.
4
5 History:
6 Rewritten from Dwayne Forsyth's SCSI tape driver by Kai Makisara.
7 Contribution and ideas from several people including (in alphabetical
8 order) Klaus Ehrenfried, Eugene Exarevsky, Eric Lee Green, Wolfgang Denk,

--- 3969 unchanged lines hidden (view full) ---

3978 if (SDp->type != TYPE_TAPE)
3979 return -ENODEV;
3980 if ((stp = st_incompatible(SDp))) {
3981 sdev_printk(KERN_INFO, SDp, "Found incompatible tape\n");
3982 printk(KERN_INFO "st: The suggested driver is %s.\n", stp);
3983 return -ENODEV;
3984 }
3985
3986 i = min(queue_max_hw_segments(SDp->request_queue),
3987 queue_max_phys_segments(SDp->request_queue));
3986 i = queue_max_segments(SDp->request_queue);
3988 if (st_max_sg_segs < i)
3989 i = st_max_sg_segs;
3990 buffer = new_tape_buffer((SDp->host)->unchecked_isa_dma, i);
3991 if (buffer == NULL) {
3992 printk(KERN_ERR
3993 "st: Can't allocate new tape buffer. Device not attached.\n");
3994 goto out;
3995 }

--- 622 unchanged lines hidden ---
3987 if (st_max_sg_segs < i)
3988 i = st_max_sg_segs;
3989 buffer = new_tape_buffer((SDp->host)->unchecked_isa_dma, i);
3990 if (buffer == NULL) {
3991 printk(KERN_ERR
3992 "st: Can't allocate new tape buffer. Device not attached.\n");
3993 goto out;
3994 }

--- 622 unchanged lines hidden ---