summaryrefslogtreecommitdiff
path: root/sys/dev/isa/spkrio.h
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1999-01-02 00:02:57 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1999-01-02 00:02:57 +0000
commit16eef665101a8c1334032296ea7d1584ff9c7e57 (patch)
tree5cc9b881cb0bdd13a85c95e2cbd124b47ddc4645 /sys/dev/isa/spkrio.h
parent890d46b55a21bec77e2f60dbf22d16199ccdbaa7 (diff)
Midi & sequencer support from NetBSD, mostly by Lennart Augustsson
Diffstat (limited to 'sys/dev/isa/spkrio.h')
-rw-r--r--sys/dev/isa/spkrio.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/sys/dev/isa/spkrio.h b/sys/dev/isa/spkrio.h
new file mode 100644
index 00000000000..a852cf0782f
--- /dev/null
+++ b/sys/dev/isa/spkrio.h
@@ -0,0 +1,19 @@
+/* $OpenBSD: spkrio.h,v 1.1 1999/01/02 00:02:43 niklas Exp $ */
+/* $NetBSD: spkrio.h,v 1.1 1998/04/15 20:26:19 drochner Exp $ */
+
+/*
+ * spkr.h -- interface definitions for speaker ioctl()
+ */
+
+#ifndef _DEV_ISA_SPKR_H_
+#define _DEV_ISA_SPKR_H_
+
+#define SPKRTONE _IOW('S', 1, tone_t) /* emit tone */
+#define SPKRTUNE _IO('S', 2) /* emit tone sequence */
+
+typedef struct {
+ int frequency; /* in hertz */
+ int duration; /* in 1/100ths of a second */
+} tone_t;
+
+#endif /* _DEV_ISA_SPKR_H_ */