Source-Changes-HG archive

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

[src/jdolecek-ncq]: src/sys/dev/pci kill dead code



details:   https://anonhg.NetBSD.org/src/rev/188421248907
branches:  jdolecek-ncq
changeset: 822993:188421248907
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Sat Aug 05 13:22:01 2017 +0000

description:
kill dead code

diffstat:

 sys/dev/pci/acardide.c |  42 ++----------------------------------------
 1 files changed, 2 insertions(+), 40 deletions(-)

diffs (60 lines):

diff -r b1dbc092ffc4 -r 188421248907 sys/dev/pci/acardide.c
--- a/sys/dev/pci/acardide.c    Fri Aug 04 20:53:46 2017 +0000
+++ b/sys/dev/pci/acardide.c    Sat Aug 05 13:22:01 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: acardide.c,v 1.31 2013/10/07 19:51:55 jakllsch Exp $   */
+/*     $NetBSD: acardide.c,v 1.31.18.1 2017/08/05 13:22:01 jdolecek Exp $      */
 
 /*-
  * Copyright (c) 2001 Izumi Tsutsui.  All rights reserved.
@@ -25,7 +25,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acardide.c,v 1.31 2013/10/07 19:51:55 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acardide.c,v 1.31.18.1 2017/08/05 13:22:01 jdolecek Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -292,41 +292,3 @@
                pci_conf_write(sc->sc_pc, sc->sc_tag, ATP860_UDMA, udma_mode);
        }
 }
-
-#if 0 /* XXX !! */
-static int
-acard_pci_intr(void *arg)
-{
-       struct pciide_softc *sc = arg;
-       struct pciide_channel *cp;
-       struct ata_channel *wdc_cp;
-       int rv = 0;
-       int dmastat, i, crv;
-
-       for (i = 0; i < sc->sc_wdcdev.sc_atac.atac_nchannels; i++) {
-               cp = &sc->pciide_channels[i];
-               dmastat = bus_space_read_1(sc->sc_dma_iot,
-                   cp->dma_iohs[IDEDMA_CTL], 0);
-               if ((dmastat & IDEDMA_CTL_INTR) == 0)
-                       continue;
-               wdc_cp = &cp->ata_channel;
-               if ((wdc_cp->ch_flags & ATACH_IRQ_WAIT) == 0) {
-                       (void)wdcintr(wdc_cp);
-                       bus_space_write_1(sc->sc_dma_iot,
-                           cp->dma_iohs[IDEDMA_CTL], 0, dmastat);
-                       continue;
-               }
-               crv = wdcintr(wdc_cp);
-               if (crv == 0) {
-                       printf("%s:%d: bogus intr\n",
-                           device_xname(sc->sc_wdcdev.sc_atac.atac_dev), i);
-                       bus_space_write_1(sc->sc_dma_iot,
-                           cp->dma_iohs[IDEDMA_CTL], 0, dmastat);
-               } else if (crv == 1)
-                       rv = 1;
-               else if (rv == 0)
-                       rv = crv;
-       }
-       return rv;
-}
-#endif



Home | Main Index | Thread Index | Old Index