summaryrefslogtreecommitdiff
path: root/kernel/xpp/xpp_zap.h
diff options
context:
space:
mode:
authortzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2008-11-30 12:10:03 +0000
committertzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2008-11-30 12:10:03 +0000
commit4ba510314a8dcd24bbcd32af137439c75f4c652f (patch)
tree651cb0114d4e6a220d37ef21e16113bff69e8392 /kernel/xpp/xpp_zap.h
parentd007090e421daa4bd616bba8844b3fa17b00e0e8 (diff)
xpp: PCM changes and related bugfixes.
* Power-denial signalling is now sent to Zaptel to decide if we're LS or KS (and not hang up ourselves always). * Fix card_fxo's caller_id_style=1 (FSK). * Macro XPD_CHAN: s/xpd->chans[i]/XPD_CHAN(xpd, i)/ to reduce diff from DAHDI. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4590 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'kernel/xpp/xpp_zap.h')
-rw-r--r--kernel/xpp/xpp_zap.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/kernel/xpp/xpp_zap.h b/kernel/xpp/xpp_zap.h
index dd56657..8a4ffad 100644
--- a/kernel/xpp/xpp_zap.h
+++ b/kernel/xpp/xpp_zap.h
@@ -34,13 +34,17 @@ xpd_t *xpd_alloc(size_t privsize, const xproto_table_t *proto_table, int channel
void xpd_free(xpd_t *xpd);
void xpd_remove(xpd_t *xpd);
void update_xpd_status(xpd_t *xpd, int alarm_flag);
-void update_line_status(xpd_t *xpd, int pos, bool good);
+void hookstate_changed(xpd_t *xpd, int pos, bool good);
int xpp_open(struct zt_chan *chan);
int xpp_close(struct zt_chan *chan);
int xpp_ioctl(struct zt_chan *chan, unsigned int cmd, unsigned long arg);
int xpp_maint(struct zt_span *span, int cmd);
void report_bad_ioctl(const char *msg, xpd_t *xpd, int pos, unsigned int cmd);
int total_registered_spans(void);
+void oht_pcm(xpd_t *xpd, int pos, bool pass);
+void mark_offhook(xpd_t *xpd, int pos, bool to_offhook);
+#define IS_OFFHOOK(xpd,pos) IS_SET((xpd)->offhook_state, (pos))
+void notify_rxsig(xpd_t *xpd, int pos, zt_rxsig_t rxsig);
#ifdef CONFIG_PROC_FS
#include <linux/proc_fs.h>