diff options
Diffstat (limited to 'include/dahdi')
-rw-r--r-- | include/dahdi/kernel.h | 6 | ||||
-rw-r--r-- | include/dahdi/user.h | 13 |
2 files changed, 19 insertions, 0 deletions
diff --git a/include/dahdi/kernel.h b/include/dahdi/kernel.h index 6b5f4a4..d3beabe 100644 --- a/include/dahdi/kernel.h +++ b/include/dahdi/kernel.h @@ -719,6 +719,9 @@ enum { DAHDI_FLAGBIT_LOOPED = 18, /*!< Loopback the receive data from the channel to the transmit */ DAHDI_FLAGBIT_MTP2 = 19, /*!< Repeats last message in buffer and also discards repeating messages sent to us */ DAHDI_FLAGBIT_HDLC56 = 20, /*!< Sets the given channel (if in HDLC mode) to use 56K HDLC instead of 64K */ + DAHDI_FLAGBIT_BUFEVENTS = 21, /*!< Report buffer events */ + DAHDI_FLAGBIT_TXUNDERRUN = 22, /*!< Transmit underrun condition */ + DAHDI_FLAGBIT_RXOVERRUN = 23, /*!< Receive overrun condition */ DAHDI_FLAGBIT_DEVFILE = 25, /*!< Channel has a sysfs dev file */ }; @@ -783,6 +786,9 @@ struct dahdi_count { #define DAHDI_FLAG_LOOPED DAHDI_FLAG(LOOPED) #define DAHDI_FLAG_MTP2 DAHDI_FLAG(MTP2) #define DAHDI_FLAG_HDLC56 DAHDI_FLAG(HDLC56) +#define DAHDI_FLAG_BUFEVENTS DAHDI_FLAG(BUFEVENTS) +#define DAHDI_FLAG_TXUNDERRUN DAHDI_FLAG(TXUNDERRUN) +#define DAHDI_FLAG_RXOVERRUN DAHDI_FLAG(RXOVERRUN) struct dahdi_span_ops { struct module *owner; /*!< Which module is exporting this span. */ diff --git a/include/dahdi/user.h b/include/dahdi/user.h index 1159fbf..6b666b9 100644 --- a/include/dahdi/user.h +++ b/include/dahdi/user.h @@ -448,6 +448,12 @@ enum dahdi_maint_mode { /* The echo canceler's NLP (only) was enabled */ #define DAHDI_EVENT_EC_NLP_ENABLED 28 +/* The channel's read buffer encountered an overrun condition */ +#define DAHDI_EVENT_READ_OVERRUN 29 + +/* The channel's write buffer encountered an underrun condition */ +#define DAHDI_EVENT_WRITE_UNDERRUN 30 + #define DAHDI_EVENT_PULSEDIGIT (1 << 16) /* This is OR'd with the digit received */ #define DAHDI_EVENT_DTMFDOWN (1 << 17) /* Ditto for DTMF key down event */ #define DAHDI_EVENT_DTMFUP (1 << 18) /* Ditto for DTMF key up event */ @@ -1085,6 +1091,13 @@ struct dahdi_vmwi_info { #define DAHDI_TXMIRROR _IOW(DAHDI_CODE, 104, int) #endif /* CONFIG_DAHDI_MIRROR */ +/* + Set the desired state for channel buffer event generation which is disabled + by default to allow for backwards compatibility for dumb users of channels + such as pattern utilities. + */ +#define DAHDI_BUFFER_EVENTS _IOW(DAHDI_CODE, 105, int) + /* Get current status IOCTL */ /* Defines for Radio Status (dahdi_radio_stat.radstat) bits */ |