aboutsummaryrefslogtreecommitdiff
path: root/net/zaptel12/files/patch-wct1xxp::wct1xxp.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/zaptel12/files/patch-wct1xxp::wct1xxp.c')
-rw-r--r--net/zaptel12/files/patch-wct1xxp::wct1xxp.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/net/zaptel12/files/patch-wct1xxp::wct1xxp.c b/net/zaptel12/files/patch-wct1xxp::wct1xxp.c
new file mode 100644
index 000000000000..99b2d0642341
--- /dev/null
+++ b/net/zaptel12/files/patch-wct1xxp::wct1xxp.c
@@ -0,0 +1,30 @@
+
+$FreeBSD$
+
+--- wct1xxp/wct1xxp.c
++++ wct1xxp/wct1xxp.c
+@@ -1746,14 +1746,24 @@
+
+ /* Now we should set up the interrupt handler */
+
++#if __FreeBSD_version < 700031
+ error = bus_setup_intr(dev, sc->wc_irq, INTR_TYPE_CLK | INTR_FAST,
+ (void (*)(void *))wct1xxp_interrupt, sc, &(sc->irq_handler));
++#else
++ error = bus_setup_intr(dev, sc->wc_irq, INTR_TYPE_CLK | INTR_FAST, NULL,
++ (void (*)(void *))wct1xxp_interrupt, sc, &(sc->irq_handler));
++#endif
+
+ if(error)
+ {
+ printf("Can not use fast interrupts, switching to generic\n");
++#if __FreeBSD_version < 700031
+ error = bus_setup_intr(dev, sc->wc_irq, INTR_TYPE_CLK,
+ (void (*)(void *))wct1xxp_interrupt, sc, &(sc->irq_handler));
++#else
++ error = bus_setup_intr(dev, sc->wc_irq, INTR_TYPE_CLK, NULL,
++ (void (*)(void *))wct1xxp_interrupt, sc, &(sc->irq_handler));
++#endif
+ }
+
+