[svn-commits] tzafrir: linux/trunk r6813 - /linux/trunk/drivers/dahdi/wcb4xxp/base.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Jul 2 14:34:08 CDT 2009


Author: tzafrir
Date: Thu Jul  2 14:34:05 2009
New Revision: 6813

URL: http://svn.asterisk.org/svn-view/dahdi?view=rev&rev=6813
Log:
wcb4xxp: Extra bit macros that a needed for kernels < 2.6.24

Macros borrowed from xpp/ .

Modified:
    linux/trunk/drivers/dahdi/wcb4xxp/base.c

Modified: linux/trunk/drivers/dahdi/wcb4xxp/base.c
URL: http://svn.asterisk.org/svn-view/dahdi/linux/trunk/drivers/dahdi/wcb4xxp/base.c?view=diff&rev=6813&r1=6812&r2=6813
==============================================================================
--- linux/trunk/drivers/dahdi/wcb4xxp/base.c (original)
+++ linux/trunk/drivers/dahdi/wcb4xxp/base.c Thu Jul  2 14:34:05 2009
@@ -46,6 +46,15 @@
 #include <dahdi/kernel.h>
 
 #include "wcb4xxp.h"
+
+#ifndef BIT     /* added in 2.6.24 */
+#define BIT(i)          (1UL << (i))
+#endif
+#define BIT_SET(x, i)    ((x) |= BIT(i))
+#define BIT_CLR(x, i)    ((x) &= ~BIT(i))
+#define IS_SET(x, i)     (((x) & BIT(i)) != 0)
+#define BITMASK(i)      (((u64)1 << (i)) - 1)
+
 
 #if (DAHDI_CHUNKSIZE != 8)
 #error Sorry, wcb4xxp does not support chunksize != 8




More information about the svn-commits mailing list