summaryrefslogtreecommitdiff
path: root/misc/zaptel/files/patch-wcfxo::wcfxo.c
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2007-04-13 06:43:57 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2007-04-13 06:43:57 +0000
commitce672e2ab422b48383730c32536b391575fbf5be (patch)
treee6a669d178c6ed24b10b27164145e71f22bc10e4 /misc/zaptel/files/patch-wcfxo::wcfxo.c
parent* Correct the default mount options for vfat file systems (diff)
Update to 1.2.13.
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) {