diff options
author | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2008-01-10 18:12:27 +0000 |
---|---|---|
committer | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2008-01-10 18:12:27 +0000 |
commit | 9899bafe997a4e020f302c99a6e025b4e8b25191 (patch) | |
tree | 8a108b05d0f319c95ba83f1d5984ae261572bebf /xpp/xdefs.h | |
parent | 1d7d5b07325a186785b22abf09ff531dfc2edd54 (diff) |
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
Diffstat (limited to 'xpp/xdefs.h')
-rw-r--r-- | xpp/xdefs.h | 7 |
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 |