diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1996-04-25 06:37:20 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1996-04-25 06:37:20 +0000 |
commit | e5f403bb164d8ffbcf3ed2dfb761fe37d9a5db7e (patch) | |
tree | f79a6c534d589d386f5fdf45e4c8fb5f2a221a2f /sys/arch/hp300/dev/ac.c | |
parent | fdab626a6398ea411367b27d210f9c1b227f6283 (diff) |
sync w/ Net 960424
Diffstat (limited to 'sys/arch/hp300/dev/ac.c')
-rw-r--r-- | sys/arch/hp300/dev/ac.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sys/arch/hp300/dev/ac.c b/sys/arch/hp300/dev/ac.c index 89e9241d213..c90eb0875ae 100644 --- a/sys/arch/hp300/dev/ac.c +++ b/sys/arch/hp300/dev/ac.c @@ -1,4 +1,4 @@ -/* $NetBSD: ac.c,v 1.3 1995/12/02 18:21:49 thorpej Exp $ */ +/* $NetBSD: ac.c,v 1.4 1996/02/14 02:43:54 thorpej Exp $ */ /* * Copyright (c) 1991 University of Utah. @@ -118,6 +118,7 @@ acattach(hd) (void)acident(sc, hd, 1); /* XXX Ick. */ + sc->sc_dq.dq_softc = sc; sc->sc_dq.dq_unit = unit; sc->sc_dq.dq_ctlr = hd->hp_ctlr; sc->sc_dq.dq_slave = hd->hp_slave; @@ -422,13 +423,15 @@ acgo(unit) } } -acintr(unit, stat) - int unit, stat; +acintr(arg, stat) + void *arg; + int stat; { - register struct ac_softc *sc = &ac_softc[unit]; + register struct ac_softc *sc = arg; register struct buf *bp = sc->sc_bp; u_char sensebuf[78]; struct scsi_xsense *sp; + int unit = sc->sc_hd->hp_unit; #ifdef DEBUG if (ac_debug & ACD_FOLLOW) |