tmc18c30_subr.c (160334) | tmc18c30_subr.c (194023) |
---|---|
1/*- 2 * [Ported for FreeBSD] 3 * Copyright (c) 2000 4 * Noriaki Mitsunaga, Mitsuru Iwasaki and Takanori Watanabe. 5 * All rights reserved. 6 * [NetBSD for NEC PC-98 series] 7 * Copyright (c) 1996, 1997, 1998 8 * NetBSD/pc98 porting staff. All rights reserved. --- 23 unchanged lines hidden (view full) --- 32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 33 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 34 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 35 * POSSIBILITY OF SUCH DAMAGE. 36 * 37 */ 38 39#include <sys/cdefs.h> | 1/*- 2 * [Ported for FreeBSD] 3 * Copyright (c) 2000 4 * Noriaki Mitsunaga, Mitsuru Iwasaki and Takanori Watanabe. 5 * All rights reserved. 6 * [NetBSD for NEC PC-98 series] 7 * Copyright (c) 1996, 1997, 1998 8 * NetBSD/pc98 porting staff. All rights reserved. --- 23 unchanged lines hidden (view full) --- 32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 33 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 34 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 35 * POSSIBILITY OF SUCH DAMAGE. 36 * 37 */ 38 39#include <sys/cdefs.h> |
40__FBSDID("$FreeBSD: head/sys/dev/stg/tmc18c30_subr.c 160334 2006-07-14 04:35:59Z imp $"); | 40__FBSDID("$FreeBSD: head/sys/dev/stg/tmc18c30_subr.c 194023 2009-06-11 17:14:28Z avg $"); |
41 42#include <sys/param.h> 43#include <sys/systm.h> 44#include <sys/kernel.h> 45#include <sys/socket.h> 46 47#include <sys/module.h> 48#include <sys/bus.h> --- 108 unchanged lines hidden (view full) --- 157 158 s = splcam(); 159 stgattachsubr(sc); 160 splx(s); 161 162 return(STGIOSZ); 163} 164 | 41 42#include <sys/param.h> 43#include <sys/systm.h> 44#include <sys/kernel.h> 45#include <sys/socket.h> 46 47#include <sys/module.h> 48#include <sys/bus.h> --- 108 unchanged lines hidden (view full) --- 157 158 s = splcam(); 159 stgattachsubr(sc); 160 splx(s); 161 162 return(STGIOSZ); 163} 164 |
165void | 165int |
166stg_detach (device_t dev) 167{ 168 struct stg_softc *sc = device_get_softc(dev); 169 intrmask_t s; 170 171 s = splcam(); 172 scsi_low_deactivate((struct scsi_low_softc *)sc); 173 scsi_low_dettach(&sc->sc_sclow); 174 splx(s); 175 stg_release_resource(dev); | 166stg_detach (device_t dev) 167{ 168 struct stg_softc *sc = device_get_softc(dev); 169 intrmask_t s; 170 171 s = splcam(); 172 scsi_low_deactivate((struct scsi_low_softc *)sc); 173 scsi_low_dettach(&sc->sc_sclow); 174 splx(s); 175 stg_release_resource(dev); |
176 return; | 176 return (0); |
177} 178 179void 180stg_intr (void *arg) 181{ 182 stgintr(arg); 183 return; 184} | 177} 178 179void 180stg_intr (void *arg) 181{ 182 stgintr(arg); 183 return; 184} |