aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/wormio.h
diff options
context:
space:
mode:
authorJean-Marc Zucconi <jmz@FreeBSD.org>1997-06-02 20:05:39 +0000
committerJean-Marc Zucconi <jmz@FreeBSD.org>1997-06-02 20:05:39 +0000
commit7344a61e7b90cfafdd29926a4e17aebb01478610 (patch)
tree0efd46a52ca74145dc8f3f3c0a6f508b0b606a83 /sys/sys/wormio.h
parent1a26f4c024e5073717ff97306e7c082b82148966 (diff)
downloadsrc-7344a61e7b90cfafdd29926a4e17aebb01478610.tar.gz
src-7344a61e7b90cfafdd29926a4e17aebb01478610.zip
Add 2 new ioctls: WORMIOCREADSESSIONINFO and WORMIOCWRITESESSION.
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
Notes: svn path=/head/; revision=26392
Diffstat (limited to 'sys/sys/wormio.h')
-rw-r--r--sys/sys/wormio.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/sys/sys/wormio.h b/sys/sys/wormio.h
index 646247ba6737..249852398b8f 100644
--- a/sys/sys/wormio.h
+++ b/sys/sys/wormio.h
@@ -72,6 +72,23 @@ struct wormio_fixation
*/
#define WORMIOCFINISHTRACK _IO('W', 23)
+
+struct wormio_session_info {
+ u_short lead_in;
+ u_short lead_out;
+};
+#define WORMIOCREADSESSIONINFO _IOR('W', 31, struct wormio_session_info)
+
+struct wormio_write_session {
+ int toc_type;
+ int onp;
+ int lofp;
+ int length;
+ char catalog[13];
+ u_char *track_desc;
+};
+#define WORMIOCWRITESESSION _IOW('W', 32, struct wormio_write_session)
+
/* Errors/warnings */
#define WORM_SEQUENCE_ERROR 1
#define WORM_DUMMY_BLOCKS_ADDED 2