diff options
author | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2006-07-08 00:43:31 +0000 |
---|---|---|
committer | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2006-07-08 00:43:31 +0000 |
commit | ec6b220aa7a334ccbd0fcb41d35c66560fc78a11 (patch) | |
tree | 8ee3f2338f95b3fa67f8512adb8fe4842643c391 /xpp/card_fxs.h | |
parent | 4e4b79bf56f6477b65973c869e5a8936aea27864 (diff) |
xpp Release 1.1.0 :
* FPGA firmware now loaded from PC (for newer models)
* Driver for the FXO module (xpd_fxo.ko)
* Moved most userspace files to the subdirectory utils (see also next commit)
* Explicit license for firmware files
* Optionally avoid auto-registration
* Registers initializations code is done by a userspace script.
* 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/branches/1.2@1212 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'xpp/card_fxs.h')
-rw-r--r-- | xpp/card_fxs.h | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/xpp/card_fxs.h b/xpp/card_fxs.h index 503b34e..1d81810 100644 --- a/xpp/card_fxs.h +++ b/xpp/card_fxs.h @@ -2,7 +2,7 @@ #define CARD_FXS_H /* * Written by Oron Peled <oron@actcom.co.il> - * Copyright (C) 2004-2005, Xorcom + * Copyright (C) 2004-2006, Xorcom * * All rights reserved. * @@ -25,6 +25,24 @@ #include "xpd.h" #include "slic.h" +enum fxs_opcodes { + XPROTO_NAME(FXS, SIG_CHANGED) = 0x06, +/**/ + XPROTO_NAME(FXS, SLIC_WRITE) = 0x0F, /* Write to SLIC */ + XPROTO_NAME(FXS, CHAN_ENABLE) = 0x0F, /* Write to SLIC */ + XPROTO_NAME(FXS, CHAN_POWER) = 0x0F, /* Write to SLIC */ + XPROTO_NAME(FXS, CHAN_CID) = 0x0F, /* Write to SLIC */ + XPROTO_NAME(FXS, RING) = 0x0F, /* Write to SLIC */ + XPROTO_NAME(FXS, SETHOOK) = 0x0F, /* Write to SLIC */ + XPROTO_NAME(FXS, LED) = 0x0F, /* Write to SLIC */ + XPROTO_NAME(FXS, RELAY_OUT) = 0x0F, /* Write to SLIC */ + XPROTO_NAME(FXS, SLIC_INIT) = 0x0F, /* Write to SLIC */ + XPROTO_NAME(FXS, SLIC_QUERY) = 0x0F, /* Write to SLIC */ +/**/ + XPROTO_NAME(FXS, SLIC_REPLY) = 0x10, +}; + + DEF_RPACKET_DATA(FXS, SIG_CHANGED, byte type; /* unused -- we have it from DEV_DESC */ xpp_line_t sig_status; /* channels: lsb=1, msb=8 */ @@ -34,10 +52,6 @@ DEF_RPACKET_DATA(FXS, SLIC_REPLY, /* Get status of a single SLIC (for debugging) xpp_line_t lines; slic_reply_t info; ); -DEF_RPACKET_DATA(FXS, SLIC_INIT, - xpp_line_t lines; - slic_data_t slic_data; - ); DEF_RPACKET_DATA(FXS, SLIC_WRITE, slic_cmd_t slic_cmd; ); |