From: Chris Torek Date: Mon, 13 Jul 1992 15:44:08 +0000 (-0800) Subject: date and time created 92/07/13 00:44:08 by torek X-Git-Tag: BSD-4_4-Snapshot-Development~5775 X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/commitdiff_plain/6d0aa45fea7175011fd004ffd88ad45609d9e52e date and time created 92/07/13 00:44:08 by torek SCCS-vsn: sys/sparc/sbus/sbusvar.h 7.1 --- diff --git a/usr/src/sys/sparc/sbus/sbusvar.h b/usr/src/sys/sparc/sbus/sbusvar.h new file mode 100644 index 0000000000..fd6fbbd33b --- /dev/null +++ b/usr/src/sys/sparc/sbus/sbusvar.h @@ -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 *));