summaryrefslogtreecommitdiff
path: root/sys/dev/pci/envyvar.h
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2010-10-04 09:32:44 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2010-10-04 09:32:44 +0000
commitf84cf1511433a461e1100580ad4218223d560cc9 (patch)
tree83d330db7244226e6a7573eacf44e659a180364f /sys/dev/pci/envyvar.h
parent823a39b560bdcfbee97983ce2176d5d47a5efc11 (diff)
add support for midi(4) ports to envy(4)
Diffstat (limited to 'sys/dev/pci/envyvar.h')
-rw-r--r--sys/dev/pci/envyvar.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/dev/pci/envyvar.h b/sys/dev/pci/envyvar.h
index 78f6dafe004..c9347f7125f 100644
--- a/sys/dev/pci/envyvar.h
+++ b/sys/dev/pci/envyvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: envyvar.h,v 1.15 2010/03/07 18:55:45 ratchov Exp $ */
+/* $OpenBSD: envyvar.h,v 1.16 2010/10/04 09:32:43 ratchov Exp $ */
/*
* Copyright (c) 2007 Alexandre Ratchov <alex@caoua.org>
*
@@ -22,6 +22,7 @@
#include <sys/device.h>
#include <sys/time.h>
#include <dev/audio_if.h>
+#include <dev/midi_if.h>
struct envy_softc;
@@ -93,6 +94,12 @@ struct envy_softc {
void *iarg;
void (*ointr)(void *);
void *oarg;
+#if NMIDI > 0
+ void (*midi_in)(void *, int);
+ void (*midi_out)(void *);
+ void *midi_arg;
+ struct device *midi;
+#endif
};
#define ENVY_MIX_CLASSIN 0