summaryrefslogtreecommitdiff
path: root/sys/arch/vax/bi/bivar.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/vax/bi/bivar.h')
-rw-r--r--sys/arch/vax/bi/bivar.h34
1 files changed, 24 insertions, 10 deletions
diff --git a/sys/arch/vax/bi/bivar.h b/sys/arch/vax/bi/bivar.h
index 57960ce2aa4..6ee0c4cf91b 100644
--- a/sys/arch/vax/bi/bivar.h
+++ b/sys/arch/vax/bi/bivar.h
@@ -1,7 +1,7 @@
-/* $OpenBSD: bivar.h,v 1.2 1997/05/29 00:04:17 niklas Exp $ */
-/* $NetBSD: bivar.h,v 1.1 1996/07/19 14:26:54 ragge Exp $ */
+/* $OpenBSD: bivar.h,v 1.3 2000/04/28 03:42:39 bjc Exp $ */
+/* $NetBSD: bivar.h,v 1.5 2000/03/26 11:45:04 ragge Exp $ */
/*
- * Copyright (c) 1996 Ludd, University of Lule}, Sweden.
+ * Copyright (c) 1996, 1999 Ludd, University of Lule}, Sweden.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -14,8 +14,8 @@
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
- * This product includes software developed at Ludd, University of
- * Lule}, Sweden and its contributors.
+ * This product includes software developed at Ludd, University of
+ * Lule}, Sweden and its contributors.
* 4. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission
*
@@ -37,17 +37,27 @@
* per-BI-adapter state.
*/
struct bi_softc {
- struct device bi_dev;
- struct bi_node *bi_base;
+ struct device sc_dev;
+ bus_space_tag_t sc_iot; /* Space tag for the BI bus */
+ bus_dma_tag_t sc_dmat;
+ bus_addr_t sc_addr; /* Address base address for this bus */
+ int sc_busnr; /* (Physical) number of this bus */
+ int sc_lastiv; /* last available interrupt vector */
+ int sc_intcpu;
};
/*
* Struct used for autoconfiguration; attaching of BI nodes.
*/
struct bi_attach_args {
- struct bi_node *ba_node;
- int ba_nodenr;
+ bus_space_tag_t ba_iot;
+ bus_space_handle_t ba_ioh; /* Base address for this node */
+ bus_dma_tag_t ba_dmat;
+ int ba_busnr;
+ int ba_nodenr;
int ba_intcpu; /* Mask of which cpus to interrupt */
+ int ba_ivec; /* Interrupt vector to use */
+ void *ba_icookie;
};
/*
@@ -55,6 +65,10 @@ struct bi_attach_args {
*/
struct bi_list {
u_short bl_nr; /* Unit ID# */
- u_short bl_havedriver; /* Have device driver */
+ u_short bl_havedriver; /* Have device driver (informal) */
char *bl_name; /* DEC name */
};
+
+/* Prototype */
+void bi_attach __P((struct bi_softc *));
+void bi_intr_establish __P((void *, int, void (*)(void *), void *));