summaryrefslogtreecommitdiff
path: root/wct4xxp
AgeCommit message (Collapse)Author
2007-12-12remove duplicate setting of 'devicetype'... reported by tzafrir on #asterisk-devkpfleming
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3449 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-12-11Rename Makefile.kernel26 to Kbuild (in subdirectories alone):tzafrir
* kernel 2.6 build system >= 2.6.9 will use this directly. * Kernels 2.6.0-2.6.8 will still use the legacy name 'Makefile'. * Also fix a typo in 1.4/wcte12xp/Makefile (already fixed in 1.2). * 1.4/wctc4xxp/Makefile should not include userspace targets in the Kbuild file - those have a different syntax. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3417 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-12-10report 'location' for cards supported by wct4xxp using the 'order' switches ↵kpfleming
on the card when possible git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3393 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-12-08Merged revisions 3365 via svnmerge from kpfleming
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r3365 | kpfleming | 2007-12-08 11:04:11 -0600 (Sat, 08 Dec 2007) | 5 lines clean up firmware handling across wct4xxp, wctc4xxp, wctdm24xxp and wcte12xp drivers to use consistent methods add non-hotplug firmware loading support to wctdm24xxp and wcte12xp add license and copyright headers to various files that did not have them clean up header inclusion in some files ........ git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3366 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-12-07as suggested by tzafrir on asterisk-dev, remove some code duplication when ↵kpfleming
handling ZT_SPANCONFIG git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3343 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-12-06minor formatting changeskpfleming
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3329 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-12-05the previous addition of fields to zt_spaninfo added an 'lbo' field, but ↵kpfleming
none of the drivers for digital cards actually populate that field... this is now corrected git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3317 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-12-04when reporting devicetype for TE2xx and TE4xx cards, include the presence or ↵kpfleming
absence of a VPM in the result git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3284 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-11-30Merged revisions 3263 via svnmerge from mattf
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r3263 | mattf | 2007-11-30 14:17:42 -0600 (Fri, 30 Nov 2007) | 1 line Make sure we only disable irqs during octasic firmware load only if we have 4K stacks ........ git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3264 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-11-22Make sure that's disabled until I retest thatmattf
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3245 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-10-18Merged revisions 3169 via svnmerge from qwell
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r3169 | qwell | 2007-10-18 17:56:14 -0500 (Thu, 18 Oct 2007) | 4 lines Correct the name of the wct4xxp driver. Issue 11030 ........ git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3170 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-10-18Make sure we only increment timingslips when there actually are timing ↵mattf
slips, instead of everytime we service the framer git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3161 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-09-22Make some improvements in how we do event retrievalmattf
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3082 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-09-22Disable that for now (DTMF detection)mattf
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3079 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-08-30don't know how this was missed when i upgraded the interrupt flags before...kpfleming
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@2984 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-08-24Let's not exclusive framer interrupts by defaultmattf
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@2948 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-08-24Beginning backport of trunk to 1.4mattf
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@2946 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 2680 via svnmerge from mattf
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r2680 | mattf | 2007-07-03 11:39:34 -0500 (Tue, 03 Jul 2007) | 1 line Fix for span shutdown issue ........ git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@2681 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-06-11Merged revisions 2638 via svnmerge from mattf
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r2638 | mattf | 2007-06-11 17:17:14 -0500 (Mon, 11 Jun 2007) | 1 line Add a couple of PCI ids ........ git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@2639 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-06-11Merged revisions 2633 via svnmerge from mattf
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r2633 | mattf | 2007-06-11 17:10:59 -0500 (Mon, 11 Jun 2007) | 1 line Make the version check optional ........ git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@2634 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-06-08Merged revisions 2599 via svnmerge from russell
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r2599 | russell | 2007-06-08 10:57:18 -0500 (Fri, 08 Jun 2007) | 1 line Make sure the name is right ........ git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@2601 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-06-06Add 220/420 supportmattf
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@2574 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-06-01Merged revisions 2550 via svnmerge from mattf
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r2550 | mattf | 2007-06-01 11:56:09 -0500 (Fri, 01 Jun 2007) | 2 lines Fix for stack overflow on FC6 and VPM450M. ........ git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@2551 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-05-17Reduce stack usage of VPM450M. Fix for FC6 module load problemsmattf
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@2532 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-04-28Merged revisions 2469 via svnmerge from mattf
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r2469 | mattf | 2007-04-28 16:07:35 -0500 (Sat, 28 Apr 2007) | 1 line Fix for potential deadlock in wct4xxp driver ........ git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@2470 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-03-14Merged revisions 2307 via svnmerge from mattf
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r2307 | mattf | 2007-03-14 10:03:18 -0600 (Wed, 14 Mar 2007) | 2 lines Fix bug in J1 mode configuration. ........ git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@2308 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-03-09Merged revisions 2301 via svnmerge from mattf
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r2301 | mattf | 2007-03-09 13:59:43 -0600 (Fri, 09 Mar 2007) | 2 lines Make sure we don't allocate as GFP_KERNEL in atomic context ........ git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@2302 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-02-23partial update to support all the stuff that went into Zaptel 1.2 ↵kpfleming
recently... this definitely still broken for 2.4 kernels, and maybe for 2.6 as well :-) includes: Makefile split and reorganize TE120P driver TC400B driver HPEC support (not yet complete) git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@2215 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-02-21Merged revisions 2208 via svnmerge from mattf
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r2208 | mattf | 2007-02-21 11:26:05 -0600 (Wed, 21 Feb 2007) | 2 lines Make sure we do the IRQ fix in the gen1 interrupt handler as well. ........ git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@2209 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-02-21Merged revisions 2199 via svnmerge from mattf
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r2199 | mattf | 2007-02-21 09:57:20 -0600 (Wed, 21 Feb 2007) | 2 lines Make sure we do the check for memory allocation failure. ........ git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@2201 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-02-21Merged revisions 2198 via svnmerge from mattf
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r2198 | mattf | 2007-02-21 09:49:50 -0600 (Wed, 21 Feb 2007) | 2 lines Reduce our stack usage when using the vpm450m ........ git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@2200 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-02-09Drop the need for header files by using non-versioned binary files.file
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@2136 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-02-07Merged revisions 2119 via svnmerge from kpfleming
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r2119 | kpfleming | 2007-02-07 15:22:44 -0600 (Wed, 07 Feb 2007) | 2 lines don't allow wct4xxp workqueue support to be built against kernel 2.6.20... it's not going to work ........ git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@2120 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-02-07Merge in zaptel-firmware branch. This basically downloads the firmware from ↵file
the FTP site and builds the appropriate headers based on the current version. Drivers just know they need a certain firmware and get fed the current version. If this prevents your zaptel from building do a make distclean and start fresh or make sure the firmware is checked in make menuselect. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@2107 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-31Merged revisions 2038 via svnmerge from kpfleming
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r2038 | kpfleming | 2007-01-30 19:33:25 -0600 (Tue, 30 Jan 2007) | 2 lines final fix for non-hotplug firmware loading ........ git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@2039 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-01-29Merged revisions 1996 via svnmerge from kpfleming
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r1996 | kpfleming | 2007-01-29 13:20:32 -0600 (Mon, 29 Jan 2007) | 2 lines _really_ fix the non-hotplug firmware case ........ git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@1998 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-01-27Merged revisions 1987 via svnmerge from kpfleming
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r1987 | kpfleming | 2007-01-27 10:14:54 -0600 (Sat, 27 Jan 2007) | 2 lines properly reference the size symbol produced by objcopy ........ git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@1988 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-01-22Merged revisions 1898 via svnmerge from kpfleming
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r1898 | kpfleming | 2007-01-22 16:43:06 -0600 (Mon, 22 Jan 2007) | 3 lines use better definition for linked-in firmware data ensure that hotplug-loaded firmware is released when we are finished with it ........ git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@1899 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-01-22Merged revisions 1891 via svnmerge from kpfleming
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r1891 | kpfleming | 2007-01-22 15:12:35 -0600 (Mon, 22 Jan 2007) | 2 lines make the non-hotplug firmware case actually compile again ........ git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@1892 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-01-22Merged revisions 1886 via svnmerge from kpfleming
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r1886 | kpfleming | 2007-01-22 14:58:30 -0600 (Mon, 22 Jan 2007) | 2 lines might be good if i committed the working version of this code... ........ git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@1887 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-01-22Merged revisions 1877 via svnmerge from kpfleming
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r1877 | kpfleming | 2007-01-22 12:58:34 -0600 (Mon, 22 Jan 2007) | 2 lines update to PR47 Octasic API kit, and use new GetCapacityPins API call to only attempt downloading the correct firmware for the modules we find ........ git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@1878 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-01-18Backporting revs 1812 and 1854 into 1.4.mattf
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@1855 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-01-16Merged revisions 1826-1827 via svnmerge from kpfleming
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r1826 | kpfleming | 2007-01-15 22:30:00 -0600 (Mon, 15 Jan 2007) | 3 lines make the 'firmware object' files load the firmware blobs as read-only data simplify the code that uses the firmware objects a bit ........ r1827 | kpfleming | 2007-01-15 22:37:06 -0600 (Mon, 15 Jan 2007) | 2 lines use latest Octasic API tag ........ git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@1828 5390a7c7-147a-4af0-8ec9-7488f05a26cb
2007-01-16Merged revisions 1818 via svnmerge from kpfleming
https://origsvn.digium.com/svn/zaptel/branches/1.2 ........ r1818 | kpfleming | 2007-01-15 19:28:54 -0600 (Mon, 15 Jan 2007) | 3 lines eliminate the fw2h tool, and instead use objcopy to directly make object files from the firmware binary files pass HOTPLUG_FIRMWARE down to the module build so that we can avoid various compiler warnings ........ git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@1820 5390a7c7-147a-4af0-8ec9-7488f05a26cb