From 9899bafe997a4e020f302c99a6e025b4e8b25191 Mon Sep 17 00:00:00 2001 From: tzafrir Date: Thu, 10 Jan 2008 18:12:27 +0000 Subject: xpp.r5254: * Improved polarity reversal hangups in FXO (r5194). Fixed false detection of polarity reversals. * Optimize xframe allocation, by not zeroing the whole memory (in get_xframe()). * Fixed erronous error message that appeared sometimes from fpga_load during USB renumeration. * Zaptel::Chans now provides battery() reporting for some FXO channels (Astribank FXO and wcfxo). git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@3643 5390a7c7-147a-4af0-8ec9-7488f05a26cb --- xpp/xdefs.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'xpp/xdefs.h') 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 -- cgit v1.2.3