Friday, March 24, 2006

Linux Kernel 2.6.16 and ISDN FRITZ!Card PCI

In case anyone out there owns an ISDN FRITZ!Card PCI and wants to install the Linux kernel 2.6.16: you're in a bit of a trouble. The official CAPI driver will not compile. I threw an eye at it and came up with a simple patch that solves it:

--- fritz/src/tools.h 2005-07-07 00:00:00.000000000 +0200
+++ fritz-kernel-2.6/src/tools.h 2006-03-21 16:13:32.000000000 +0100
@@ -71,12 +71,14 @@

/*---------------------------------------------------------------------------* \*---------------------------------------------------------------------------*/
+#ifndef atomic_xchg
static inline unsigned long atomic_xchg (
volatile atomic_t * v,
unsigned value
) {
return __xchg (value, &v->counter, sizeof (unsigned));
} /* atomic_xchg */
+#endif

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

1 Comments:

At Tuesday, July 04, 2006 12:33:00 AM, Anonymous Anonymous said...

Also works for 2.17.1
Thanks a lot!

 

Post a Comment

<< Home