Source-Changes-HG archive

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

[src/thorpej_scsipi]: src/sys/arch/sparc/dev Correct attach to ncr53c9x.



details:   https://anonhg.NetBSD.org/src/rev/8efb48d8a514
branches:  thorpej_scsipi
changeset: 477405:8efb48d8a514
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Fri Mar 23 11:35:16 2001 +0000

description:
Correct attach to ncr53c9x.

diffstat:

 sys/arch/sparc/dev/esp_obio.c |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (26 lines):

diff -r d97d3aa92925 -r 8efb48d8a514 sys/arch/sparc/dev/esp_obio.c
--- a/sys/arch/sparc/dev/esp_obio.c     Fri Mar 23 11:32:51 2001 +0000
+++ b/sys/arch/sparc/dev/esp_obio.c     Fri Mar 23 11:35:16 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: esp_obio.c,v 1.4.10.1 2000/11/20 20:25:31 bouyer Exp $ */
+/*     $NetBSD: esp_obio.c,v 1.4.10.2 2001/03/23 11:35:16 bouyer Exp $ */
 
 /*-
  * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -261,11 +261,13 @@
        evcnt_attach_dynamic(&sc->sc_intrcnt, EVCNT_TYPE_INTR, NULL,
            sc->sc_dev.dv_xname, "intr");
 
-       /* Do the common parts of attachment. */
-       ncr53c9x_attach(sc, NULL, NULL);
-
        /* Turn on target selection using the `dma' method */
        ncr53c9x_dmaselect = 1;
+
+       /* Do the common parts of attachment. */
+       sc->sc_adapter.adapt_minphys = minphys;
+       sc->sc_adapter.adapt_request = ncr53c9x_scsipi_request;
+       ncr53c9x_attach(sc);
 }
 
 /*



Home | Main Index | Thread Index | Old Index