summaryrefslogtreecommitdiff
path: root/sys/arch/luna88k/cbus/cbusvar.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/luna88k/cbus/cbusvar.h')
-rw-r--r--sys/arch/luna88k/cbus/cbusvar.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/sys/arch/luna88k/cbus/cbusvar.h b/sys/arch/luna88k/cbus/cbusvar.h
new file mode 100644
index 00000000000..547a2371c16
--- /dev/null
+++ b/sys/arch/luna88k/cbus/cbusvar.h
@@ -0,0 +1,46 @@
+/* $OpenBSD: cbusvar.h,v 1.1 2014/12/19 13:17:35 aoyama Exp $ */
+
+/*
+ * Copyright (c) 2014 Kenji Aoyama.
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+/*
+ * PC-9801 extension board slot bus ('C-bus') driver for LUNA-88K2.
+ */
+
+#include <sys/evcount.h>
+#include <sys/queue.h>
+
+/*
+ * Currently 7 level C-bus interrupts (INT0 - INT6) are supported.
+ */
+#define NCBUSISR 7
+
+/*
+ * C-bus interrupt handler
+ */
+struct cbus_isr_t {
+ int (*isr_func)(void *);
+ void *isr_arg;
+ struct evcount isr_count;
+};
+
+int cbus_isrlink(int (*)(void *), void *, int, const char *);
+int cbus_isrunlink(int (*)(void *), int);
+void cbus_isrdispatch(int);
+
+struct cbus_attach_args {
+ int intlevel;
+};