summaryrefslogtreecommitdiff
path: root/wctdm.c
AgeCommit message (Collapse)Author
2007-12-10for broken analog ports, retain the signaling type that would have been ↵kpfleming
supported if the port wasn't broken in ztscan, report the port types of analog ports instead of the signaling type git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3383 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-12-07Add ability to adjust fxo gains on wctdm driversdbailey
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3350 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-12-04the analog card drivers can now mark failed modules as 'broken', and ztscan ↵kpfleming
can output that information git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3294 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-12-04use a buffer for the span's device type instead of a string pointer, so each ↵kpfleming
spans can have dynamically set device types instead of constant strings also fix up some string creation and copying to be safe against buffer overflows git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3281 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-12-04add a new Zaptel scanning tool, primarily for use by the Asterisk GUI, ↵kpfleming
called 'ztscan'. this tool outputs an Asterisk-style configuration file containing one context for each Zaptel span with all the details that can be learned about that span. to enable this tool, the ZT_SPANSTAT ioctl gained a number of new elements to report information about the spans: - linecompat (available signaling modes for digital spans) - spantype (T1, E1 or J1 for digital spans) - location (PCI/PCI-Express location) - manufacturer - devicetype Along the way I also found that the digital span drivers always set T1-style signaling bits in 'linecompat' even for E1 spans, and that the ZT_SPANCONFIG ioctl did not properly check these bits when configuring E1 spans. The result of this is that it was possible to configure T1-only coding/framing (AMI/B8Zs, D4/ESF) on E1 spans (but not the reverse); this has been corrected and any attempt to use T1-only coding/framing on E1 spans will now result in an error from ztcfg. Also did some minor simplification of the Makefile rules that build the userspace tools. (the basics of ztscan were written by Brandon Kruse then reworked and fleshed out by me) git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3278 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-11-30populate the 'irq' member of the span structure since it is therekpfleming
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3267 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-10-26If you depend on anything that is not in /usr/include/zaptel , you must tzafrir
build with the local zaptel.h . Otherwise you may mix two versions of Zaptel . git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3190 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-09-11Make ringdebounce a module parameterrussell
(closes issue #10218, pnlarsson git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3011 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-08-30Remove some code that could never be executed. Instead of fixing the if ↵russell
statement, I just removed it. The contents of this global array are guaranteed to be zeroed out for us on load. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@2977 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-08-23Merged revisions 2940 via svnmerge from mattf
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r2940 | mattf | 2007-08-23 11:41:36 -0500 (Thu, 23 Aug 2007) | 1 line Increase CWCID reliability on analog modules significantly. (although if you have problems with pulse dialing on high REN loads, see the comment to revert the value back to its previous value). Thanks Kinsey and Rick. ........ git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@2941 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-07-19Merged revisions 2756 via svnmerge from kpfleming
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r2756 | kpfleming | 2007-07-18 21:05:03 -0500 (Wed, 18 Jul 2007) | 2 lines update to 2.6.22 request_irq() flags ........ git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@2757 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-07-03Merged revisions 2683 via svnmerge from qwell
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r2683 | qwell | 2007-07-03 13:57:42 -0500 (Tue, 03 Jul 2007) | 4 lines Fix a potential issue with the reversepolarity module option in wctdm. Issue 7191, patch by Thomas Andrews. ........ git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@2684 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-01-31Merged revisions 2043 via svnmerge from kpfleming
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r2043 | kpfleming | 2007-01-31 08:06:34 -0600 (Wed, 31 Jan 2007) | 4 lines fix up author email addresses use the kernel's built-in support for module aliases instead of manually doing it in modprobe.conf or equivalent add wctdm8xxp alias for wctdm24xxp ........ git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@2044 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-01-23Merged revisions 1936 via svnmerge from mattf
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r1936 | mattf | 2007-01-23 15:28:14 -0600 (Tue, 23 Jan 2007) | 3 lines Make sure we don't clear the interrupt before we might have received it in shared interrupt line scenarios. ........ git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@1937 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-01-23Merged revisions 1920 via svnmerge from kpfleming
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r1920 | kpfleming | 2007-01-23 09:25:42 -0600 (Tue, 23 Jan 2007) | 2 lines clean up various compiler warnings ........ git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@1921 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-12-11Merged revisions 1697 via svnmerge from kpfleming
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r1697 | kpfleming | 2006-12-11 12:27:15 -0600 (Mon, 11 Dec 2006) | 2 lines kernel 2.6.19 API changes compatibility ........ git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@1698 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-10-26Merged revisions 1534-1535 via svnmerge from kpfleming
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r1534 | kpfleming | 2006-10-25 18:54:41 -0500 (Wed, 25 Oct 2006) | 2 lines do ProSLIC 3215 check properly ........ r1535 | kpfleming | 2006-10-25 19:00:31 -0500 (Wed, 25 Oct 2006) | 2 lines do ProSLIC 3215 check properly in this driver too ........ git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@1536 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-10-02add support for setting gain registers on the fxo and fxs modules.mogorman
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@1490 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-07-07Merged revisions 1205 via svnmerge from file
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r1205 | file | 2006-07-07 14:02:39 -0400 (Fri, 07 Jul 2006) | 2 lines Add missing TDM400 PCI definition (issue #7502 reported by chozian) ........ git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1207 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-07-05yet another header file installation location change... Zaptel headers are ↵kpfleming
now installed into /usr/include/zaptel, not /usr/include git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1200 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-06-24install zaptel.h and tonezone.h into /usr/include, not /usr/include/linux, ↵kpfleming
sinc e they are used much more by userspace apps than by kernel modules remove any old copies of those headers remove README.udev, since it no longer applies git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1172 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-05-17Merged revisions 1069 via svnmerge from file
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r1069 | file | 2006-05-17 18:13:27 -0300 (Wed, 17 May 2006) | 2 lines Don't change the value of lasttxhook, instead do a comparison. (issue #7175 reported and fixed by Thomas Andrews) If this breaks things, you can yell at me. ........ git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1070 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-05-15Modifications for faster pickup time on the FXO modulemattf
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1055 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2006-02-15Merged revisions 947 via svnmerge from kpfleming
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r947 | kpfleming | 2006-02-14 19:05:56 -0600 (Tue, 14 Feb 2006) | 2 lines automatically set operational paramters for Australia when that opermode is seleced (issue #6454) ........ git-svn-id: http://svn.digium.com/svn/zaptel/trunk@948 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2005-12-13Merged revisions 857 via svnmerge from kpfleming
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r857 | kpfleming | 2005-12-13 13:08:41 -0600 (Tue, 13 Dec 2005) | 2 lines ensure data is output to proper io port address (issue #5990) ........ git-svn-id: http://svn.digium.com/svn/zaptel/trunk@858 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2005-12-04Expand VBat with heavy ringing for maximum ring voltage, don't use markster
boostringer by default in wctdm24xxp git-svn-id: http://svn.digium.com/svn/zaptel/trunk@847 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2005-12-03Oopsmarkster
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@846 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2005-12-03Support fast (25Hz) Ringermarkster
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@845 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2005-11-29remove extraneous svn:executable propertieskpfleming
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@837 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2005-10-29Add missing io include (bug #5537)markster
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@800 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2005-10-21silence compiler warningrussell
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@797 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2005-10-04use pci_register_driver() on recent kernels (issue #5375, compatibility fix ↵kpfleming
only, no functional difference) git-svn-id: http://svn.digium.com/svn/zaptel/trunk@791 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2005-09-26Fix issue with CPU spikingmarkster
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@777 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2005-09-25try #3kpfleming
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@776 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2005-09-25uhhhh... make that last one actually work the way it was intended tokpfleming
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@775 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2005-09-25don't generate message needlesslykpfleming
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@774 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2005-08-04Allow polarity on TDM card FXS interface to be reversed...markster
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@717 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2005-07-27make memory layout of private structures a little more sensiblekpfleming
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@711 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2005-07-25Fix wrapping issuemarkster
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@699 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2005-07-20fix breakage from last commit (wasn't checking properly for MOD_TYPE_FXS)kpfleming
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@698 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2005-07-20Only set idlemode on current channel....markster
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@697 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2005-07-20Only reset fxs mode when we're an fxs...markster
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@696 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2005-06-29PCI ID updatemattf
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@685 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2005-06-22Little addition to TDM driver, fix messup commit on quadspanmattf
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@682 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2005-06-22New Zealand fixesmattf
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@681 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2005-06-09add subvendor ID for rev I TDM400Pkpfleming
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@668 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2005-06-08use proper values for debounce periods (in 4ms increments, not 1ms increments)kpfleming
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@665 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2005-05-11Add support for polarity reversalmarkster
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@641 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2005-04-29Fix TDM card with big endian architectures (Mac, ARM)markster
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@633 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2005-03-21Add use counts to currently shipping stuff (bug #3773):markster
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@607 5390a7c7-147a-4af0-8ec9-7488f05a26cb