155141Storek /* 255141Storek * Copyright (c) 1992 The Regents of the University of California. 355141Storek * 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 * 9*55503Sbostic * All advertising materials mentioning features or use of this software 10*55503Sbostic * must display the following acknowledgement: 11*55503Sbostic * This product includes software developed by the University of 12*55503Sbostic * California, Lawrence Berkeley Laboratories. 13*55503Sbostic * 1455141Storek * %sccs.include.redist.c% 1555141Storek * 16*55503Sbostic * @(#)sbusvar.h 7.2 (Berkeley) 07/21/92 1755141Storek * 1855141Storek * from: $Header: sbusvar.h,v 1.5 92/06/17 06:59:44 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