summaryrefslogtreecommitdiff
path: root/sys/dev/puc
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2002-09-03 11:22:13 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2002-09-03 11:22:13 +0000
commitb5518fb0cf85075470f2346e916b11c6762cb2cc (patch)
treeeb2c4f82a3508d4a5d706a709412f0998e6f5c31 /sys/dev/puc
parented4208e931fe75c1b59cb04c66eda9ca47c822ab (diff)
Notes
Diffstat (limited to 'sys/dev/puc')
-rw-r--r--sys/dev/puc/puc.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/sys/dev/puc/puc.c b/sys/dev/puc/puc.c
index 708239d7c72e..919c3dc5c4ea 100644
--- a/sys/dev/puc/puc.c
+++ b/sys/dev/puc/puc.c
@@ -159,15 +159,8 @@ puc_attach(device_t dev, const struct puc_device_description *desc)
sc->irqres = res;
sc->irqrid = rid;
-#ifdef PUC_FASTINTR
irq_setup = BUS_SETUP_INTR(device_get_parent(dev), dev, res,
- INTR_TYPE_TTY | INTR_FAST, puc_intr, sc, &sc->intr_cookie);
-#else
- irq_setup = ENXIO;
-#endif
- if (irq_setup != 0)
- irq_setup = BUS_SETUP_INTR(device_get_parent(dev), dev, res,
- INTR_TYPE_TTY, puc_intr, sc, &sc->intr_cookie);
+ INTR_TYPE_TTY, puc_intr, sc, &sc->intr_cookie);
if (irq_setup != 0)
return (ENXIO);
@@ -457,7 +450,8 @@ puc_setup_intr(device_t dev, device_t child, struct resource *r, int flags,
int i;
struct puc_softc *sc;
-printf("puc_setup_intr()\n");
+ if (flags & INTR_FAST)
+ return (ENXIO);
sc = (struct puc_softc *)device_get_softc(dev);
for (i = 0; PUC_PORT_VALID(sc->sc_desc, i); i++) {
if (sc->sc_ports[i].dev == child) {
@@ -479,7 +473,6 @@ puc_teardown_intr(device_t dev, device_t child, struct resource *r,
int i;
struct puc_softc *sc;
-printf("puc_teardown_intr()\n");
sc = (struct puc_softc *)device_get_softc(dev);
for (i = 0; PUC_PORT_VALID(sc->sc_desc, i); i++) {
if (sc->sc_ports[i].dev == child) {