Source-Changes-HG archive

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

[src/thorpej_scsipi]: src/sys/arch/alpha/tc Adapt to scsipi API changes.



details:   https://anonhg.NetBSD.org/src/rev/4b72d47ee4af
branches:  thorpej_scsipi
changeset: 477282:4b72d47ee4af
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Tue Oct 19 22:03:45 1999 +0000

description:
Adapt to scsipi API changes.

diffstat:

 sys/arch/alpha/tc/asc.c |  18 ++++++------------
 1 files changed, 6 insertions(+), 12 deletions(-)

diffs (46 lines):

diff -r 8b6b52cbbb5a -r 4b72d47ee4af sys/arch/alpha/tc/asc.c
--- a/sys/arch/alpha/tc/asc.c   Tue Oct 19 21:38:27 1999 +0000
+++ b/sys/arch/alpha/tc/asc.c   Tue Oct 19 22:03:45 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: asc.c,v 1.16 1999/09/22 03:32:26 mhitch Exp $ */
+/* $NetBSD: asc.c,v 1.16.2.1 1999/10/19 22:03:45 thorpej Exp $ */
 
 /*-
  * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -78,7 +78,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: asc.c,v 1.16 1999/09/22 03:32:26 mhitch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: asc.c,v 1.16.2.1 1999/10/19 22:03:45 thorpej Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -115,13 +115,6 @@
        sizeof(struct asc_tcds_softc), asc_tcds_match, asc_tcds_attach
 };
 
-struct scsipi_device asc_tcds_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.
  */
@@ -233,9 +226,10 @@
        sc->sc_maxxfer = 64 * 1024;
 
        /* Do the common parts of attachment. */
-       sc->sc_adapter.scsipi_cmd = ncr53c9x_scsi_cmd;
-       sc->sc_adapter.scsipi_minphys = minphys;
-       ncr53c9x_attach(sc, &asc_tcds_dev);
+       sc->sc_adapter.adapt_request = ncr53c9x_scsipi_request;
+       sc->sc_adapter.adapt_minphys = minphys;
+
+       ncr53c9x_attach(sc);
 }
 
 /*



Home | Main Index | Thread Index | Old Index