Comment 11 for bug 204624

Revision history for this message
Gunni (fgunni) wrote : Re: CAPI not working correctly on Ubuntu hardy (8.04)

As i compared the ubuntu sources and the sources of the working tar.gz it seems to be a simple patch:

--- linux-restricted-modules-2.6.24-2.6.24.13/fritz/fcpci/src/driver.c
+++ AVM-Fritz/fcpci-3.11.07/driver.c
@@ -194,7 +194,7 @@
  }
  lib_strncpy (ctrl->serial, tmp, CAPI_SERIAL_LEN);
  lib_memcpy (&ctrl->profile, card->string[6], sizeof (capi_profile));
- strncpy (ctrl->manu, "AVM GmbH", CAPI_MANUFACTURER_LEN);
+ lib_strncpy (ctrl->manu, "AVM GmbH", CAPI_MANUFACTURER_LEN);
  ctrl->version.majorversion = 2;
  ctrl->version.minorversion = 0;
  tmp = card->string[0];

There are two more differences, but i think they both deal with the same problem in a different place:

--- linux-restricted-modules-2.6.24-2.6.24.13/fritz/fcpci/src/defs.h
+++ AVM-Fritz/fcpci-3.11.07/defs.h
@@ -30,13 +30,6 @@
 #ifndef TRUE
 # define TRUE (1==1)
 # define FALSE (1==0)
-#endif
-
-#if !defined(SA_SHIRQ)
-#define SA_SHIRQ IRQF_SHARED
-#endif
-#if !defined(SA_INTERRUPT)
-#define SA_INTERRUPT IRQF_DISABLED
 #endif

 /*---------------------------------------------------------------------------*\

--- linux-restricted-modules-2.6.24-2.6.24.13/fritz/fcpci/src/driver.c
+++ AVM-Fritz/fcpci-3.11.07/driver.c
@@ -374,7 +374,7 @@
    card->irq,
    &irq_handler,
 #if defined (__fcpci__) || defined (__fcpcmcia__)
- SA_INTERRUPT | SA_SHIRQ,
+ IRQF_DISABLED | IRQF_SHARED,
 #else
    SA_INTERRUPT,
 #endif