summaryrefslogtreecommitdiff
path: root/drivers/dahdi/wct4xxp
AgeCommit message (Collapse)Author
2010-06-29Merged revisions 8801,8805 via svnmerge from Mike Spiceland
https://origsvn.digium.com/svn/dahdi/linux/trunk ........ r8801 | mspiceland | 2010-06-24 11:13:44 -0500 (Thu, 24 Jun 2010) | 4 lines Impliments a workaround for an errata in the qfalc v3.1 chip which caused RBS modes to be broken when using AMI coding. DAHDI-647. ........ r8805 | mspiceland | 2010-06-24 16:02:56 -0500 (Thu, 24 Jun 2010) | 2 lines Fix trailing whitespace and make last change more readible. (sruffell suggestion) ........ git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/branches/2.3@8830 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-03-08wct4xxp, wcte12xp: Fixed broken E1 and unsupported function bugsRuss Meyerriecks
* Fixed the bug where the card could not be brought out of local loopback in E1 mode. * Fixed a bunch of issues where the drivers didn't report unsupported maintenance functions correctly. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@8291 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-03-08dahdi_maint: Added local loopback capability in E1 modesRuss Meyerriecks
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@8279 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-03-08wct4xxp: wcte12xp: Revised maint clearingRuss Meyerriecks
Looping modes are now mutually exclusive. If two looping modes are enabled simultaneously it tends to hose up our framer chip. Now, all looping modes are cleared in the driver before any are set. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@8274 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-03-05wct4xxp: Fixed inability to disable network payload loopingRuss Meyerriecks
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@8255 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-03-05wct4xxp: Removed over-verbose instrumentationRuss Meyerriecks
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@8250 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-02-24wct4xxp: Removed a spurious paste.Russ Meyerriecks
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@8087 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-02-22Branch merge from the maintenance modes projectRuss Meyerriecks
* Added logic for both the single and dual/quad span cards for supporting local loopback (virtual loopback plug), network loopback, network payload loopback, loopup, and loopback transmitting. * Added logic for the dual/quad span driver to support exporting the performance and error counters including : - errored seconds - framing errors - coding violations - bipolar violations - crc4 errors - ebit errors - fas errors * Moved the error and performance counters into a substructure for all drivers taking advantage of dahdi_span bpvcount. * Modified the DAHDI_SPANSTAT ioctl interface, so I moved the old interface to DAHDI_SPANSTAT_V1. The new interface comes with a nice, new shiny packed struct dahdi_spaninfo. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@8061 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-02-08dahdi: Update the Digium copyright on files changed since 2010-01-01.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@8008 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-01-18wct4xxp: Replaced a lost member of the t4 struct, which was clobbered inRuss Meyerriecks
the merge commits. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7941 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-01-18wct4xxp: Gen5-rc1 updates the device_id.Russ Meyerriecks
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7934 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-01-18wct4xxp: Make Missed interrupt message off by default, and incrementingRuss Meyerriecks
irqmisses if we have to do a latency bump git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7933 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-01-18wct4xxp: One more readback in the _in routines to make sure the writesRuss Meyerriecks
clear bridges and such git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7932 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-01-18wct4xxp: Make sure 2 port cards only use 2 portsRuss Meyerriecks
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7931 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-01-18wct4xxp: Add new 5th gen identifiersRuss Meyerriecks
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7930 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-01-18wct4xxp: Fix problems so that pedantic pci does not have to be enabledRuss Meyerriecks
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7929 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-01-18wct4xxp: Add a few bug fixes for latency bumps and for the newRuss Meyerriecks
ms_per_irq variable git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7928 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-01-18wct4xxp: Add some protection to prevent latency bumps during load time onlyRuss Meyerriecks
events such as firmware load git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7927 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-01-18wct4xxp: Gen 5 latency changes and performance enhancements (interrupt rate ↵Russ Meyerriecks
reduction, etc) git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7926 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-01-18wct4xxp: Fixing errata with the qfalc3.1 chip. Sometimes, in T1 mode, whenRuss Meyerriecks
the yellow alarm signal is being handled manually, the yellow alarm state can be stuck. We cannot use automatic mode due to custom debouncing logic, so we force manual mode and hit a bugfix register defined in the errata. wct4xxp: Differences between the 2.1 and 3.1 qfalc architecture cause previously ignored timing slip interrupts to show up. Now we mask those interrupts at the hardware level for each span, while that span is in loss of signal, or loss of frame alignment mode. Interrupts are unmasked after a valid signal is re-established. wct4xxp: Reworked the timing code so it makes more logical sense. Both the SCLK and RCLK timing sources are explicitly defined. This allows for a valid RCLK DCO source regardless of SCLK's source. This fixes the broken multiplexer problem on the 3.1 chip and is backwards compatible with the 2.1 chips. wct4xxp: Changed the initialization value for Clock Mode Reg 1 1) We don't use TCLK in the design, the only xmit clock to be referenced is SCLK. 2) We should disable Clock-Switching, as SYNC is also not to be used as a timing source. wct4xxp: Removed a "dmactrl" set that was clobbering the span's timing, forcing the fpga into recovered timing(RCLK) output on SCLK even if it was set to provide system timing(MCLK) on SCLK. The theory is that this problem only presented itself in FALC v3.1 due to a difference in PLL types between the two versions. wct4xxp: Fixed blue alarm detection wct4xxp: qfalc v3.1 now has integrated xmit resistors. The external resistors connected to XL1 and XL2 pins are now replaced with 0ohm resistors. Now we program PC6.TSRE to switch between 2ohms for T1 and 7.5ohms for E1 mode. wct4xxp: There appears to be an undocumented errata where the qfalc v3.1 with regards to CAS robbed bit signalling configuration. For some reason, it checks the config of the port configuration registers in addition to the ones that specify where the robbied bit signalling transmit will come from. For our case, we want it to come from the transmit register block. This new port configuration allows v3.1 to continue to use the register block as expected instead of from an external serial pin. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7919 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-12-28autoconf.h is inlcuded by Kbuild at the command-line.Tzafrir Cohen
No need to explicitly include it. Also note that <linux/autoconf.h> is invalid as of 2.6.33 . It is now <generated/autoconf.h> (but anyway, should not be #include-d directly). git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7732 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-09wct4xxp: Only print the new debounce messages when debug is set.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7534 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-07wct4xxp: Fix up some continued strings.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7528 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-04Adding alarm debounce to single span driver (wcte12xp).Mike Spiceland
Debounce yellow alarm also. In wcte12xp, change check alarm frequency to 100ms for better debounce granularity. Fix lines over 80 cols from last alarm debounce commit. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7486 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-10-29Debounce alarms by default for wct4xxp per AT&T 54016. Also, theMike Spiceland
various alarm conditions can be debounced separately. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7445 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-09-16wct4xxp: Check the alarm state if we're debouncing a red alarm.Shaun Ruffell
This fixes a problem where if you set the alarmdebounce module parameter on gen2+ cards, you never detect when you go into red alarm. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7147 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-09-14Change zap -> dahdi.Sean Bright
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7118 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-08-19Ensure that dahdi_scan correctly reports VPM presence.Kevin P. Fleming
The wct4xxp driver (for the dual/quad span T1/E1 cards) and the wcte12xp driver (for the single span VoiceBus-based T1/E1 cards) did not properly update the 'devicetype' field reported by dahdi_scan when a VPM was found during the card startup process. As a result, dahdi_scan did not show that a VPM was present on the card, even if it was. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7038 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-08-11wct4xxp-diag: Fixes to allow it to compile once more.Shaun Ruffell
This is just a debugging tool and wouldn't have affected any operational systems. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6961 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-07-21Revert "wct4xxp, wcte11xp: Use the default configuration by default at startup."Shaun Ruffell
This reverts the change introduced by revision 6712. This change can cause problems when there is a VPM module installed on the quad-span digital cards. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6862 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-06-29dahdi-base: Enable DAHDI to manage the reference counts for the board drivers.Shaun Ruffell
Adds a struct module 'owner' member to the dahdi_span structure and updates all the board drivers to set this member before registering the span. This allows the core of dahdi to maintain the reference counts on the channels itself. (closes issue #10601) Reported by: Matti git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6794 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-06-26wct4xxp: Unmap the same size DMA window that was mapped.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6768 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-06-24wct4xxp, wcte11xp: Use the default configuration by default at startup.Shaun Ruffell
This change allows hardware to provide timing to asterisk before normal configuration. DAHDI-275. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6712 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-04-30Ensure that vpmsupport=0 module parameter takes proper effectKevin P. Fleming
For these drivers, when the vpmsupport module parameter is set to zero, don't even register the span as supporting echo cancellation. DAHDI-250 git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6544 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-04-29echocan: Improve interface for echo cancelers.Shaun Ruffell
Echo cancelers are now able to report if they are able to automatically disable their NLP portions in the presence of tones in the audio stream. Also, the interface is changed to allow user space to just disable the NLP portion of the echo canceler. These changes improve fax and modem handling in DAHDI. This commit merges in the changes on http://svn.digium.com/svn/dahdi/linux/team/kpfleming/echocan_work Patch by: kpfleming Also contains improvements to CED tone detection. (closes issue #13286) Reported by: viniciusfontes git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6529 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-04-29wct4xxp: Fix problem when timing source is via external cable.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6528 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-03-11Relax ident wheel requirements.Shaun Ruffell
Do not require the first card to be set to 0 and allow skips in the ident wheel numbers. The ident wheel allows a user to determine the order that cards register there spans with DAHDI. (closes issue #13078) Reported by: opticron Patch by: opticron git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6125 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-01-28Allow EXTRA_CFLAGS to propagate to builds in the subfolders for wct4xxp,Shaun Ruffell
wctdm24xxp, wctc4xxp, wcb4xxp, and wcte12xp. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5856 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-01-26Manipulate the REGISTERED flag with atomic bitops now since the bit is setShaun Ruffell
outside the protection of any locks. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5819 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-10-28fix a large number of warnings found by sparse, the kernel code sanity ↵Kevin P. Fleming
checking tool. some of these fixes are non-optimal (casting 'unsigned long' to '__user void *'), but are unavoidable in many cases. started from tzafrir's patch, did most of the work myself. (closes issue #13763) Reported by: tzafrir Patches: sparse_fixes_1.diff uploaded by tzafrir (license 46) git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5162 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-09-06Revert unnecessary default hardhdlc mode from 56K to 64KMatthew Fredrickson
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4869 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-09-06Fix class_simple on old 2.6.9 kernelsMatthew Fredrickson
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4868 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-09-04Remove a couple of 'magic numbers' to make it clear all the ports of theShaun Ruffell
framer should be configured. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4864 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-09-04Fixes an issue where the dual-span cards are not properly configured which canShaun Ruffell
cause data loss. Fix provided by opticron and possibly related to issue #0013393. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4861 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-27a bit of attribution cleanupKevin P. Fleming
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4848 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-06last round of license header updates hereKevin P. Fleming
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4721 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-06more license header updatesKevin P. Fleming
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4712 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-03Change all instances of printk in DAHDI to include a priorityRussell Bryant
(closes issue #11504) Reported by: tzafrir Patches: 20080717__issue11504_dahdi_printk_without_priority.diff uploaded by bbryant (license 36) git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4685 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-01fix a couple of places where the driver assumed 4 spans were present on the cardKevin P. Fleming
(closes issue #13141) Reported by: pabelanger git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4651 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-07-29make an initial split of dahdi/kernel.h into userspace- and ↵Kevin P. Fleming
kernelspace-specific parts git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4628 a0bf4364-ded3-4de4-8d8a-66a801d63aff