summaryrefslogtreecommitdiff
path: root/drivers
AgeCommit message (Collapse)Author
2010-02-08wcte12xp: Identify the card that is printing to the kernel log.Shaun Ruffell
Drops all users of module_printk in order to use 't1_info', which is a wrapper for dev_info. Also updates debug_printk to also print the bus location information. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@8006 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-02-08wcte12xp, wctdm24xxp: Declare static symbols that aren't externally referenced.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@8005 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-02-08dahdi-base: Minor changes for sparse.Shaun Ruffell
Mostly making sure __user flag is caried through appropriately on user mode access, but also two cases of removing dynamically sized arrays (which unduly complicate using the kernel backtrace when you don't have a debugger attached since you do not know how much data is really on the stack), and editing dahdi_chan_register so that the lock/unlock context is clear. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@8004 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-02-08vpmadt032,wcte12xp: Use a timeout on the read/write commands and during load.Shaun Ruffell
It is possible for poorly behaving hardware (and driver bugs) to lockup the modprobe process by having it wait indefinitely for a command to complete that never will. DAHDI-451. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@8003 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-02-08voicebus: Remove unused 'voicebus_get_pci_dev'.Shaun Ruffell
Function is no longer needed since the 'struct voicebus' is now embedded in the client contexts. This commit also contains a few trivial formatting changes for sparse's sake. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@8002 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-02-03wctdm24xxp: Add back in 'static' for ACIM2TISS as well.Shaun Ruffell
Acidentally removed... git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7985 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-02-03wctdm24xxp: inadvertently removed 'static' from FXO_ADDRSShaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7984 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-02-03wctdm24xxp, voicebus: Move sysfs handling from voicebus to wctdm24xxp.Shaun Ruffell
The drv_data attached to the pci_dev is no longer the 'struct voicebus' pointer, but is instead the 'struct wctdm' (or 'struct t1'), so the clients need to manage the sysfs files themselves. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7983 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-02-03wctdm24xxp: Localize fxo_addrs array reference.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7982 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-02-03wctdm24xxp: Localize the reference to acim2tiss.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7981 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-02-03wctdm24xxp: Remove unused ERING_SIZEShaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7980 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-02-03wctdm24xxp: Cleanup after a failed call to dahdi_register.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7979 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-01-26xpp_debug: a helper script to use debugging parameters with names.Tzafrir Cohen
(not intended to be installed) git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7964 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
2010-01-12xpp: xpd_fxo: two extra parameters regarding batteryTzafrir Cohen
Make module parameters out of two constants to allow further tweaking in the detection of battery. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7883 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-01-11Fail gracefully if we already have more than 1024 channels.Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7850 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-01-11xpp: demote a message that generates some false alarms.Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7843 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-01-10xpp: USB_FW rev 7578Tzafrir Cohen
Fixes various minor twinstar-related bugs. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7815 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-01-10xpp: fixes for drift calculation.Tzafrir Cohen
Should help for the case of multiple quad-PRI Astribanks on a single system. xpp rev: 7666. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7807 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-01-08voicebus: Remove framesize, buffer_cache, and cache_line members from struct.Shaun Ruffell
Framesize is the same on all the clients, so it can be removed from the 'struct voicebus' (and changed back again if needed). Since the framesize is the same, each board doesn't need it's own buffer_cache, and cache_line is only used during startup and can be read directly from pci configuration space, so we don't need to keep it around in our context. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7779 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-01-08voicebus: Make 'struct voicebus' embeddable by the client driver strutures.Shaun Ruffell
In addition to making 'struct voicebus' embeddable, also add an 'voicebus_operations' structure. This was done so that a) remove the "context" pointer from struct voicebus, and also to show that handle_recieve/transmit are to be managed together. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7778 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-01-06Use unlocked_ioctl and compat_ioctl instead of ioctl.Tzafrir Cohen
* dahdi-base needs compat_ioctl in order to allow 32-bit userspace applications to call the DAHDI ioctls in a 64-bit kernel. * add a separate dahdi_ioctl_compat() to handle functions whose parameters will need some tweaks (currently: only reject DAHDI_SFCONFIG). (closes issue #14808) * 0002-dahdi-base-Use-unlocked_ioctl-and-compat_ioctl-inste.patch uploaded by sruffell (license 456) * 0003-add-a-separate-dahdi_ioctl_compat.patch uploaded by tzafrir (license 46) Tested by: sruffell, tzafrir git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7769 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-01-06Remove some unused 'struct inode *' function parameters.Tzafrir Cohen
Patch 0001 from issue #14808 (initial cleanup) 0001-dahdi-base-Remove-some-unused-struct-inode-function-.patch uploaded by sruffell (license 456) git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7768 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-01-04Fix udev rules to work with more recent kernels.Tzafrir Cohen
Note that this change will not work on most older systems (e.g.: Centos5, with its udev 0.95) if the matching change of xpp_fxloader in tools (r7752) is not applied. * Replace deprecated 'BUS' with 'SUBSYSTEM' * Sysfs{} should be replaced with ATTR{}. Sadly the former is not supported in recent udev, and the latter is not supported in udev 0.95. Workaround: use PRODUCT from the environment. * Use a single rule. * While we're at it, add the missing comma to the astribank_hook line (which surprisingly worked without it). git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7753 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-12-28xpp: Fix a typo in card_fxo.Tzafrir Cohen
xpp rev: 7595 git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7731 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-12-22voicebus, wcte12xp: Only define SLAB_STORE_USER when CONFIG_SLUB is defined.Shaun Ruffell
On 2.6.22, there is was a bug in the SLUB allocator that required defining SLAB_STORE_USER, however this setting is only valid when CONFIG_SLUB is defined and not when using the previous slab allocator. DAHDI-424. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7722 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-12-18A standard license header for the firmware Makefile.Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7708 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-12-14DAHDI_AUDIO_NOTIFY: Also pass DAHDI_AUDIOMODE to channel driverTzafrir Cohen
Adds a new compile-time option DAHDI_AUDIO_NOTIFY. With it there's a new span hook, audio_notify, that gets called (if not NULL) whenever the ioctl DAHDI_AUDIOMODE is called for a channel. This can be useful to tell (in most cases) if an ISDN channel is active or not and thus allow the low-level driver to optimize traffic when channels are not active. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7691 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-12-14xpp: replace i with j to avoid overridingTzafrir Cohen
Fix a place where an inner declaration of a local 'i' shadows the declaration of an outer one. Just rename the inner one to 'j'. Reported by sparse. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7690 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-12-11dahdi-base: Do not wait for impulse when echotraining.Shaun Ruffell
Waiting here for the impulse on the transmit can cause the echotraining logic to stick the channel into muted state. This is especially apparent on systems that regularly do not service the interrupts every millisecond. DAHDI-387. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7682 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-12-11dahdi-base: Reduce the max allocation size in dahdi_reallocbufs.Shaun Ruffell
Lower the maximum contiguous chunk that DAHDI asks for from DAHDI_MAX_BUFFER_SIZE*2 to DAHDI_MAX_BUFFER_SIZE. With 4K pages, this can allow the kernel to try a little harder to find the memory it needs since the request goes from order 4 to order 3. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7681 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-23Commit fix for problem frames being received for WCB4XXP_HDLC_BUF_LEN ↵Matthew Fredrickson
multiple sized frames. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7640 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-23git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7639 ↵Matthew Fredrickson
a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-23Commit fix for problem frames being received for WCB4XXP_HDLC_BUF_LEN ↵Matthew Fredrickson
multiple sized frames. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7638 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-23Even if we are debouncing the LOS declaration, we still expect the LED toMike Spiceland
turn red as soon as we unplug the physical cable. This impliments this on the wcte12xp just as it already does on the wct4xxp. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7632 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-22xpp: Improved inter-Astribank drift calculation.Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7625 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-22xpp: statify and line length in card_bri.cTzafrir Cohen
* checkpatch.pl nudged about line lengthes. * sparse nudged about non-static functions. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7622 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-22xpp firmware: USB firmware with support of MPP 1.4Tzafrir Cohen
xpp rev: 7419 git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7615 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-22xpp firmware: fix FXS indirect register reading.Tzafrir Cohen
xpp rev: 7498 git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7614 a0bf4364-ded3-4de4-8d8a-66a801d63aff