summaryrefslogtreecommitdiff
path: root/sys/dev/isa/pas.c
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1999-01-07 06:14:50 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1999-01-07 06:14:50 +0000
commitdec339aa2f66a28789b0d29d392dd49c56eef81e (patch)
tree2572ff564bc75c5f4e9f847ead06116a6c268a85 /sys/dev/isa/pas.c
parentc6e598578066b27bd22e830b671021d1abd28ee2 (diff)
Die, NEWCONFIG
Diffstat (limited to 'sys/dev/isa/pas.c')
-rw-r--r--sys/dev/isa/pas.c43
1 files changed, 1 insertions, 42 deletions
diff --git a/sys/dev/isa/pas.c b/sys/dev/isa/pas.c
index 77a3108b062..ed3dad5bf18 100644
--- a/sys/dev/isa/pas.c
+++ b/sys/dev/isa/pas.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pas.c,v 1.18 1999/01/02 00:02:46 niklas Exp $ */
+/* $OpenBSD: pas.c,v 1.19 1999/01/07 06:14:48 niklas Exp $ */
/* $NetBSD: pas.c,v 1.37 1998/01/12 09:43:43 thorpej Exp $ */
/*
@@ -373,19 +373,6 @@ pasprobe(parent, match, aux)
DPRINTF(("pas: configured dma chan %d invalid\n", ia->ia_drq));
goto unmap;
}
-#ifdef NEWCONFIG
- /*
- * If the IRQ wasn't compiled in, auto-detect it.
- */
- if (ia->ia_irq == IRQUNK) {
- ia->ia_irq = isa_discoverintr(pasforceintr, aux);
- sbdsp_reset(&sc->sc_sbdsp);
- if (!SB_IRQ_VALID(ia->ia_irq)) {
- DPRINTF(("pas: couldn't auto-detect interrupt"));
- goto unmap;
- }
- } else
-#endif
if (!SB_IRQ_VALID(ia->ia_irq)) {
DPRINTF(("pas: configured irq chan %d invalid\n", ia->ia_irq));
goto unmap;
@@ -408,34 +395,6 @@ pasprobe(parent, match, aux)
return 0;
}
-#ifdef NEWCONFIG
-void
-pasforceintr(aux)
- void *aux;
-{
- static char dmabuf;
- struct isa_attach_args *ia = aux;
- int iobase = ia->ia_iobase;
-
- /*
- * Set up a DMA read of one byte.
- * XXX Note that at this point we haven't called
- * at_setup_dmachan(). This is okay because it just
- * allocates a buffer in case it needs to make a copy,
- * and it won't need to make a copy for a 1 byte buffer.
- * (I think that calling at_setup_dmachan() should be optional;
- * if you don't call it, it will be called the first time
- * it is needed (and you pay the latency). Also, you might
- * never need the buffer anyway.)
- */
- at_dma(DMAMODE_READ, &dmabuf, 1, ia->ia_drq);
- if (pas_wdsp(iobase, SB_DSP_RDMA) == 0) {
- (void)pas_wdsp(iobase, 0);
- (void)pas_wdsp(iobase, 0);
- }
-}
-#endif
-
/*
* Attach hardware to driver, attach hardware driver to audio
* pseudo-device driver .