155141Storek /* 2*63322Sbostic * Copyright (c) 1992, 1993 3*63322Sbostic * The Regents of the University of California. All rights reserved. 455141Storek * 555141Storek * This software was developed by the Computer Systems Engineering group 655141Storek * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and 755141Storek * contributed to Berkeley. 855141Storek * 955503Sbostic * All advertising materials mentioning features or use of this software 1055503Sbostic * must display the following acknowledgement: 1155503Sbostic * This product includes software developed by the University of 1259213Storek * California, Lawrence Berkeley Laboratory. 1355503Sbostic * 1455141Storek * %sccs.include.redist.c% 1555141Storek * 16*63322Sbostic * @(#)sbusvar.h 8.1 (Berkeley) 06/11/93 1755141Storek * 1859213Storek * from: $Header: sbusvar.h,v 1.6 92/11/26 02:28:14 torek Exp $ (LBL) 1955141Storek */ 2055141Storek 2155141Storek /* 2255141Storek * S-bus variables. 2355141Storek */ 2455141Storek struct sbusdev { 2555141Storek struct device *sd_dev; /* backpointer to generic */ 2655141Storek struct sbusdev *sd_bchain; /* forward link in bus chain */ 2755141Storek void (*sd_reset) __P((struct device *)); 2855141Storek }; 2955141Storek 3055141Storek /* 3155141Storek * Sbus driver attach arguments. 3255141Storek */ 3355141Storek struct sbus_attach_args { 3455141Storek struct romaux sa_ra; /* name, node, addr, etc */ 3555141Storek int sa_slot; /* Sbus slot number */ 3655141Storek int sa_offset; /* offset within slot */ 3755141Storek }; 3855141Storek 3955141Storek /* variables per Sbus */ 4055141Storek struct sbus_softc { 4155141Storek struct device sc_dev; /* base device */ 4255141Storek int sc_clockfreq; /* clock frequency (in Hz) */ 4355141Storek struct sbusdev *sc_sbdev; /* list of all children */ 4455141Storek }; 4555141Storek 4655141Storek int sbusdev_match __P((struct cfdata *, void *)); 4755141Storek void sbus_establish __P((struct sbusdev *, struct device *)); 48