summaryrefslogtreecommitdiff
path: root/sys/arch/i386/eisa/eisa_machdep.h
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-04-21 22:33:19 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-04-21 22:33:19 +0000
commit67d88b0a9910a68bb666b448d2dac29cb4d3d8c2 (patch)
tree967b89f6e07398a22bd8c76d30179b648776542d /sys/arch/i386/eisa/eisa_machdep.h
parentba95d3c1d69cdb251d15a12ebf70f50b0ea2019b (diff)
partial sync with netbsd 960418, more to come
Diffstat (limited to 'sys/arch/i386/eisa/eisa_machdep.h')
-rw-r--r--sys/arch/i386/eisa/eisa_machdep.h32
1 files changed, 28 insertions, 4 deletions
diff --git a/sys/arch/i386/eisa/eisa_machdep.h b/sys/arch/i386/eisa/eisa_machdep.h
index e7ba6579fff..2e4f1019e2f 100644
--- a/sys/arch/i386/eisa/eisa_machdep.h
+++ b/sys/arch/i386/eisa/eisa_machdep.h
@@ -1,5 +1,5 @@
-/* $OpenBSD: eisa_machdep.h,v 1.1 1996/04/18 18:56:27 niklas Exp $ */
-/* $NetBSD: eisa_machdep.h,v 1.1 1996/03/04 03:26:14 cgd Exp $ */
+/* $OpenBSD: eisa_machdep.h,v 1.2 1996/04/21 22:16:19 deraadt Exp $ */
+/* $NetBSD: eisa_machdep.h,v 1.2 1996/04/09 23:00:27 cgd Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All rights reserved.
@@ -32,9 +32,33 @@
*/
/*
- * The "EISA" signature is in the BIOS of EISA systems. We use it
- * to determine whether or not we have an EISA bus.
+ * Machine-specific definitions for EISA autoconfiguration.
+ */
+
+/*
+ * i386-specific EISA definitions.
+ * NOT TO BE USED DIRECTLY BY MACHINE INDEPENDENT CODE.
*/
#define EISA_ID "EISA"
#define EISA_ID_LEN (sizeof(EISA_ID) - 1)
#define EISA_ID_PADDR 0xfffd9
+
+/*
+ * Types provided to machine-independent EISA code.
+ */
+typedef void *eisa_chipset_tag_t;
+typedef int eisa_intr_handle_t;
+
+/*
+ * Functions provided to machine-independent EISA code.
+ */
+void eisa_attach_hook __P((struct device *, struct device *,
+ struct eisabus_attach_args *));
+int eisa_maxslots __P((eisa_chipset_tag_t));
+int eisa_intr_map __P((eisa_chipset_tag_t, u_int,
+ eisa_intr_handle_t *));
+const char *eisa_intr_string __P((eisa_chipset_tag_t, eisa_intr_handle_t));
+void *eisa_intr_establish __P((eisa_chipset_tag_t,
+ eisa_intr_handle_t, int, int, int (*)(void *), void *,
+ char *));
+void eisa_intr_disestablish __P((eisa_chipset_tag_t, void *));