date and time created 92/07/13 00:44:08 by torek
authorChris Torek <torek@ucbvax.Berkeley.EDU>
Mon, 13 Jul 1992 15:44:08 +0000 (07:44 -0800)
committerChris Torek <torek@ucbvax.Berkeley.EDU>
Mon, 13 Jul 1992 15:44:08 +0000 (07:44 -0800)
SCCS-vsn: sys/sparc/sbus/sbusvar.h 7.1

usr/src/sys/sparc/sbus/sbusvar.h [new file with mode: 0644]

diff --git a/usr/src/sys/sparc/sbus/sbusvar.h b/usr/src/sys/sparc/sbus/sbusvar.h
new file mode 100644 (file)
index 0000000..fd6fbbd
--- /dev/null
@@ -0,0 +1,42 @@
+/*
+ * Copyright (c) 1992 The Regents of the University of California.
+ * All rights reserved.
+ *
+ * This software was developed by the Computer Systems Engineering group
+ * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and
+ * contributed to Berkeley.
+ *
+ * %sccs.include.redist.c%
+ *
+ *     @(#)sbusvar.h   7.1 (Berkeley) %G%
+ *
+ * from: $Header: sbusvar.h,v 1.5 92/06/17 06:59:44 torek Exp $ (LBL)
+ */
+
+/*
+ * S-bus variables.
+ */
+struct sbusdev {
+       struct  device *sd_dev;         /* backpointer to generic */
+       struct  sbusdev *sd_bchain;     /* forward link in bus chain */
+       void    (*sd_reset) __P((struct device *));
+};
+
+/*
+ * Sbus driver attach arguments.
+ */
+struct sbus_attach_args {
+       struct  romaux sa_ra;           /* name, node, addr, etc */
+       int     sa_slot;                /* Sbus slot number */
+       int     sa_offset;              /* offset within slot */
+};
+
+/* variables per Sbus */
+struct sbus_softc {
+       struct  device sc_dev;          /* base device */
+       int     sc_clockfreq;           /* clock frequency (in Hz) */
+       struct  sbusdev *sc_sbdev;      /* list of all children */
+};
+
+int    sbusdev_match __P((struct cfdata *, void *));
+void   sbus_establish __P((struct sbusdev *, struct device *));