aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ata/atapi-tape.c
diff options
context:
space:
mode:
authorSøren Schmidt <sos@FreeBSD.org>1999-03-05 09:43:30 +0000
committerSøren Schmidt <sos@FreeBSD.org>1999-03-05 09:43:30 +0000
commit2e526e2ac0812995e9cdb4ee3c58ef1413b9c414 (patch)
tree9b1595f8d5888ab83bb9e9656721d93771123552 /sys/dev/ata/atapi-tape.c
parentabd022381de2e66f8ce6765f06555136aa3b826e (diff)
downloadsrc-2e526e2ac0812995e9cdb4ee3c58ef1413b9c414.tar.gz
src-2e526e2ac0812995e9cdb4ee3c58ef1413b9c414.zip
Now all actual probing of both ATA & ATAPI devices are done after
interrupts are enabled, this kills the last "unwanted interrupts" (and there is no ugly hacks like in the old driver to avoid them). COmmand interrupt devices are now supported, this applies mostly to older CDROM's and apparently also the ZIP. Fixed problems: Number of total sectors wrong on some older drives. Fixed by not using the LBA size unless we know its valid. There has also been more general code clenaups, some reorgs also.
Notes
Notes: svn path=/head/; revision=44475
Diffstat (limited to 'sys/dev/ata/atapi-tape.c')
-rw-r--r--sys/dev/ata/atapi-tape.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/ata/atapi-tape.c b/sys/dev/ata/atapi-tape.c
index c51521dea829..d938cc2ddae1 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.1 1999/03/01 21:19:18 sos Exp $
+ * $Id: atapi-tape.c,v 1.2 1999/03/03 21:10:29 sos Exp $
*/
#include "ata.h"
@@ -209,7 +209,7 @@ ast_describe(struct ast_softc *stp)
printf("\n");
}
-static int32_t
+static int
astopen(dev_t dev, int32_t flags, int32_t fmt, struct proc *p)
{
int32_t lun = UNIT(dev);
@@ -228,7 +228,7 @@ astopen(dev_t dev, int32_t flags, int32_t fmt, struct proc *p)
return 0;
}
-static int32_t
+static int
astclose(dev_t dev, int32_t flags, int32_t fmt, struct proc *p)
{
int32_t lun = UNIT(dev);
@@ -257,19 +257,19 @@ astclose(dev_t dev, int32_t flags, int32_t fmt, struct proc *p)
return 0;
}
-static int32_t
+static int
astread(dev_t dev, struct uio *uio, int32_t ioflag)
{
return physio(aststrategy, NULL, dev, 1, minphys, uio);
}
-static int32_t
+static int
astwrite(dev_t dev, struct uio *uio, int32_t ioflag)
{
return physio(aststrategy, NULL, dev, 0, minphys, uio);
}
-static int32_t
+static int
astioctl(dev_t dev, u_long cmd, caddr_t addr, int32_t flag, struct proc *p)
{
int32_t lun = UNIT(dev);