Source-Changes-HG archive

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

[src/thorpej_scsipi]: src/sys/dev/sbus Adapt for scsipi API changes.



details:   https://anonhg.NetBSD.org/src/rev/1da0967b519f
branches:  thorpej_scsipi
changeset: 477272:1da0967b519f
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Tue Oct 19 17:54:18 1999 +0000

description:
Adapt for scsipi API changes.

diffstat:

 sys/dev/sbus/esp_sbus.c |  19 ++++++-------------
 1 files changed, 6 insertions(+), 13 deletions(-)

diffs (43 lines):

diff -r b599d9d71f18 -r 1da0967b519f sys/dev/sbus/esp_sbus.c
--- a/sys/dev/sbus/esp_sbus.c   Tue Oct 19 17:47:28 1999 +0000
+++ b/sys/dev/sbus/esp_sbus.c   Tue Oct 19 17:54:18 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: esp_sbus.c,v 1.6 1999/03/26 06:48:40 mjacob Exp $      */
+/*     $NetBSD: esp_sbus.c,v 1.6.8.1 1999/10/19 17:54:18 thorpej Exp $ */
 
 /*-
  * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -98,13 +98,6 @@
        sizeof(struct esp_softc), espmatch_sbus, espattach_dma
 };
 
-static struct scsipi_device esp_sbus_dev = {
-       NULL,                   /* Use default error handler */
-       NULL,                   /* have a queue, served by this */
-       NULL,                   /* have no async handler */
-       NULL,                   /* Use default 'done' routine */
-};
-
 /*
  * Functions and the switch for the MI code.
  */
@@ -399,14 +392,14 @@
        /* register interrupt stats */
        evcnt_attach(&sc->sc_dev, "intr", &sc->sc_intrcnt);
 
-       /* Do the common parts of attachment. */
-       sc->sc_adapter.scsipi_cmd = ncr53c9x_scsi_cmd;
-       sc->sc_adapter.scsipi_minphys = minphys;
-       ncr53c9x_attach(sc, &esp_sbus_dev);
-
        /* Turn on target selection using the `dma' method */
        ncr53c9x_dmaselect = 1;
 
+       /* Do the common parts of attachment. */
+       sc->sc_adapter.adapt_request = ncr53c9x_scsipi_request;
+       sc->sc_adapter.adapt_minphys = minphys;
+       ncr53c9x_attach(sc);
+
        bootpath_store(1, NULL);
 }
 



Home | Main Index | Thread Index | Old Index