aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/wormio.h
diff options
context:
space:
mode:
authorJoerg Wunsch <joerg@FreeBSD.org>1996-01-27 17:49:47 +0000
committerJoerg Wunsch <joerg@FreeBSD.org>1996-01-27 17:49:47 +0000
commitb10fe1a96df9ceea79107eee5f358c96f66b3c4b (patch)
tree35e9599c3cae4937445647f0b97409920c7e197f /sys/sys/wormio.h
parent984afdcfd2da34ad437c00d12b68eae613b3af0f (diff)
downloadsrc-b10fe1a96df9ceea79107eee5f358c96f66b3c4b.tar.gz
src-b10fe1a96df9ceea79107eee5f358c96f66b3c4b.zip
Add <sys/wormio.h>, containing the declarations that are shared between
kernel and userland.
Notes
Notes: svn path=/head/; revision=13651
Diffstat (limited to 'sys/sys/wormio.h')
-rw-r--r--sys/sys/wormio.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/sys/sys/wormio.h b/sys/sys/wormio.h
new file mode 100644
index 000000000000..38af90a35a35
--- /dev/null
+++ b/sys/sys/wormio.h
@@ -0,0 +1,62 @@
+/* Shared between kernel & process */
+#ifndef _SYS_WORMIO_H_
+#define _SYS_WORMIO_H_
+
+/***************************************************************\
+* Ioctls for the WORM drive *
+\***************************************************************/
+
+/*
+ * Quirk select: chose the set of quirk functions to use for this
+ * device.
+ */
+
+struct wormio_quirk_select
+{
+ const char *vendor; /* vendor name */
+ const char *model; /* model name */
+};
+
+#define WORMIOCQUIRKSELECT _IOW('W', 10, struct wormio_quirk_select)
+
+/*
+ * Prepare disk-wide parameters.
+ */
+
+struct wormio_prepare_disk
+{
+ int dummy; /* use dummy writes, laser turned off */
+ int speed; /* drive speed selection */
+};
+
+#define WORMIOCPREPDISK _IOW('W', 20, struct wormio_prepare_disk)
+
+/*
+ * Prepare track-specific parameters.
+ */
+
+struct wormio_prepare_track
+{
+ int audio; /* audio track (data track if 0) */
+ int preemp; /* audio with preemphasis */
+};
+
+#define WORMIOCPREPTRACK _IOW('W', 21, struct wormio_prepare_track)
+
+/*
+ * Fixation: write leadins and leadouts. Select table-of-contents
+ * type for this session. If onp is != 0, another session will be
+ * opened.
+ */
+
+struct wormio_fixation
+{
+ int toc_type; /* TOC type */
+ int onp; /* open next program area */
+};
+
+#define WORMIOCFIXATION _IOW('W', 22, struct wormio_fixation)
+
+
+#endif /* _SYS_WORMIO_H_ */
+