[BACK]Return to ncr53c9x.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / dev / ic

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/dev/ic/ncr53c9x.c between version 1.145 and 1.145.20.2

version 1.145, 2012/06/18 21:23:56 version 1.145.20.2, 2017/03/20 06:57:28
Line 286  ncr53c9x_attach(struct ncr53c9x_softc *s
Line 286  ncr53c9x_attach(struct ncr53c9x_softc *s
   
         /*          /*
          * Add reference to adapter so that we drop the reference after           * Add reference to adapter so that we drop the reference after
          * config_found() to make sure the adatper is disabled.           * config_found() to make sure the adapter is disabled.
          */           */
         if (scsipi_adapter_addref(adapt) != 0) {          if (scsipi_adapter_addref(adapt) != 0) {
                 aprint_error_dev(sc->sc_dev, "unable to enable controller\n");                  aprint_error_dev(sc->sc_dev, "unable to enable controller\n");
Line 296  ncr53c9x_attach(struct ncr53c9x_softc *s
Line 296  ncr53c9x_attach(struct ncr53c9x_softc *s
         /* Reset state & bus */          /* Reset state & bus */
         sc->sc_cfflags = device_cfdata(sc->sc_dev)->cf_flags;          sc->sc_cfflags = device_cfdata(sc->sc_dev)->cf_flags;
         sc->sc_state = 0;          sc->sc_state = 0;
         ncr53c9x_init(sc, 1);          ncr53c9x_init(sc, 0);   /* no bus reset yet, leave that to scsibus* */
   
         /*          /*
          * Now try to attach all the sub-devices           * Now try to attach all the sub-devices
Line 555  ncr53c9x_init(struct ncr53c9x_softc *sc,
Line 555  ncr53c9x_init(struct ncr53c9x_softc *sc,
         if (doreset) {          if (doreset) {
                 sc->sc_state = NCR_SBR;                  sc->sc_state = NCR_SBR;
                 NCRCMD(sc, NCRCMD_RSTSCSI);                  NCRCMD(sc, NCRCMD_RSTSCSI);
   
                   /* Notify upper layer */
                   scsipi_async_event(&sc->sc_channel, ASYNC_EVENT_RESET, NULL);
         } else {          } else {
                 sc->sc_state = NCR_IDLE;                  sc->sc_state = NCR_IDLE;
                 ncr53c9x_sched(sc);                  ncr53c9x_sched(sc);
         }          }
   
         /* Notify upper layer */  
         scsipi_async_event(&sc->sc_channel, ASYNC_EVENT_RESET, NULL);  
   
         /* XXXSMP scsipi */          /* XXXSMP scsipi */
         KERNEL_UNLOCK_ONE(curlwp);          KERNEL_UNLOCK_ONE(curlwp);
 }  }

Legend:
Removed from v.1.145  
changed lines
  Added in v.1.145.20.2

CVSweb <webmaster@jp.NetBSD.org>