From ce672e2ab422b48383730c32536b391575fbf5be Mon Sep 17 00:00:00 2001 From: Maxim Sobolev Date: Fri, 13 Apr 2007 06:43:57 +0000 Subject: Update to 1.2.13. --- misc/zaptel/files/patch-wcfxo::wcfxo.c | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 misc/zaptel/files/patch-wcfxo::wcfxo.c (limited to 'misc/zaptel/files/patch-wcfxo::wcfxo.c') 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) { -- cgit v1.2.3