Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/thorpej_scsipi]: src/sys/arch/sun2/sun2 Convert to thorpej_scsipi



details:   https://anonhg.NetBSD.org/src/rev/9196da871617
branches:  thorpej_scsipi
changeset: 477476:9196da871617
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Sat Apr 21 19:25:15 2001 +0000

description:
Convert to thorpej_scsipi

diffstat:

 sys/arch/sun2/sun2/autoconf.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (33 lines):

diff -r 5eee14f06504 -r 9196da871617 sys/arch/sun2/sun2/autoconf.c
--- a/sys/arch/sun2/sun2/autoconf.c     Sat Apr 21 17:46:10 2001 +0000
+++ b/sys/arch/sun2/sun2/autoconf.c     Sat Apr 21 19:25:15 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: autoconf.c,v 1.1.2.2 2001/04/21 17:54:54 bouyer Exp $  */
+/*     $NetBSD: autoconf.c,v 1.1.2.3 2001/04/21 19:25:15 bouyer Exp $  */
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -400,7 +400,7 @@
 {
        struct device *scsibus;
        struct scsibus_softc *sbsc;
-       struct scsipi_link *sc_link;
+       struct scsipi_periph *periph;
        int target, lun;
        char tname[16];
 
@@ -415,11 +415,11 @@
 
        /* Find the device at this target/LUN */
        sbsc = (struct scsibus_softc *)scsibus;
-       sc_link = sbsc->sc_link[target][lun];
-       if (sc_link == NULL)
+       periph = sbsc->sc_channel->chan_periphs[target][lun];
+       if (periph == NULL)
                return (NULL);
 
-       return (sc_link->device_softc);
+       return (periph->periph_dev);
 }
 
 /*



Home | Main Index | Thread Index | Old Index