summaryrefslogtreecommitdiff
path: root/misc/zaptel/files/patch-wcfxo::wcfxo.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/zaptel/files/patch-wcfxo::wcfxo.c')
-rw-r--r--misc/zaptel/files/patch-wcfxo::wcfxo.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/misc/zaptel/files/patch-wcfxo::wcfxo.c b/misc/zaptel/files/patch-wcfxo::wcfxo.c
new file mode 100644
index 000000000000..2a79e3aff51c
--- /dev/null
+++ b/misc/zaptel/files/patch-wcfxo::wcfxo.c
@@ -0,0 +1,31 @@
+
+$FreeBSD$
+
+--- wcfxo/wcfxo.c
++++ wcfxo/wcfxo.c
+@@ -1285,14 +1285,25 @@
+
+ /* 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 *))wcfxo_interrupt, sc, &(sc->irq_handler));
++#else
++ error = bus_setup_intr(dev, sc->wc_irq, INTR_TYPE_CLK | INTR_FAST, NULL,
++ (void (*)(void *))wcfxo_interrupt, sc, &(sc->irq_handler));
++#endif
+
+ if(error)
+ {
+ printf("Can't use fast interrupts, falling back to normal\n");
++#if __FreeBSD_version < 700031
+ error = bus_setup_intr(dev, sc->wc_irq, INTR_TYPE_CLK,
+ (void (*)(void *))wcfxo_interrupt, sc, &(sc->irq_handler));
++#else
++ error = bus_setup_intr(dev, sc->wc_irq, INTR_TYPE_CLK, NULL,
++ (void (*)(void *))wcfxo_interrupt, sc, &(sc->irq_handler));
++#endif
++
+ }
+
+ if (error) {