From 39a1812c1ef76b6a792f00087f1e507616bbbb25 Mon Sep 17 00:00:00 2001 From: tzafrir Date: Thu, 6 Jul 2006 13:47:05 +0000 Subject: Tons of updates to the Astribank (xpp) driver: * xpd_fxo.ko (FXO span) is now operational * Remove obsolete .inc initialization files (we use user-space init) * Added an install target to the utils dir. * Updated README.Astribank accordingly. * Using RBS signalling, as caller ID did not work well otherwise. * Better handling of USB protocol errors. * Fixed some procfs-related races. * per-card-module ioctls. * fxotune support. * opermode support (set through /etc/default/zaptel for now) * Userspace initialization script can also read registers. * Power calibration works (and implemented in perl) * some fine-tuning to the regster initialization parameters. * Leds turn on before registration and turn off after it. git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1204 5390a7c7-147a-4af0-8ec9-7488f05a26cb --- xpp/xpp_zap.h | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'xpp/xpp_zap.h') diff --git a/xpp/xpp_zap.h b/xpp/xpp_zap.h index 38b3521..4d884ad 100644 --- a/xpp/xpp_zap.h +++ b/xpp/xpp_zap.h @@ -28,10 +28,11 @@ void xpd_disconnect(xpd_t *xpd); int packet_send(xbus_t *xbus, xpacket_t *pack_tx); -void card_detected(void *data); +void card_detected(struct card_desc_struct *card_desc); xpd_t *xpd_alloc(size_t privsize, xbus_t *xbus, int xpd_num, const xproto_table_t *proto_table, int channels, byte revision); 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 fill_beep(u_char *buf, int duration); void xpp_tick(unsigned long param); int xpp_open(struct zt_chan *chan); @@ -40,16 +41,6 @@ int xpp_ioctl(struct zt_chan *chan, unsigned int cmd, unsigned long arg); int xpp_maint(struct zt_span *span, int cmd); void sync_master_is(xpd_t *xpd); -#define CARD_DESC_MAGIC 0xca9dde5c - -struct card_desc_struct { - struct work_struct work; - u32 magic; - xbus_t *xbus; - byte rev; /* Revision number */ - byte type; /* LSB: 1 - to_phone, 0 - to_line */ - byte xpd_num; -}; extern struct workqueue_struct *xpp_worker; #ifdef CONFIG_PROC_FS -- cgit v1.2.3