path: root/sys/sys/wormio.h
Commit message (Collapse)AuthorAgeFilesLines
* This file isn't needed anymore, has symbols that conflicts with cdrio.hDavid E. O'Brien2000-04-261-117/+0
| | | | | | | which produces warnings when compiling kdump. Notes: svn path=/head/; revision=59647
* Move a couple of ioctl defines from wormcontrol.c to wormio.h. These arePeter Wemm1999-10-011-0/+4
| | | | | | | used in the dev/ata/atapi-cd driver too. Notes: svn path=/head/; revision=51839
* Add an ioctl to retrieve the next writable address.Jean-Marc Zucconi1998-03-311-1/+10
| | | | | | | | | Defer the WRITE SESSION command until the first write command, so that it works like the prepare track command, allowing the device to be closed after the command. Notes: svn path=/head/; revision=34969
* Add 2 new ioctls: WORMIOCREADSESSIONINFO and WORMIOCWRITESESSION.Jean-Marc Zucconi1997-06-021-0/+17
| | | | | | | | | These commands are required for the "Disk-At-Once" write process: WORMIOCREADSESSIONINFO returns the length of the lead-in and lead-out areas and WORMIOCWRITESESSION is used to send the table of contents of the disk. Notes: svn path=/head/; revision=26392
* A few improvements to the worm driver.Jean-Marc Zucconi1997-05-191-13/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - remove all calls to scsi_stop_unit(). Some drives refuse commands when stopped. This will fix the 'device not configured' message which was cleared after opening/closing the tray. - Never set the logical block address in the scsi_cmd struct when writing. The computation was bogus for block sizes not a multiple of DEV_BSIZE. (the bug is still there in the READ case) - reset the block size to the 2048 bytes in finalize_track() track to avoid an error when mounting a disk after an audio write. - remove the WORMIOCQUIRKSELECT ioctl. Quirks are now recorded at probe time (see scsiconf.c) - change and expand the argument to the WORMIOCPREPTRACK ioctl. It now possible to select more track options (copy bits, ISRC codes, track type, track number) - add an error handler to catch false errors (warnings in fact) and record the error type. - add an ioctl call (WORMIOERROR) to get more information on the nature of the error when a command or a write failed. - add an ioctl call (WORMIOCFINISHTRACK) to finalize a track without closing the device (closing the device still finalize the track if the command was not performed) Approved by: joerg Notes: svn path=/head/; revision=25935
* Cleaned up all headers that include <sys/ioctl.h> or <sys/ioccom.h>:Bruce Evans1996-09-211-5/+6
| | | | | | | | | | | | | | | | - don't include <sys/ioctl.h> in any header. Include <sys/ioccom.h> instead. This was already done in 4.4Lite for the most important ioctl headers. Header spam currently increases kernel build times by 10-20%. There are more than 30000 #includes (not counting duplicates) for compiling LINT. - include <sys/types.h> if and only it is necessary to make the header almost self-sufficient (some ioctl headers still need structs from elsewhere). - uniformized idempotency ifdefs. Copied the style in the 4.4Lite ioctl headers. Notes: svn path=/head/; revision=18444
* Add <sys/wormio.h>, containing the declarations that are shared betweenJoerg Wunsch1996-01-271-0/+62
kernel and userland. Notes: svn path=/head/; revision=13651