Source-Changes-HG archive

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

[src/netbsd-1-5]: src/sys/dev/ic Pull up revision 1.33 (via patch, requested ...



details:   https://anonhg.NetBSD.org/src/rev/a20ec50264fe
branches:  netbsd-1-5
changeset: 492567:a20ec50264fe
user:      he <he%NetBSD.org@localhost>
date:      Wed Jan 16 10:14:50 2002 +0000

description:
Pull up revision 1.33 (via patch, requested by dbj):
  Add UDMA support and allow separate DMA timings to be programmed
  for two different devices on the same wdc channel on the macppc.
  The machine-independent driver is updated to optionally use the
  WDC_CAPABILITY_SELECT callback whenever a target is selected on
  a channel.

diffstat:

 sys/dev/ic/wdcvar.h |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (27 lines):

diff -r 48c3c0623713 -r a20ec50264fe sys/dev/ic/wdcvar.h
--- a/sys/dev/ic/wdcvar.h       Wed Jan 16 10:07:02 2002 +0000
+++ b/sys/dev/ic/wdcvar.h       Wed Jan 16 10:14:50 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wdcvar.h,v 1.25.2.1 2001/12/27 12:28:39 he Exp $       */
+/*     $NetBSD: wdcvar.h,v 1.25.2.2 2002/01/16 10:14:50 he Exp $       */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -99,6 +99,7 @@
 #define WDC_CAPABILITY_NO_EXTRA_RESETS 0x0100 /* only reset once */
 #define WDC_CAPABILITY_PREATA 0x0200 /* ctrl can be a pre-ata one */
 #define WDC_CAPABILITY_IRQACK 0x0400 /* callback to ack interrupt */
+#define WDC_CAPABILITY_SELECT  0x2000  /* Controller selects target */
        u_int8_t      PIO_cap; /* highest PIO mode supported */
        u_int8_t      DMA_cap; /* highest DMA mode supported */
        u_int8_t      UDMA_cap; /* highest UDMA mode supported */
@@ -131,6 +132,9 @@
        /* if WDC_CAPABILITY_MODE set in 'cap' */
        void            (*set_modes) __P((struct channel_softc *));
 
+       /* if WDC_CAPABILITY_SELECT set in 'cap' */
+       void            (*select) __P((struct channel_softc *,int));
+
        /* if WDC_CAPABILITY_IRQACK set in 'cap' */
        void            (*irqack) __P((struct channel_softc *));
 };



Home | Main Index | Thread Index | Old Index