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 Properly initiatize sc->sc_wdcdev.set_mo...
details: https://anonhg.NetBSD.org/src/rev/103338807b42
branches: trunk
changeset: 514722:103338807b42
user: bouyer <bouyer%NetBSD.org@localhost>
date: Sun Sep 09 16:08:49 2001 +0000
description:
Properly initiatize sc->sc_wdcdev.set_modes for non-DMA controllers.
diffstat:
sys/arch/macppc/dev/wdc_obio.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (21 lines):
diff -r 554000ba1401 -r 103338807b42 sys/arch/macppc/dev/wdc_obio.c
--- a/sys/arch/macppc/dev/wdc_obio.c Sun Sep 09 15:55:29 2001 +0000
+++ b/sys/arch/macppc/dev/wdc_obio.c Sun Sep 09 16:08:49 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wdc_obio.c,v 1.16 2001/08/02 12:41:39 bouyer Exp $ */
+/* $NetBSD: wdc_obio.c,v 1.17 2001/09/09 16:08:49 bouyer Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -184,7 +184,11 @@
sc->sc_wdcdev.DMA_cap = 1;
}
#endif
+ } else {
+ /* all non-dma controllers can use adjust_timing */
+ sc->sc_wdcdev.set_modes = adjust_timing;
}
+
sc->sc_wdcdev.PIO_cap = 4;
sc->sc_wdcdev.cap |= WDC_CAPABILITY_DATA16 | WDC_CAPABILITY_MODE;
sc->wdc_chanptr = chp;
Home |
Main Index |
Thread Index |
Old Index