diff options
author | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-04-29 22:44:32 +0000 |
---|---|---|
committer | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-04-29 22:44:32 +0000 |
commit | 21263d58b5659eb42d200a38b17da18fce49a881 (patch) | |
tree | 205cbb81e5906362c4be4eb11800f028694c620f /xpp/card_global.h | |
parent | 2c5d383ce7ad82476fe1687b9d29aad87a80e6ee (diff) |
xpp rev. 3814:
* Protocol no. 2.6: syncing improvements.
* Support for 8-port Astribank BRI.
* Firmware unloading now works:
rmmod xpp_usb; /etc/hotplug/usb/xpp_fxloader reset
* Defaults of kernel parameters are now part of parameter description.
* World-readable kernel parameters.
* No need for extra patch beyond bristuff for Astribank BRI.
* Default poll intervals changed: 500 in BRI and FXO.
* Allow changing FXS polls interval at run time.
* BRI initalization fixed on SUSE (path to logger).
* When using the SUSE zaptel rpm package, set modules_var=ZAPTEL_MODULES in
/etc/sysconfig/zaptel .
* zt_registration not verbose by default.
* xpp_sync warns if FXO is sync slave.
* Fixed genzaptelconf -z (zapscan output emulation).
* PCM fixes.
* Solves "multiple ticks" bug. No need for pcm_tasklets workaround.
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@2478 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'xpp/card_global.h')
-rw-r--r-- | xpp/card_global.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/xpp/card_global.h b/xpp/card_global.h index 94e073b..ecf137e 100644 --- a/xpp/card_global.h +++ b/xpp/card_global.h @@ -43,10 +43,12 @@ DEF_RPACKET_DATA(GLOBAL, PCM_READ, byte pcm[PCM_CHUNKSIZE]; ); DEF_RPACKET_DATA(GLOBAL, SYNC_SOURCE, - byte mask; + byte sync_mode; + byte drift; ); DEF_RPACKET_DATA(GLOBAL, SYNC_REPLY, - byte mask; + byte sync_mode; + byte drift; ); DEF_RPACKET_DATA(GLOBAL, ERROR_CODE, byte errorcode; @@ -55,9 +57,15 @@ DEF_RPACKET_DATA(GLOBAL, ERROR_CODE, } info; ); +enum sync_mode { + SYNC_MODE_HOST = 0x00, + SYNC_MODE_AB = 0x01, /* Astribank sync */ + SYNC_MODE_PLL = 0x03, /* Adjust XPD's PLL according to HOST */ + SYNC_MODE_QUERY = 0x80, +}; /* 0x04 */ DECLARE_CMD(GLOBAL, DESC_REQ, int xpd_num); -/* 0x19 */ DECLARE_CMD(GLOBAL, SYNC_SOURCE, bool setit, bool is_master); +/* 0x19 */ DECLARE_CMD(GLOBAL, SYNC_SOURCE, enum sync_mode mode, int drift); /* 0x11 */ DECLARE_CMD(GLOBAL, PCM_WRITE, xpp_line_t lines, volatile byte *buf); extern xproto_table_t PROTO_TABLE(GLOBAL); |