xref: /original-bsd/sys/sparc/sbus/sbusvar.h (revision 3705696b)
1 /*
2  * Copyright (c) 1992, 1993
3  *	The Regents of the University of California.  All rights reserved.
4  *
5  * This software was developed by the Computer Systems Engineering group
6  * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and
7  * contributed to Berkeley.
8  *
9  * All advertising materials mentioning features or use of this software
10  * must display the following acknowledgement:
11  *	This product includes software developed by the University of
12  *	California, Lawrence Berkeley Laboratory.
13  *
14  * %sccs.include.redist.c%
15  *
16  *	@(#)sbusvar.h	8.1 (Berkeley) 06/11/93
17  *
18  * from: $Header: sbusvar.h,v 1.6 92/11/26 02:28:14 torek Exp $ (LBL)
19  */
20 
21 /*
22  * S-bus variables.
23  */
24 struct sbusdev {
25 	struct	device *sd_dev;		/* backpointer to generic */
26 	struct	sbusdev *sd_bchain;	/* forward link in bus chain */
27 	void	(*sd_reset) __P((struct device *));
28 };
29 
30 /*
31  * Sbus driver attach arguments.
32  */
33 struct sbus_attach_args {
34 	struct	romaux sa_ra;		/* name, node, addr, etc */
35 	int	sa_slot;		/* Sbus slot number */
36 	int	sa_offset;		/* offset within slot */
37 };
38 
39 /* variables per Sbus */
40 struct sbus_softc {
41 	struct	device sc_dev;		/* base device */
42 	int	sc_clockfreq;		/* clock frequency (in Hz) */
43 	struct	sbusdev *sc_sbdev;	/* list of all children */
44 };
45 
46 int	sbusdev_match __P((struct cfdata *, void *));
47 void	sbus_establish __P((struct sbusdev *, struct device *));
48