summaryrefslogtreecommitdiff
path: root/xpp/xdefs.h
diff options
context:
space:
mode:
Diffstat (limited to 'xpp/xdefs.h')
-rw-r--r--xpp/xdefs.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/xpp/xdefs.h b/xpp/xdefs.h
index 1da9580..2aec497 100644
--- a/xpp/xdefs.h
+++ b/xpp/xdefs.h
@@ -77,7 +77,6 @@ struct list_head { struct list_head *next; struct list_head *prev; };
#define MAX_UNIT BIT(UNIT_BITS) /* 1 FXS + 3 FXS/FXO | 1 BRI + 3 FXS/FXO */
#define MAX_SUBUNIT BIT(SUBUNIT_BITS) /* 8 port BRI */
-#define SUBUNIT_PCM_SHIFT 4 /* shift in PCM highway */
/*
* Compile time sanity checks
@@ -109,6 +108,12 @@ typedef unsigned char byte;
#define KMEM_CACHE_T struct kmem_cache
#endif
+#define KZALLOC(size, gfp) my_kzalloc(size, gfp)
+#define KZFREE(p) do { \
+ memset((p), 0, sizeof(*(p))); \
+ kfree(p); \
+ } while(0);
+
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19)
typedef int bool;
#endif