summaryrefslogtreecommitdiff
path: root/kernel/xpp
AgeCommit message (Collapse)Author
2009-11-19zaptel-base,xpp,wcte12xp,wctdm24xxp,wctdm,pciradio: Compilation updates.HEADsvn_1.4masterShaun Ruffell
Adding some header files to the different drivers in order to enable them to compile against 2.6.32. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4692 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2009-10-04xpp: Use proper get/set for device->driver_datasruffell
2.6.32-rc1 broke direct access to the member 'driver_data' of 'struct device'. However direct access to wasn't proper in the first place. This commit replaces direct access to dev->driver_data with dev_get_drvdata() and dev_set_drvdata(). This is a backport from https://origsvn.digium.com/svn/dahdi/linux/trunk@7226. From: tzafrir <tzafrir@22b186d9-ae4d-0410-a2cf-b1b22c4d6fbd> git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4687 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2009-09-25xpp firmware: Fixes PCM issue with FXO that is not a timing sourcetzafrir
Fixes PCM issue with an Astribank2 (116x) FXO module that is installed alongside a PRI/BRI module. xpp rev: 7276 From DAHDI rev: 6938 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4684 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2009-08-13xpp: On 2.6.22 only define CONFIG_STORE_USER when CONFIG_SLUB is defined.sruffell
When CONFIG_SLAB is defined, but CONFIG_SLAB_DEBUG is not, you will get a kernel oops when loading the driver if CONFIG_STORE_USER is defined. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4676 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2009-06-12astribank_tool: Support 'reset' of old protocol as fallbacktzafrir
If astribank_tool fails to open a device when running a reset command, try to reset the device with the command from the old (pre-MPP) protocol (A single 0x20 byte). No support whatsoever for any other feature of the old protocol. This was accidentally left out of previous commits. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4653 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2009-06-04Fix documentation of parameter brint_overlaptzafrir
(Documentation-only change) git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4651 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2009-05-27xpp: Replaece member bus_id with dev_name() and set_dev_name()tzafrir
As of 2.6.26 the macros dev_name() and set_dev_name() are used to read and set (respectively) the bus_id member in sysfs. As of 2.6.30 bus_id is gone. This patch provides comaptiobility macros for older kernel versions and removes direct usage of bus_id. From dahdi-linux r6637. Regarding issue #14965 . git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4649 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2009-05-27xpp: 'owner' property of procfs was dropped in 2.6.30.tzafrir
This adds a compatibility macro for older versions that is a noop for kernels >= 2.6.30. From dahdi-linux r6642, r6659 , regarding issue #14964 . git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4648 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2009-05-27* Actually install astribank_allowtzafrir
* Which requires a man page * And ignore some extra generated files while we're at it. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4643 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2009-05-27Big dump of newer xpp code.tzafrir
For finer details and separate commits, you are advised to look into the commit log of dahdi-{linux,tools}. xpp.r7150 * 116x Astribanks: - Support for the TwinStar capability and for FXO and (BRI|PRI) on same device. - New control protocol ("MPP"). - astribank_hextool - a low-level firmware loading tool instead of fpga_load . - astribank_tool - Other MPP activities . - Can still reset (but just that) through older protocol. - astribank_hexload is required for loading FPGA firmware for USB_FW.hex rev > 6885. - USB_FW rev. 7071 . - More modular FPGA firmware (1161 only). - FPGA_1161.hex rev. 7131. PIC_TYPE_* rev. 7107. - software-settings of some capabilities with astribank_allow . * XPP: - init_card_* script are less verbose. - Reduced rate of "Is a DAHDI sync master" message. - Replace member bus_id with dev_name() and set_dev_name() for building with 2.6.30. - Conditionally remove 'owner' property of procfs was dropped in 2.6.30. - astribank_hook now enabled by default. - Has an optional hook for TwinStar. * BRI: - hardhdlc support: The bri_dchan patch is no longer needed. - If bri_dchan patch applied: old code is used, and "dchan" is used. - If not: new code and "hardhdlc" is used. - zapconf will generate the right configuration, depending on the new sysfs driver attribute bri_hardhdlc, but default to "dchan" as before if not explicitly told. - Bugfix: explicitly turn off leds on startup. * FXS: - Initialization and calibration fixes. - Notify the user just one about wrong VMWI config * Dahdi-perl: - Fix detection of empty slots in wctdm. - Fix working with ethmf's extra file in /proc/zaptel - Improved detection of Rhino cards. - dahdi_genconf's generated text better explains files are generated. - /etc/xpp_order - allow specifiying an explicit order for Astribanks to register with Zaptel. - Dahdi::Xpp::Mpp - A wrapper around astribank_tool . * dahdi.init: - A separate waitfor_xpds script. May now have a wait-loop in some cases. - xpp_sync needs to only be called after dahdi_cfg . (for the PRI module). git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4641 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2009-03-29zapconf: Set contexts same as groupstzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4635 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2009-03-19xpp: a massive backport from DAHDI. From Xorcom branch-rel-6839-r6908 .tzafrir
Sun Mar 1 2009 Oron Peled <oron@actcom.co.il> - xpp.r6795 * Fix cases where the command_queue overflowed during initialization. - Also add a 'command_queue_length' parameter to xpp.ko * More migrations to sysfs: - Add a 'transport' attribute to our astribank devices which points to the usb device we use. E.g: /sys/bus/astribanks/devices/xbus-00/transport is symlinked to ../../../../../../devices/pci0000:00/0000:00:10.4/usb5/5-4 - Move /proc/xpp/XBUS-??/XPD-??/span to /sys/bus/xpds/devices/??:?:?/span - Migrate from /proc/xpp/sync to: /sys/bus/astribanks/drivers/xppdrv/sync - New 'offhook' attribute in: /sys/bus/xpds/devices/??:?:?/offhook * PRI: change the "timing" priority to match the convention used by other PRI cards -- I.e: lower numbers (not 0) have higher priority. * FXO: - Power denial: create two module parameters instead of hard-coded constants (power_denial_safezone, power_denial_minlen). For sites that get non-standard power-denial signals from central office on offhook. - Don't hangup on power-denial, just notify Dahdi and wait for - Fix caller-id detection for the case central office sends it before first ring without any indication before. Asterisk's desicion. Mon, Dec 8 2008 Oron Peled <oron@actcom.co.il> - xpp.r6430 * PRI: - Match our span clocking priorities (in system.conf) to Digium -- this is a reversal of the previous state. Now lower numbers (greater than 0) are better. - Synchronization fixes for PRI ports other than 0. - Fix T1 CRC for some countries (e.g: China). * FXS: fix bug in VMWI detection if using old asterisk which does not provide ZT_VMWI ioctl(). * FXO: - Improve caller_id_style module parameter. This provide a workaround for countries that send this information without any notification (reverse polarity, ring, etc.) - Don't force on-hook upon power-denial. So, loopstart devices would ignore these as expected. * Implement a flow-control to prevent user space (init_card_* scripts) from pressuring our command queue. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4631 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2009-02-09Fix building Zaptel with module unloading disabledtzafrir
As moduel_refcount is only used for debugging, disable it in this non-common case. (Issue #14402) git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4625 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2009-01-28xpp_sync: Fix an NT/TE mixup (in automatic syncers order)tzafrir
The respective code in DAHDI has already been fixed by rewriting. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4620 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-12-19Compilation fix for kernels copied from DAHDI.sruffell
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4597 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-11-30xpp: PCM changes and related bugfixes.tzafrir
* 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
2008-11-30xpp/firmwares/README: firmwares is no longer a separate distribution.tzafrir
Fix README (better late than never). xpp rev. 6403. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4589 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-11-18xpp_pri: Fix T1 CRC initializationtzafrir
Clock synchronization when sync is not from first port. Merged revisions 4583 via svnmerge from http://svn.digium.com/svn/zaptel/branches/1.2 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4584 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-11-16Fixed USB firmware that caused some bad bioses to hang on boot.tzafrir
The BIOSes included in a number of motherboards could hang from an Astribank firmware newer than 1.2.20.1 / 1.4.5.1 . This was due to an some incorrect USB information in the firmware. This firmware fixes it. Merged revisions 4580 via svnmerge from http://svn.digium.com/svn/zaptel/branches/1.2 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4581 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-11-10xpp init_card_2_30: no need to check environment in verify mode.tzafrir
Fixes #13832 in Zaptel. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4578 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-10-22xpp FXS init script: Do use high-pass filter.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4572 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-10-20zapconf: Fix number in error message in case of unknown channel type.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4571 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-09-25XPP firmware: Only send out CAS D-channel messages when in CAS mode.tzafrir
Only updates FPGA_1151.hex. Id: rev 6152. From xpp rev 6163. Merged revisions 4544 via svnmerge from http://svn.digium.com/svn/zaptel/branches/1.2 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4545 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-09-09Zaptel.pm: Fix sample program (perldoc-only fix).tzafrir
Merged revisions 4533 via svnmerge from http://svn.digium.com/svn/zaptel/branches/1.2 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4534 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-09-09xpp-zaptel: Bugfix: Display data_high in /proc/xpp/*/chipregs:tzafrir
* This byte wasn't shown even if do_datah bit was set. * Also converged all terminology to "sub-register" and not "indirect" * Changed accordingly '[WR]I' to [WR]S' in code. * Still allow usage of '[WR]I' but with deprecation NOTICE() * Convert init_card_* scripts * Adapt show_regs and write_regs script accordingly. * Leave FXS internal macros with ...INDIRECT... because that's the terminology of the SLIC. * You should use both the newer driver and init script. Specifically: newer init script will fail to work with older BRI and FXS xpp driver loaded. From xpp rev. 6117. Merged revisions 4520 via svnmerge from http://svn.digium.com/svn/zaptel/branches/1.2 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4531 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-09-09xpp-zaptel: FXO: Add caller-id workaround for ESTI-DTMF (for #9096)tzafrir
* Also rename the CID_STYLE_* constants to formal names. From Xorcom Rev. 6115. Merged revisions 4519 via svnmerge from http://svn.digium.com/svn/zaptel/branches/1.2 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4529 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-09-09xpp-zaptel: FXO: fix init_card_2_30 opermode verificationtzafrir
* In case of any diff, exit with non-zero status so the build fails. * Print filename:lineno of missing or changed lines. * Fix two countries (typos fixed in COLOMBIA and CYPRUS). * xpp-zaptel: FXO: cleanup opermode verification code (from DAHDI): - Add proper '-v' option to init_card_2_30 and use it in xortel/Makefile - Use $mismatches as in DAHDI (minimize diffs). From xpp rev. 6107,6108 Merged revisions 4517-4518 via svnmerge from https://origsvn.digium.com/svn/zaptel/branches/1.2 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4524 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-09-09Fix another path to an uninitialized SUB config provided to us from thetzafrir
controller. From xpp rev. 6071. Merged revisions 4516 via svnmerge from http://svn.digium.com/svn/zaptel/branches/1.2 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4523 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-09-08Minor FXS/FXO type fixes in case probe was not done.tzafrir
Merged revisions 4512 via svnmerge from http://svn.digium.com/svn/zaptel/branches/1.2 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4514 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-08-20improve compatibility with 2.6.26 and 2.6.27 kernelskpfleming
(closes issue #13277) Reported by: smurfix Patches: zap-dev.patch uploaded by smurfix (license 547) zap-sema.patch uploaded by smurfix (license 547) git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4496 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-08-20Mark xpp_fxloader as executable.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4494 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-08-17Zaptel-perl: fix leftovers from r4475 (handling of spaces)tzafrir
While r4476 solved some parsing problems of channels with "strange" encoding names, it introduced a new problem (e.g.: "RED" after "(In use)" which is fixed here. Merged revisions 4488 via svnmerge from http://svn.digium.com/svn/zaptel/branches/1.2 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4489 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-08-14Update changelog for xpp rev. 6055.tzafrir
Merged revisions 4486 via svnmerge from http://svn.digium.com/svn/zaptel/branches/1.2 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4487 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-08-14xpp: FXO: display signed voltage values (from xpp r6055)tzafrir
This is only an issue with the displayed value. In case you wondered why you have battery voltage of more than 220V. Merged revisions 4484 via svnmerge from http://svn.digium.com/svn/zaptel/branches/1.2 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4485 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-08-12bring back the transcoder interface... it will be upgraded to the new ↵kpfleming
improved version here too git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4477 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-08-12Zaptel-perl: more robust parsing of channel signalling types.tzafrir
Parse them from a list rather thna fusing a regex of a "word". Merged revisions 4475 via svnmerge from http://svn.digium.com/svn/zaptel/branches/1.2 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4476 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-08-11* pcmtx_chan debugging parameter now refers to a zaptel channel number.tzafrir
* Do initialize xsp. Closes issue #13276 . * xbus_core_shutdown can't be __exit as it is used in initilization as well. Merged revisions 4473 via svnmerge from http://svn.digium.com/svn/zaptel/branches/1.2 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4474 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-08-11xpp: fxo: fix caller-id CID_STYLE_PASS_ALWAYS.tzafrir
Merged revisions 4468 via svnmerge from http://svn.digium.com/svn/zaptel/branches/1.2 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4472 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-08-07remove support for the Digium TC400 transcoder card; the interace to this ↵kpfleming
card has been completely redesigned, and the new interface will only be present in DAHDI; TC400 users will need to upgrade to DAHDI 2.0.0 to continue using their transcoder cards git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4469 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-08-07xpp: preliminary CAS support.tzafrir
Uses newer firmware (5975) for the 1151 alone. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4463 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-08-07xpp: reset a reserved protocol field.tzafrir
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4462 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-08-07xpp: debuggging parameter pcmtx_chan now refers to a zap channel number.tzafrir
Also fix a typo in card_fxs. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4461 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-08-04Remove obsolete calibrate_slics. Clean more in utils Makefile.tzafrir
Merged revisions 4458 via svnmerge from http://svn.digium.com/svn/zaptel/branches/1.2 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4459 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-08-04Merged revisions 4451-4455 via svnmerge from tzafrir
http://svn.digium.com/svn/zaptel/branches/1.2 ........ r4451 | tzafrir | 2008-08-04 18:11:01 +0300 (Mon, 04 Aug 2008) | 9 lines Firmware update: 5959 (DTMF and BRI ID) (From DAHDI rev. 4695) * Fix some cases of double digits. * Fix some rare cases of a BRI unit providing incorrect directionality. * Extra debugging code in card_fxs.c to trace future DTMF issues. * Properly note DAHDI (as opposed to Zaptel) ioctls. ........ r4452 | tzafrir | 2008-08-04 18:36:19 +0300 (Mon, 04 Aug 2008) | 2 lines Make it formally bashism. ........ r4453 | tzafrir | 2008-08-04 18:38:10 +0300 (Mon, 04 Aug 2008) | 2 lines Kbuild: A more robust check for the bri_dchan patch. ........ r4454 | tzafrir | 2008-08-04 18:39:01 +0300 (Mon, 04 Aug 2008) | 2 lines Minor BRI initlization improvements. ........ r4455 | tzafrir | 2008-08-04 18:43:32 +0300 (Mon, 04 Aug 2008) | 7 lines Add channel alarms in Zaptel-perl and lszaptel specifically. * Zaptel::Chans now provides a method alarms() for a list (or number of) alarms. * lszaptel uses it for a more correct display of channel status. * Also update PCI hardware list. ........ git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4456 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-07-10PCM: A bugfix that was reintroduced in r4353:tzafrir
After this change, the echo-canceler buffers were not cleared in some cases. As a result when one FXS is put ONHOOK, the other side could hear noise for a second or two until full disconnect is done. Merged revisions 4407 via svnmerge from http://svn.digium.com/svn/zaptel/branches/1.2 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4408 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-07-08A case where we didn't switch to low power at the end of a ring.tzafrir
Issue may prevents ONHOOK detection. Merged revisions 4394 via svnmerge from http://svn.digium.com/svn/zaptel/branches/1.2 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4395 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-06-28Fixes building with the kernel of RHEL 5.2. Closes issue #12889 .tzafrir
Merged revisions 4367 via svnmerge from http://svn.digium.com/svn/zaptel/branches/1.2 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4368 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-06-15Muted DTMF PCM (from FXS modules) could "leak" to the next channel.tzafrir
(From xpp r5796). Merged revisions 4352 via svnmerge from http://svn.digium.com/svn/zaptel/branches/1.2 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4353 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-05-22blink_mode was a boolean and changed to a channels bitmask. Now actuallytzafrir
changing the type from bool to unsigned long. (xpp r5756). Merged revisions 4314 via svnmerge from http://svn.digium.com/svn/zaptel/branches/1.2 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4315 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2008-05-20* Document Zaptel::Spantzafrir
* Minor changes to Zaptel::Xpp as well. (Documentation-only changes. xpp r5746,r5747) Merged revisions 4308 via svnmerge from http://svn.digium.com/svn/zaptel/branches/1.2 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4309 5390a7c7-147a-4af0-8ec9-7488f05a26cb