diff options
Diffstat (limited to 'misc/zaptel/files/patch-wcte11xp::wcte11xp.c')
-rw-r--r-- | misc/zaptel/files/patch-wcte11xp::wcte11xp.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/misc/zaptel/files/patch-wcte11xp::wcte11xp.c b/misc/zaptel/files/patch-wcte11xp::wcte11xp.c new file mode 100644 index 00000000000..bf2da4cf83e --- /dev/null +++ b/misc/zaptel/files/patch-wcte11xp::wcte11xp.c @@ -0,0 +1,30 @@ + +$FreeBSD$ + +--- wcte11xp/wcte11xp.c ++++ wcte11xp/wcte11xp.c +@@ -1953,14 +1953,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 *))wcte11xp_interrupt, sc, &(sc->irq_handler)); ++#else ++ error = bus_setup_intr(dev, sc->wc_irq, INTR_TYPE_CLK | INTR_FAST, NULL, ++ (void (*)(void *))wcte11xp_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 *))wcte11xp_interrupt, sc, &(sc->irq_handler)); ++#else ++ error = bus_setup_intr(dev, sc->wc_irq, INTR_TYPE_CLK, NULL, ++ (void (*)(void *))wcte11xp_interrupt, sc, &(sc->irq_handler)); ++#endif + } + + if (error) { |