aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/wormio.h
diff options
context:
space:
mode:
authorJean-Marc Zucconi <jmz@FreeBSD.org>1998-03-31 01:56:29 +0000
committerJean-Marc Zucconi <jmz@FreeBSD.org>1998-03-31 01:56:29 +0000
commitc61333539c4366767acc3b26021d96aaa0c453e9 (patch)
treea1df26dee3304a2b3c1ef21beca1ed666b6f8e68 /sys/sys/wormio.h
parent2dc703e48c3611e0be487c467f27f46aa2b5ab5d (diff)
downloadsrc-c61333539c4366767acc3b26021d96aaa0c453e9.tar.gz
src-c61333539c4366767acc3b26021d96aaa0c453e9.zip
Add an ioctl to retrieve the next writable address.
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
Notes: svn path=/head/; revision=34969
Diffstat (limited to 'sys/sys/wormio.h')
-rw-r--r--sys/sys/wormio.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/sys/wormio.h b/sys/sys/wormio.h
index 249852398b8f..56fbac46d146 100644
--- a/sys/sys/wormio.h
+++ b/sys/sys/wormio.h
@@ -88,7 +88,16 @@ struct wormio_write_session {
u_char *track_desc;
};
#define WORMIOCWRITESESSION _IOW('W', 32, struct wormio_write_session)
-
+
+struct wormio_first_writable_addr {
+ int track;
+ int mode;
+ int raw;
+ int audio;
+ int *addr;
+};
+#define WORMIOCFIRSTWRITABLEADDR _IOWR('W', 33, struct wormio_first_writable_addr)
+
/* Errors/warnings */
#define WORM_SEQUENCE_ERROR 1
#define WORM_DUMMY_BLOCKS_ADDED 2