Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/macppc/dev attempt to make these compile again afte...



details:   https://anonhg.NetBSD.org/src/rev/c7c5e1bf6d6f
branches:  trunk
changeset: 557210:c7c5e1bf6d6f
user:      dbj <dbj%NetBSD.org@localhost>
date:      Sun Jan 04 07:08:13 2004 +0000

description:
attempt to make these compile again after recent wdc changes.

diffstat:

 sys/arch/macppc/dev/kauai.c    |  12 ++++++------
 sys/arch/macppc/dev/wdc_obio.c |  16 ++++++++--------
 2 files changed, 14 insertions(+), 14 deletions(-)

diffs (112 lines):

diff -r 2ed8363344f0 -r c7c5e1bf6d6f sys/arch/macppc/dev/kauai.c
--- a/sys/arch/macppc/dev/kauai.c       Sun Jan 04 06:37:16 2004 +0000
+++ b/sys/arch/macppc/dev/kauai.c       Sun Jan 04 07:08:13 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kauai.c,v 1.11 2004/01/03 22:56:53 thorpej Exp $       */
+/*     $NetBSD: kauai.c,v 1.12 2004/01/04 07:08:13 dbj Exp $   */
 
 /*-
  * Copyright (c) 2003 Tsubai Masanari.  All rights reserved.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kauai.c,v 1.11 2004/01/03 22:56:53 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kauai.c,v 1.12 2004/01/04 07:08:13 dbj Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -58,7 +58,7 @@
 
 struct kauai_softc {
        struct wdc_softc sc_wdcdev;
-       struct wdc_channel wdc_chanlist[1];
+       struct wdc_channel *wdc_chanptr;
        struct wdc_channel wdc_channel;
        struct ata_queue wdc_queue;
        dbdma_regmap_t *sc_dmareg;
@@ -176,8 +176,8 @@
        sc->sc_wdcdev.UDMA_cap = 5;
        sc->sc_wdcdev.cap |= WDC_CAPABILITY_DATA16 | WDC_CAPABILITY_MODE;
        sc->sc_wdcdev.cap |= WDC_CAPABILITY_DMA | WDC_CAPABILITY_UDMA;
-       sc->wdc_chanlist[0] = chp;
-       sc->sc_wdcdev.channels = sc->wdc_chanlist;
+       sc->wdc_chanptr = chp;
+       sc->sc_wdcdev.channels = &sc->wdc_chanptr;
        sc->sc_wdcdev.nchannels = 1;
        sc->sc_wdcdev.dma_arg = sc;
        sc->sc_wdcdev.dma_init = kauai_dma_init;
@@ -198,7 +198,7 @@
 kauai_set_modes(chp)
        struct wdc_channel *chp;
 {
-       struct kauai_softc *sc = (void *)chp->wdc;
+       struct kauai_softc *sc = (void *)chp->ch_wdc;
        struct ata_drive_datas *drvp0 = &chp->ch_drive[0];
        struct ata_drive_datas *drvp1 = &chp->ch_drive[1];
        struct ata_drive_datas *drvp;
diff -r 2ed8363344f0 -r c7c5e1bf6d6f sys/arch/macppc/dev/wdc_obio.c
--- a/sys/arch/macppc/dev/wdc_obio.c    Sun Jan 04 06:37:16 2004 +0000
+++ b/sys/arch/macppc/dev/wdc_obio.c    Sun Jan 04 07:08:13 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wdc_obio.c,v 1.35 2004/01/03 22:56:53 thorpej Exp $    */
+/*     $NetBSD: wdc_obio.c,v 1.36 2004/01/04 07:08:13 dbj Exp $        */
 
 /*-
  * Copyright (c) 1998, 2003 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wdc_obio.c,v 1.35 2004/01/03 22:56:53 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wdc_obio.c,v 1.36 2004/01/04 07:08:13 dbj Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -70,7 +70,7 @@
 
 struct wdc_obio_softc {
        struct wdc_softc sc_wdcdev;
-       struct wdc_channel wdc_chanptr[1];
+       struct wdc_channel *wdc_chanptr;
        struct wdc_channel wdc_channel;
        struct ata_queue wdc_chqueue;
        dbdma_regmap_t *sc_dmareg;
@@ -206,8 +206,8 @@
 
        sc->sc_wdcdev.PIO_cap = 4;
        sc->sc_wdcdev.cap |= WDC_CAPABILITY_DATA16 | WDC_CAPABILITY_MODE;
-       sc->wdc_chanlist[0] = chp;
-       sc->sc_wdcdev.channels = sc->wdc_chanlist;
+       sc->wdc_chanptr = chp;
+       sc->sc_wdcdev.channels = &sc->wdc_chanptr;
        sc->sc_wdcdev.nchannels = 1;
        sc->sc_wdcdev.dma_arg = sc;
        sc->sc_wdcdev.dma_init = wdc_obio_dma_init;
@@ -276,7 +276,7 @@
        struct wdc_channel *chp;
        int drive;
 {
-       struct wdc_obio_softc *sc = (struct wdc_obio_softc *)chp->wdc;
+       struct wdc_obio_softc *sc = (struct wdc_obio_softc *)chp->ch_wdc;
        bus_space_write_4(chp->cmd_iot, chp->cmd_baseioh,
                        CONFIG_REG, sc->sc_dmaconf[drive]);
 }
@@ -285,7 +285,7 @@
 adjust_timing(chp)
        struct wdc_channel *chp;
 {
-       struct wdc_obio_softc *sc = (struct wdc_obio_softc *)chp->wdc;
+       struct wdc_obio_softc *sc = (struct wdc_obio_softc *)chp->ch_wdc;
        int drive;
        int min_cycle = 0, min_active = 0;
        int cycle_tick = 0, act_tick = 0, inact_tick = 0, half_tick;
@@ -352,7 +352,7 @@
 ata4_adjust_timing(chp)
        struct wdc_channel *chp;
 {
-       struct wdc_obio_softc *sc = (struct wdc_obio_softc *)chp->wdc;
+       struct wdc_obio_softc *sc = (struct wdc_obio_softc *)chp->ch_wdc;
        int drive;
        int min_cycle = 0, min_active = 0;
        int cycle_tick = 0, act_tick = 0, inact_tick = 0;



Home | Main Index | Thread Index | Old Index