diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/dahdi/kernel.h | 4 | ||||
-rw-r--r-- | include/dahdi/user.h | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/include/dahdi/kernel.h b/include/dahdi/kernel.h index 738cb0f..47139e5 100644 --- a/include/dahdi/kernel.h +++ b/include/dahdi/kernel.h @@ -139,6 +139,10 @@ struct dahdi_chan { int do_ppp_error; struct sk_buff_head ppp_rq; #endif +#ifdef BUFFER_DEBUG + int statcount; + int lastnumbufs; +#endif spinlock_t lock; char name[40]; /* Specified by DAHDI */ diff --git a/include/dahdi/user.h b/include/dahdi/user.h index ff86589..2e4615e 100644 --- a/include/dahdi/user.h +++ b/include/dahdi/user.h @@ -110,7 +110,7 @@ #define DAHDI_MAX_BLOCKSIZE 8192 #define DAHDI_DEFAULT_NUM_BUFS 2 -#define DAHDI_MAX_NUM_BUFS 32 +#define DAHDI_MAX_NUM_BUFS 128 #define DAHDI_MAX_BUF_SPACE 32768 #define DAHDI_DEFAULT_BLOCKSIZE 1024 @@ -118,6 +118,8 @@ #define DAHDI_POLICY_IMMEDIATE 0 /* Start play/record immediately */ #define DAHDI_POLICY_WHEN_FULL 1 /* Start play/record when buffer is full */ +#define DAHDI_POLICY_HALF_FULL 2 /* Start play/record when buffer is half full. + Note -- This policy only works on tx buffers */ #define DAHDI_GET_PARAMS_RETURN_MASTER 0x40000000 |